2026-07-17
Link: https://dl.acm.org/doi/10.1145/3674642
HN Discussion: 1 points, 0 comments
This is an ACM-published paper (ICFP 2024, based on the DOI) describing Jane Street's ongoing work to graft Rust-style memory management onto OCaml — without breaking the language's existing semantics or ecosystem. The title's "modal" is the key technical hook: rather than introducing a full borrow checker or affine type system as separate machinery, the authors extend OCaml's type system with modes — orthogonal annotations layered on top of existing types that track properties like uniqueness, locality (stack vs. heap), and linearity.
Why this matters for a technical audience:
The paper is also a good read for anyone thinking about language evolution more broadly. Adding a feature this fundamental to a mature language is usually a decade-long saga (see: Python's type hints, Java's value types). OCaml's willingness to experiment here — and Jane Street's willingness to fork and upstream — is a case study in how industrial users can drive research-grade language design.
The fact that this sits at 1 point with zero comments is a shame. It's exactly the kind of PL-research-meets-production-engineering content that HN's audience usually devours when it surfaces.
