Author here. Ask me anything on nbb.
Clojure Scripting on Node.js
31–35 of 35 posts
Re: Clojure Scripting on Node.js
#32Earlier quoted context omitted.
It's not a javascript compiler as Clojure is a hosted language.
Can anyone explain what a hosted language is?
There's something about Clojure people like so much, they want it to work atop any platform.
https://github.com/Tensegritics/ClojureDart
https://github.com/clj-python/libpython-clj
https://github.com/clojerl/clojerl
https://github.com/clojure-rs/ClojureRS
Re: Clojure Scripting on Node.js
#33Re: Clojure Scripting on Node.js
#34Just as an FYI for the interested, there is a self-hosted version of clojurescript now, it enables macros in the same runtime with some caveats but the main downside (AFAIK) is increased bundle size, which is less relevant for node.js.
There was a self-hosted CLJS project for Node.js which is now abandoned. It was called lumo. It came with a custom image of Node.js with lumo built-in for better startup times since the JS bundle of self-hosted CLJS is quite large resulting in not so great startup out of the box. Nbb is just a library that you can use with any Node.js version. That said, it might be worth revisiting the self-hosted CLJS approach at s…
Re: Clojure Scripting on Node.js
#35Is this similar to Lumo ( https://github.com/anmonteiro/lumo )? I would assume Lumo has a faster start time since it boots from a V8 snapshot, but otherwise I'd assume the two projects are similar (except that, of course, lumo is EOL)