4 ms·
There is now an option to compile a binary, it uses GraalVM native-image technology We're growing a scripting ecosystem in Clojure now thanks to this, it's sti
by slifin 7y ago
There is now an option to compile a binary, it uses GraalVM native-image technology
We're growing a scripting ecosystem in Clojure now thanks to this, it's still relatively new
As a newcomer, I've made several native binaries for different operation systems
- armitron 7y agoGraalVM does not solve the reliance on the underlying host (JVM, Java) problem.
- slifin 7y agoWell that depends what you define the host problem to be End users can certainly run Clojure programs natively without having the JVM installed on their machine
- vips7L 7y agoYou can do that without Graal using jpackage. The only boon of Graal is native binaries and interop. But if you want to ship the JVM the user doesn't need it installed.
- mark_l_watson 7y agoI wonder if native apps built with Graal or jpackage could be accepted at the Apple macOS and Windows app stores?
- vips7L 7y agoGraal probably. Apple seems to not like JITs so shipping the JVM might be out of the question.
- zenlot 7y agoAnd the 'problem' is not a problem at all.
- predators372 7y agoAre you watching projects like Janet language? For me, JVM is a nonstarter in any capacity, but I welcome that PLT circles are learning from Clojure's design choices and that other lisps are increasingly feasible. It's not clojure, but it's clojure-ish enough that it can be pleasantly productive for little scripting tasks and smaller problems.
- mark_l_watson 7y agoAnother language with a syntax similar to Clojure is the Hy language built on Python (I just released a book on Hy https://leanpub.com/hy-lisp-python https://leanpub.com/hy-lisp-python so I admit positive bias for the language). I used to use Clojure a lot for two consulting customers and I need to try it again. I think the project libpython-clj https://github.com/clj-python/libpython-clj https://github.com/clj-python/libpython-clj looks very interesting for those of us who like Lisp and need access to deep learning tools.