Discover your dream Career
For Recruiters  /  人才招聘

Jane Street may like Rust, but this is why it will never replace OCAML

In a parallel universe where OCAML didn't exist, Jane Street would probably be using Rust. It sponsors Rust conferences like RUSTAsia, and often copies over features from the language to OCAML. In this universe, however, there are things about the language that mean OCAML is still the firm's language of choice. 

Who is your Ideal Employer in finance? 💥 Answer our survey for a chance to win $1k

In the latest edition of Jane Street's Signals and Threads podcast, Jane Street CTO Ron Minsky and engineer Ian Henry debated the difference between Bonsai, its proprietary frontend language, and the more popular language React. Minsky likened it to the "trade-off between C++ and Rust." 

Henry said one issue is that you're "definitely typing more characters when you’re using [Rust or] Bonsai" due to each language's more robust type system. You have to be "very explicit" whenever you do things. 

Another, more damning, criticism of Rust was that some "perfectly safe" things are "fundamentally very difficult to do." For example, Minsky said it's "impossible" to create a doubly linked list in Rust using the borrow checker. He said, "it violates the core constraints of safe Rust," and can only be done if you "explicitly use the unsafe extensions of Rust." Bonsai, however, doesn't have that same problem, presumably because Jane Street designed it not to.

There are some areas where Jane Street staff think Rust is better than OCAML. In a tech talk earlier this year, Jane Street compiler engineer Chris Casinghino said Rust has a "race-free programming model," while OCAML does not. Because of this, Casinghino said "nobody inside Jane Street is allowed to write parallel applications in OCaml because we don’t have a way to give them a guarantee of data race freedom." He does say, however, that this is temporary and that he expects OCaml to be race-free soon as well.

Have a confidential story, tip, or comment you’d like to share? Contact: Telegram: @AlexMcMurray, Signal: @AlexMcMurrayEFC.88 Click here to fill in our anonymous form, or email editortips@efinancialcareers.com.

Bear with us if you leave a comment at the bottom of this article: all our comments are moderated by human beings. Sometimes these humans might be asleep, or away from their desks, so it may take a while for your comment to appear. Eventually it will – unless it’s offensive or libellous (in which case it won’t.)

Photo by Gowtham AGM on Unsplash

author-card-avatar
AUTHORAlex McMurray Reporter
  • Su
    Sultan
    6 June 2025
    what a bunch of egg heads...

Sign up to Morning Coffee!

Coffee mug

The essential daily roundup of news and analysis read by everyone from senior bankers and traders to new recruits.

Sign up to Morning Coffee!

Coffee mug

The essential daily roundup of news and analysis read by everyone from senior bankers and traders to new recruits.