zero-alloc

Tag

Cards List
#zero-alloc

The feature in OxCaml that more languages should steal - The Consensus

Lobsters Hottest · yesterday Cached

OxCaml, Jane Street's superset of OCaml, introduces a `[@zero_alloc]` annotation that forces the compiler to refuse to build if any function in the call tree allocates on the heap, shifting allocation detection from runtime profiling to compile-time enforcement.

0 favorites 0 likes
← Back to home

Submit Feedback