The feature in OxCaml that more languages should steal

In most languages, you hunt allocations down with a profiler and they creep back the moment you touch the hot path.

Jane Street's superset of OCaml lets you flip that around: annotate a function with [@zero_alloc] and the compiler refuses to build if anything in its call tree touches the heap.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论