Unboxed types for OCaml
summary
Proposal adds unboxed types to OCaml to eliminate pointer boxing and heavy allocation (example: a pair of 32-bit ints on 64-bit needing many words and indirections), provides a layout lattice (value, immediate, float) and rules that stop polymorphism where GC safety would break, supplies box/unbox helpers, and ships a proof‑of‑concept implementation against OCaml 4.11 plus an RFC and unification algorithm; several layout inference choices remain open.
AI-written summary · about
chapters (7)
- 0:00Introduction to unboxed types
- 0:59Performance and memory issues
- 4:01The unboxing approach
- 5:57Polymorphism and safety
- 7:31The layout system
- 11:08Layout inference design
- 14:31Integration and implementation
related talks
30mLayout Polymorphism: Using static computation to allow efficient polymorphism over...
24mOn the design and implementation of Modular Explicits
15mTowards a Coq Specification for Generalized Algebraic Datatypes in OCaml
28mSemi-explicit polymorphic parameters
26mAn Invitation to OCaml
21mPolymorphic Type Inference for Dynamic Languages
01h 26mMonadic Operations for Box-Like Types - Designing the Extensibility Model
01h 30mGHC Proposal Presentations
