r/Clojure • • 2d ago

Clojure on the Nintendo Wii

https://b12n-oss.github.io/wii-jolt/
23 Upvotes

9 comments sorted by

2

u/therealdivs1210 2d ago

That's amazing!

I've been meaning to checkout Jolt with Raylib to make a game.

Hope to get around to it very soon!

2

u/yogthos 2d ago

🎉

2

u/beders 2d ago

That’s awesome! Jolt really goes places

6

u/yogthos 2d ago

I really want to see if I can get it running on embedded devices like ESP32. Might be doable with this https://github.com/udem-dlteam/ribbit

1

u/whamtet 2d ago

How much work was it porting jolt onto chez scheme? Did you use AI at all u/yogthos

6

u/yogthos 2d ago edited 2d ago

It's been around six months of work so far. Technically, the way I structured this is that there is a Clojure and Java compatibility layer that sits at the top. There is an intermediate portable Scheme layer targeting R7RS spec, and then the host layer at the bottom. While most of the focus has been on Chez, I do keep Gambit as a second target to make sure the portable layer stays portable and anything platform specific is expressed in the host layer.

I do use LLMs for development, it just wouldn't be feasible to do a project of this scope on top a full time job otherwise. What makes this type of project a good fit for LLMs is that tests for Clojure along with those in all the different existing Clojure libraries provide fairly comprehensive spec for what the inputs and outputs the compiler has to handle. I've also ended up making a code metrics library which is hooked up as a CI gate to help keep overall code clean.

4

u/whamtet 2d ago

Impressive! Jolt works nicely on Termux which could be convenient for just working on my tablet.

3

u/yogthos 2d ago

Chez runtime is really opening up a lot of possibilities where the JVM just wasn't a good option before. Being able to load up a REPL on a phone or a tablet and then drive it live from your computer is just amazing.

2

u/whamtet 2d ago

its very interesting!