Clojure Scripting on Node.js
github.com
Clojure Scripting on Node.js
1–10 of 35 posts
Re: Clojure Scripting on Node.js
#2I am not the developer of this library. I just have been using it for a small project and thought others might find it interesting as well.
Re: Clojure Scripting on Node.js
#3Although I have not used nbb, babashka itself has been super useful for avoiding the slower JVM startup time while still using Clojure to automate some tasks at the command line.
Yet, despite many projects using bb + a bb.edn tasks file as a replacement for Make, I find myself still reaching for Make, out of familiarity at least, perhaps to avoid the extra dependency on bb itself?
Re: Clojure Scripting on Node.js
#4What is this? What is Clojure and why do you need it in node?
Re: Clojure Scripting on Node.js
#5What is this? What is Clojure and why do you need it in node?
Clojure is a lisp dialect (One of the most loved languages according to surveys). You can use nbb to write clojure instead of js in Node.
Re: Clojure Scripting on Node.js
#6What is this? What is Clojure and why do you need it in node?
Clojure is a lisp like language hosted on top of the JVM. By running on top of node you get a faster startup which is desirable for short lived apps.
Re: Clojure Scripting on Node.js
#7What is this? What is Clojure and why do you need it in node?
Clojure is a lisp on the jvm. javascript compilers exist because people wanted to use clojure in web related projects.
Re: Clojure Scripting on Node.js
#8What is this? What is Clojure and why do you need it in node?
Clojure/Clojurescript is a functional lisp dialect and therefore brings you more and other ways to write programs, since it defers much from javascript/typescript.
But I think another question would be "why do you need nbb for clojurescript?". The minimal answer is: clojure has slow startup time, and clojurescript need some tooling to produce runnable code. With nbb (or bb for clojure) you can run Clojurescript as a scripting language in the terminal, like python or shell, and still use some libraries both from the nodejs or clojure(-script) ecosystem.
Re: Clojure Scripting on Node.js
#9If anyone is interested in mixing other languages in node, check out this silly little library I threw together: https://www.npmjs.com/package/polyglot-tag
Embed any scripting language in a Node.js template literal!