Meta Garbage Collection: Using OCaml's GC to GC Rust
38 points by annieversary
38 points by annieversary
Why don't they use Rust for these tools?
Maybe because the authors are more familiar with Rust? Soteria founders have this paper https://dl.acm.org/doi/10.1145/3808306 (haven't read it yet). IMO I don't see what Rust provides here that is a major selling point over OCaml.
Why is OCaml a bad choice here? There are many many similar tools for program analysis written in OCaml (Infer, Semgrep, Trust-in-Soft and so on).
OCaml's awesome, but it seems like a sensible default to write a language's tooling in that language, so I'd expect a particular reason but couldn't find one reading around. (People often call Rust an OCaml (or ML?) though too, complicating matters.)
I thought they called Rust an ML? (Not to be pedantic - I just haven’t heard anyone conflate OCaml and Rust before.)
Back when /r/rust/ had RSS feeds, I called Rust an ML-lineage language disguised by the addition of ownership and borrowing and its use of C++ syntax on multiple occasions.
Heck, basically every bit of syntax that couldn't be borrowed from C++ for familiarity traces back to Ocaml.
Some examples: