Translating non-trivial codebases with Claude

15 points by nathell


bakkot

This is neat! This sort of thing seems to be squarely in the wheelhouse of LLMs. I'm hoping that this also leads to more people getting interested in fuzzers, because fuzzing multiple implementations is one of the best way to discover divergences. I do wonder if you'd discover divergences if you fuzzed these implementations or if they're close enough (or a sufficiently small enough test suite) to actually match exactly.

Side point:

Somehow compile C++ Morfeusz to JVM bytecode. If there are ways to compile C++ to WASM, there should be some way to compile it to JVM, right?

Right, because you can run wasm on the JVM using Chicory! (Or GraalWasm if you're willing to use a custom JVM, though I think that doesn't work with your "single self-contained JAR" goal.)

Performance is not stellar but should be more than adequate for this application.

kingmob

Funny, I'm going in the opposite direction, sort of.

Clojure works ok, but Opus 4.6 can't handle our old Clojurescript/shadow-cljs code base (one of the few things it consistently fails on), so I'm looking to migrate all that to Ts/Js.