If you’re learning a coding language with a view to becoming employable in a technology role in financial services, you should choose something like Python, which is well-used across the industry, or go for something a little more obscure?

In relation to the obscurity route, we’ve already looked at the value of languages like K and Q for finance jobs, but there’s also merit to learning functional programming languages like Clojure, F#, Scala, Elixir, and…OCaml.

OCaml is the language used by Jane Street, the quantitative market-making firm that last year paid its lucky graduate trainees a $200k annual base salary, plus a $100k sign-on bonus, plus a $100k-$150k guaranteed performance bonus.

Jane Street uses OCaml as its primary development language. In a YouTube video posted six years ago that had over 62,000 hits and counting, Yaron Minsky, Jane Street’s head of technology and the man who convinced the firm to use OCaml in the first place, said the language is “in a kind of sweet spot in the design space.”

“It is concise, like traditional dynamic languages are and efficient on the scale that traditional compiled languages are. It has a type system that catches lots of errors for you.. and is relatively easy to work with.”

At one point, Minksy said Jane Street thought of using C# but OCaml was much more concise and easy to read, making it less prone to errors. Separately, Minksy observed that Python is, “crushingly horribly insanely slow.” Minksy said Jane Street uses the language for everything from little scripts to automate small tasks, to big trading systems trading billions of dollars a day. It’s a “single tool that works for a large variety of applications.”

The only problem with OCaml is that not many people know how to code in it, and therefore not many people use it. At Github just 0.121% of pull requests are in OCaml, putting it slightly ahead of R (0.093%) and Julia (0.071%), but way behind Javascript (18.8%) and Python (16.6%). Moreover, OCaml is becoming less rather than more popular – in 2016, 0.226% of Github’s pull requests were in the language; OCaml has more than halved in popularity in the space of five years.

Maybe this doesn’t matter. Minksy explains that Jane Street‘s rationale for using OCaml is partly based on the “Python Paradox” posited in the early days of Python by YCombinator founder, Paul Graham. This says that:

“If a company chooses to write its software in a comparatively esoteric language, they’ll be able to hire better programmers because they’ll attract only those who cared enough to learn it.”

On this basis, your value as a developer is partly defined by your commitment to learning obscure languages. And although Jane Street doesn’t actually mandate knowledge of OCaml for its interviews, if you can code in its pet language, it will show a lot more interest in the role than if you can’t. However, OCaml isn’t easy to learn. Blind commented on a poster last year:

“Anyone apt enough to learn OCaml can likely pick up other languages. OCaml will teach you some deep and transferable skills,” said another poster on Reddit, adding that the OCaml route is, “profound and mind-changing.”

It’s not just Jane Street that uses OCaml, and it’s not just Jane Street’s developers who can code in the language. Technologists and quants who can code in OCaml are to be found everywhere from Citi to Morgan Stanley, JPMorgan and Goldman Sachs. Bloomberg uses OCaml for an advanced financial derivatives risk management application. Outside of finance, it’s used by Facebook and by Dropbox, among others.

The potential danger of becoming highly proficient in OCaml is that you’ll get a job at Jane Street, become immersed in the language, and – in the style of Slang at Goldman Sachs – slowly become less employable anywhere else.

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Nikoleta Yanakieva Editor at DevStyleR International