https://github.com/b12n-oss/raylib-pacman the same Pac-Man written four times, once per Clojure-family runtime babashka over babashka.ffi, Clojure on the JVM over raylib-clj (coffi/Panama), jank over its cpp/ interop, and jolt over jolt.ffi. Same maze, same ghosts with their original personalities, same physics. Each directory is standalone and runs from its own bb.edn or deps.edn, and nothing is shared between them on purpose. https://github.com/b12n-oss/raylib-pacman https://b12n-oss.github.io/raylib-pacman/
@smith.adriane βοΈ feel free to use as reference and comparison for your workshop
Maybe worth mentioning that this example comes from the babashka FFI repo and that the babashka FFI examples run unchanged on the JVM too (should be at same or better perf as coffe with ffi 0.1.2)
Itβs only a small step to port pacman.clj to CLJS since bb.ffi supports Node.js 26 too (see the other .cljc examples)
Bb FFi is not limited to scalar only but can also do struct by value but ok
There's a helitorus example too which runs fine in bb which is a compute heavy example so performance claim in the blog needs less speculation: provide an animation that would really suffer in bb instead of guessing that this will be problematic. You can get quite far with the interpreter. Make sure to use the latest bb
You're right on all counts, thanks. Credit's in now: README, each example, the guide, and the top of all four source files, plus a NOTICE.md with the MIT notice. All four ports came from your example, not just the babashka one. Also fixed the struct-by-value claim, which was wrong about bb and jolt both. And helitorus is being ported so the perf numbers are measured rather than guessed. https://github.com/b12n-oss/raylib-pacman#credits
Here is the follow up from the above written by human this time. https://b12n-oss.github.io/lisp-games/guide/mesh-instancing.html π
> nothing is shared between them on purpose. Would be cool to see how much it could be shared