---
title: "ICFP 2024"
description: "Jane Street's OCaml Language team brings nine papers and talks to ICFP 2024 and describes its compiler-branch extensions: modal types (modes like local and unique) for Rust-like control over allocation and data-race-free parallelism, and a kind system for unboxed layouts."
url: "https://swe.quest/articles/icfp-2024-a2b848db9d4cf383"
canonical: "https://blog.janestreet.com/icfp-2024-index/"
source: "Jane Street Tech Blog"
published: "2024-08-29"
difficulty: "hard"
kind: "Announcement"
reading_minutes: 8
tags: ["functional-programming","type-systems","language-design","memory-management","compilers"]
---

# ICFP 2024

A post on [Jane Street Tech Blog](https://swe.quest/sources/jane-street.md), published 2024-08-29, 8 min read, Announcement. Original: [https://blog.janestreet.com/icfp-2024-index/](https://blog.janestreet.com/icfp-2024-index/)

## Summary

Jane Street's OCaml Language team brings nine papers and talks to ICFP 2024 and describes its compiler-branch extensions: modal types (modes like local and unique) for Rust-like control over allocation and data-race-free parallelism, and a kind system for unboxed layouts. Examples include a redesigned Bonsai API that uses a local-mode witness and escape analysis to enforce its two-phase graph-building model, mixed blocks for records combining boxed and unboxed fields, ppx\_template for stamping out kind/mode-specialized code until real polymorphism lands, and a zero-overhead or\_null option type that uses kinds to forbid nesting. The team also released a bleeding-edge opam repo with the extended compiler and its libraries so outsiders can try the features ahead of any upstreaming.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Functional programming](https://swe.quest/tags/functional-programming.md) (Languages)
- [Type systems](https://swe.quest/tags/type-systems.md) (Compilers & runtimes)
- [Language design](https://swe.quest/tags/language-design.md) (Compilers & runtimes)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)
- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)

## Prerequisites

- OCaml type system ([easy posts on Functional programming](https://swe.quest/tags/functional-programming.md?difficulty=easy))
- garbage collection basics ([easy posts on Memory management](https://swe.quest/tags/memory-management.md?difficulty=easy))
- parametric polymorphism

## Keywords

OCaml, ICFP 2024, Bonsai, ppx\_template, unboxed types, modal types, or\_null, opam

## Related posts

- [Oxidizing OCaml: Rust-Style Ownership](https://swe.quest/articles/oxidizing-ocaml-rust-style-ownership-5670c1001a0b9cc2.md): Jane Street Tech Blog · 2023-06-21 · Hard · 14 min read · Functional programming, Type systems, Language design, Memory management, Rust
  Jane Street's OCaml extensions add Rust-style ownership through mode axes.
- [Oxidizing OCaml: Locality](https://swe.quest/articles/oxidizing-ocaml-locality-b1f7bf98d1488c18.md): Jane Street Tech Blog · 2023-05-26 · Hard · 13 min read · Functional programming, Type systems, Memory management, Language design, Compilers
  Jane Street is extending OCaml with modes, starting with a locality mode that marks values as local (cannot escape their region) or global, so the compiler can stack-allocate short-lived values while keeping garbage collection everywhere else.
- [Oxidizing OCaml: Data Race Freedom](https://swe.quest/articles/oxidizing-ocaml-data-race-freedom-67442324c35f0e1c.md): Jane Street Tech Blog · 2023-09-01 · Hard · 15 min read · Functional programming, Type systems, Concurrency, Language design, Memory safety
  Jane Street's OCaml extensions use a new \`sync\` mode to make data races statically unrepresentable in multicore OCaml 5.
- [What the interns have wrought, 2021 edition](https://swe.quest/articles/what-the-interns-have-wrought-2021-edition-0f76a8f694a74c7c.md): Jane Street Tech Blog · 2021-08-09 · Medium · 10 min read · Functional programming, Engineering culture, Developer tools, Observability
  Jane Street's 2021 dev internship (87 interns across New York, London and Hong Kong) is showcased through three projects.
- [Writing a DSL for high performance parallel programming in OxCaml](https://swe.quest/articles/writing-a-dsl-for-high-performance-parallel-programming-in-oxcaml-5f7bd51c2038a2c3.md): Jane Street Tech Blog · 2026-11-06 · Hard · 17 min read · Compilers, Functional programming, Language design, Performance engineering, Hardware
  A Jane Street intern built a JIT compiler for an SPMD-style DSL in OxCaml so SIMD kernels for options pricing and risk checks can be written once as ordinary-looking OxCaml functions instead of architecture-specific C intrinsics.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
