A line-by-line translation of the OCaml runtime from C to Rust
Summary
This article documents a line-by-line port of the OCaml runtime from C to Rust, describing the methodology, tooling (including AI assistance), and live benchmarks. It covers the challenges of safety, inline assembly, and the tradeoffs between staying faithful to the original C code vs adopting Rust idioms. The piece also discusses the educational value of machine-assisted code translation and the ongoing tradeoffs involved in porting mature systems.