Dungeon Walker

I programmed a lot in OCaml, so of course my next little project, I made it also in OCaml. I imagined a maze you can walk, with raytracing. On the web—so hobby, not serious—but I was curious for the challenge. The textures, I created them with Gemini from Google. The code, I asked Codex, no IDE. Later I opened it in VSC, but I changed nothing by hand.

A fun distraction was then to ask for the whole project to be translated from OCaml to Haskell (GHC). Different libraries, many things not the same, but it went easy, and it runs just as well.

In OCaml we had websockets for async streaming of image frames. In Haskell, more simple: fetching low-res frames and, in parallel, computing on the server the final full-resolution frame.

We’ve also created a Swift version for iOS — another chance to let the LLMs retrace the journey of shifting a project from one technology to the next. Rather fun.

Leave a Reply

Scroll to Top

Discover more from architectureofvibes

Subscribe now to keep reading and get access to the full archive.

Continue reading