normative

Rust vs OCaml Tradeoff in HFT

Jane Street shouldn't replace OCaml with Rust given existing infrastructure, but starting from scratch at zero cost Rust would be preferable: it offers similar static typing and compile-time safety, but the base-level Rust program is much faster because OCaml's automatic garbage collection forces you to write very careful, almost C-like OCaml to avoid heap/stack allocations that trigger garbage collection — the worst thing you can do in high-speed finance.

normativepending

Speaker

Brett Harrison

Evidence Quote

“the worst thing you can do in high speed finance is do any memory allocation that results in garbage collection”

Source

Brett Harrison — FTX US former president speaks out— Dwarkesh Patel Podcast
Created: 6/13/2026, 3:24:05 AM

Your notes

Loading notes...