0:00 / 0:00
#ocaml#unboxedtypes#typesystems
Unboxed Types for OCaml
Jane Street
102K subscribers • 18 videos on Hallway
- Recommended by 2 people: 1 on Lobsters and 1 in engineering communities.
- Presented by Stephen Dolan, OCaml core developer at Jane Street
Advanced. Deep dive for people who know the field.
9.5K views7 years ago2 recommendations
Programming languagesSystems programmingCompilers and interpretersPerformance and optimizationMemory management
Stephen Dolan describes work-in-progress to extend OCaml's type system with unboxed types, giving programmers control over memory layout.
OCaml has a well-deserved reputation for compiling quickly. This is thanks in part to its uniform representation: all values have the same memory layout, so generic code does not need to be specialized and recompiled for each use. This uniformity has a downside: some programs waste a lot of time converting back and forth to this uniform representation. In this talk, I’ll describe some work-in-progress to remove this overhead, by extending OCaml’s type system to allow other memory layouts, giving the programmer more fine-grained control over how code is compiled. Stephen is a programming languages researcher and OCaml core developer on Jane Street's Tools and Compilers team. Prior to that, he worked at OCaml Labs, did a PhD on subtyping, and wrote jq. His hobbies include hiking, cooking, and writing about himself in the third person.