Some people I know have been interested in switching from Clojure to Go in order to get faster startup times and statically linked executables for microservices on AWS Lambda, etc. Having recently reviewed the Go: the Good, the Bad, and the Ugly <https://bluxte.net/musings/2018/04/10/go-good-bad-ugly/>, as well as stumbling through a Go bootcamp, I was looking for a good counter-argument. While the command-line usage via Clojure/CLI:
> clj -e '(println "Hello World")' # 0.98 sec takes only about a second, and > java -jar hello-standalone.jar # 1.30 sec takes only about 1.3 seconds, I needed something faster. Joker <https://github.com/candid82/joker> has a lot of potential, but it includes only basic Clojure namespaces. Having tracked news about GraalVM over the past couple of years, I thought it was time for a quick demo project. TL;DR: The bottom line: > target/hello-world # 0.009 sec *Yes, you read that right!* The statically linked executable is over *130x* faster than running via the uberjar. I summarized all the steps to install and run using GraalVM in this demo project: https://github.com/cloojure/graalvm Just peruse the README and you'll be off to the races. See also: - Nice ClojureD video <https://youtu.be/topKYJgv6qA> by Jan Stepien - Bruno Bonacci’s GraalVM Clojure Demo <https://github.com/BrunoBonacci/graalvm-clojure/blob/master/doc/clojure-graalvm-native-binary.md> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAN67zA00HAvuaymyjrdHAwBp2vUeU4VfosCHSCqWTp2mGWCoRw%40mail.gmail.com.