4 ms·
Does this get around the issue of the BEAM taking a while to spin up? One nice thing about Python and Bash is for the most part when you run a script you can s
by nickjj 6y ago
Does this get around the issue of the BEAM taking a while to spin up?
One nice thing about Python and Bash is for the most part when you run a script you can see the output almost instantly.
With Elixir, typically you end up having to wait half a second or longer while the VM boots up. It makes a very noticeable difference in practice.
- simongray 6y ago> Does this get around the issue of the BEAM taking a while to spin up? I'd be interested in hearing the answer too. One of the things that has held back Clojure's adoption as a general-purpose CLI scripting language has been the cost of JVM + Clojure bootstrapping. It's not long in the grand scheme of things, but 1 second matters a lot when chaining commands in the shell. There is now a CLI scripting version of Clojure that gets around this issue by running Clojure (and some bundled libraries) as native code through Graalvm native-image: https://github.com/borkdude/babashka https://github.com/borkdude/babashka