This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-01
Channels
- # announcements (3)
- # babashka (1)
- # beginners (29)
- # calva (3)
- # cider (5)
- # clojure (17)
- # clojure-europe (9)
- # clojurescript (31)
- # conjure (2)
- # cursive (14)
- # datomic (51)
- # deps-new (4)
- # honeysql (8)
- # introduce-yourself (1)
- # lumo (8)
- # malli (28)
- # missionary (1)
- # off-topic (20)
- # pathom (2)
- # polylith (22)
- # practicalli (10)
- # reagent (3)
- # reitit (6)
- # ring (2)
- # schema (2)
- # shadow-cljs (25)
- # spacemacs (3)
Several years ago I heard a podcast with Antonio where he explained lumo uses some kind of image-based solution for faster startup time. But when I run lumo -e '(+ 1 2 3)'
the startup time is within the 300ms ballpark. This is not a problem for me, but I was just curious how to activate that image-based solution. Do I have to install some special version of lumo, or did it never reach a release?
I think this is already part of lumo. It uses a custom version of nexe that allows supplying a v8 snapshot https://github.com/anmonteiro/nexe/commit/6a52ab861d4986d8c23e2ade4f757542ccc63943.
I think without v8 snapshots, loading all the compiled js code for cljs.core would take a bit longer
when I tested it the startup wasn't that great though, around 300ms on a spec-ed out MPB 2019
npm upgrade -g lumo-cljs
$ time lumo -e '(+ 1 2 3)'
6
lumo -e '(+ 1 2 3)' 0.28s user 0.04s system 122% cpu 0.262 total
Context: I'm creating a babashka-like tool for nodeJS: https://github.com/borkdude/nbb (see #nbb). It's not using self-hosted, but is based in SCI, so it's obviously different, but trying to learn more about this ecosystem, since I'm pretty much a nodeJS n00b.