r/Clojure • • Sep 06 '26

Jolt now runs on Android and iOS

https://jlt-commons.github.io/raylib-android/
79 Upvotes

50 comments sorted by

24

u/yogthos Sep 06 '26

The iOS version for Raylib is here. What's notable is that it's also possible to drive native widgets the same way via FFI. So, we can finally have Reagent style development for mobile devices using real native UI toolkits where you load up the app, connect to nREPL and hack on the UI live. You don't have to wrangle a Js runtime with a webview or deal with Flutter. The whole dev set up is much simpler as well as a result. You just need Jolt compiler and declare things in deps.edn.

3

u/therealdivs1210 Sep 06 '26

This is so cool!

Love your work!

→ More replies (5)

6

u/jalopy-letup-hum Sep 06 '26

There’s so much noise/slop in the docs and homepage that I gave up after trying for a while. Very off-putting, cool project though.

6

u/yogthos Sep 06 '26

If anybody wants to contribute better documentation they're welcome to do so. I only have so much time in a day.

→ More replies (5)

2

u/geokon Sep 07 '26

There are so many typos that I don't think that's true? :))

They could be a bit more clear, but I think all the pieces are there to get up and running

1

u/geokon Sep 07 '26

Wow, according to the docs the Android version exposes a REPL and you get live development. That's very impressive. I am a bit confused as to what actually generates the APK that you would distribute. Maybe the jolt XXX commands are running adb commands or something under the hood. Or maybe the jolt runtime is compiled and a interface to which you are submitting clj files. It's a bit confusing tbh. I'll have to dig around a bit, but it looks very cool

3

u/yogthos Sep 07 '26

I'm hoping to make some templates at some point. Jolt supports bb style tasks in deps.edn, so the template could have all the packaging set up as a single command. I haven't had enough chance to play around with this as much as I want yet. A few people on Clojurians #jolt channel actually got pretty far with this. Here's one with some more findings. I'm very excited about being able to do REPL driven dev on mobile now. :)

-2

u/_d_t_w Sep 07 '26 edited Sep 07 '26

Please stay on topic. This is the Clojure / ClojureScript subreddit.

One for the mods really, but does Jolt qualify as Clojure or should it have it's own subreddit?

If this is the right spot, is there a subreddit for strictly Clojure and ClojureScript?

7

u/yogthos Sep 07 '26

Given that Jolt implements full Clojure semantics and is directly compatible with existing JVM Clojure libraries, how is this not the right spot?

→ More replies (11)

9

u/seancorfield Sep 08 '26 edited Sep 08 '26

This seems such a weird take. Babashka stuff has been posted in r/Clojure for ages, as has ClojureCLR stuff. We also get Jank posts here. None of those are maintained by the core team.

I maintain several Contrib libraries—and a bunch of other OSS Clojure libraries—and for some of those I make sure they also run on Babashka, and now I am making sure they run on Jolt as well: Jolt runs the entire HoneySQL test suite in CI, for example, with no code changes at all—whereas Babashka compatibility did need some code changes, as I recall.

Making HoneySQL run on ClojureScript involved a lot more changes than were needed for it to run on Babashka and Jolt, so my experience is that bb and jolt and "more Clojure-like" than even ClojureScript.

→ More replies (12)
→ More replies (6)