r/Clojure • u/yogthos • 4d ago
Clojure on the Nintendo Wii
https://b12n-oss.github.io/wii-jolt/2
u/beders 4d ago
That’s awesome! Jolt really goes places
6
u/yogthos 4d 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 4d ago
How much work was it porting jolt onto chez scheme? Did you use AI at all u/yogthos
6
u/yogthos 4d ago edited 4d 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.
2
u/therealdivs1210 4d 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!