4 ms·
Is there a version of Clojure that compiles to LLVM or something? Sort of like what Scala-native was supposed to be (but never materialized). I like functional
by phendrenad2 2y ago
Is there a version of Clojure that compiles to LLVM or something? Sort of like what Scala-native was supposed to be (but never materialized). I like functional programming but I can't abide the Java ecosystem in 2024, it's just too archaic for my taste.
- baq 2y agothe top comment as of writing this reply points to https://babashka.org/ https://babashka.org/, but it's GraalVM instead of LLVM (which shouldn't really bother you)
- kolme 2y agoBabashka scripts are interpreted, the babashka binary itself is compiled with GraalVM. But: you can also build regular Clojure programs using GraalVM and create a fast-starting binary.
- ojw 2y agohttps://jank-lang.org/ https://jank-lang.org/
- neilyio 2y agoSoon there will be! https://jank-lang.org https://jank-lang.org
- lgrapenthin 2y agoDo they have a realistic shot at implementing immutable datastructures?
- Jeaye 2y agoOh for sure. That's not the tough part. :) jank uses immer for that: https://github.com/arximboldi/immer https://github.com/arximboldi/immer
- jomendoz 2y agoThere's an ongoing effort to create a Clang/LLVM implementation of Clojure's runtime with hot reloading and other very interesting features. You can take a look at it at https://jank-lang.org/ https://jank-lang.org/. It still hasn't reached feature parity with full blown JVM Clojure but we've paying close attention to its development.