4 ms·
Clojure "Hello, world" compiled with Graal running in Docker wasn't that bad: https://gist.github.com/cellularmitosis/66e024439cdefbc43375a4988882af11 https://g
by cellularmitosis 7y ago
Clojure "Hello, world" compiled with Graal running in Docker wasn't that bad: https://gist.github.com/cellularmitosis/66e024439cdefbc43375a4988882af11 https://gist.github.com/cellularmitosis/66e024439cdefbc43375...
- mooreds 7y agoHave you tried to build anything larger with Graal/Clojure?
- lvh 7y agoI'm not GP, but we have done several native Clojure CLI apps with Graal: https://github.com/latacora/wernicke https://github.com/latacora/wernicke https://github.com/latacora/recidiffist-cli https://github.com/latacora/recidiffist-cli https://github.com/latacora/caro https://github.com/latacora/caro As well as several internal tools. It mostly works fine. Graal is actually the default JDK on my development machine. If there's one thing I'd fix, it's the ability to bake dylibs into the single binaries. E.g. if you want good elliptic curve TLS, you need sunec.so/dylib/dll, and part of the point for native-image for us is the ability to ship a single binary.
- joobus 7y agoI tried and failed to build a “hello world” http server using aleph.
- Heliosmaster 7y agoNot me, but the small CLI utilities form Michiel Borkent are pretty interesting: - https://github.com/borkdude/clj-kondo https://github.com/borkdude/clj-kondo - https://github.com/borkdude/sci https://github.com/borkdude/sci - https://github.com/borkdude/babashka https://github.com/borkdude/babashka
- dkersten 7y agoOh, cool! I tested clojure and graal some months back and, at the time, it was a lot clunkier to get working and only worked with clojure 1.9. This looks much simpler and works with 1.10, awesome!
- antpls 7y agoDid you compare the GraalVM compiler with the open-source jaotc (java ahead of time compiler tool, from Java 9) ?
- diroussel 7y agoJaotc is based on graalvm