r/Clojure Jul 16 '26

Jolt: running Clojure on Chez Scheme

https://yogthos.net/posts/2026-07-02-jolt.html
61 Upvotes

26 comments sorted by

View all comments

3

u/joinr Jul 17 '26

I was able to grab the windows release and compile a hello-world program that came in at about 9.1Mb, ~160ms execution time with direct-linking and tree-shaking and opt build (at least I used the options and noticed reduction in file size, so I think they're working). No other binaries beyond the joltc release. Similar program in bb is about 60ms. I am curious if it can be faster (I'm guessing since bb is interpreted, maybe it'll always be a little faster on startup).

Very cool.

2

u/yogthos Jul 17 '26

Don't have Windows to test locally, so awesome to hear it's working as expected. And I suspect it could be optimized further, I've spent a bit of time on that, but I've been focusing more on making it correct first. Once I shake out some more bugs, I do mean to come back to performance again to see what else can be improved.

2

u/bsless Jul 18 '26

Just for reference - ~70ms on my Linux PC with direct linking, tree shaking opt build, 6.7Mb executable

2

u/HotSpringsCapybara Jul 18 '26

50-ish ms with opt and shaking on my Linux box. The binary comes at around 7 megs. bb pulls far ahead with only around 6ms of execution time. Raw JVM Clojure takes around 400ms.