Ask HN: What programming languauges does the High Frequency Trading Firms use?
I have recently read an article about IEX and brad katsuyama on bloomberg website.And have also read the book 'FLASH BOYS' by michael lewis. after reading about all this i wanted to know what programming languages does these guys in big banks use?? I found this YouTube presentation very informative about how an HF firm uses Java for live trading... Just one awesome fact...they structured their code such that they only have one GC event a day (and it's tuned to happen at night). Watch it, pretty cool compared to anyone doing plain vanilla java dev at an enterprise. For anything on the fast path the list would be mostly what you'd expect: - C++ - C - Java - Verilog/VHDL or what ever language your FPGA tooling requires. As for support tooling then python and R are very popular. It's important to note that its not only speed that dictates what you use in HFT, the shear amount of data you need to handle also dictates what you use. As an example C++'s inplace new operator helps for things like object pooling. I'm not UHFT or HFT and we can get by with F# and C#. We are at the stage where we have to think about our data structures and memory access patterns but we aren't throwing away readability and maintainability just to get the best possible performance. From my experience, its much more typical for funds to target performance around this level than the HFT level. I guess it should be said that you can name almost any programming language and you'll find that someone is using it and claiming to be an HFT shop, ie someone will probably mention OCaml due to Jane Street. This question http://quant.stackexchange.com/q/12618/743 on the quant stack exchange shows that pretty much every language gets used. thanks mate, i had no idea that there was an stackexchange column for the quants. anyways, thanks a lot for the info. my previous comment "mostly C++" got down voted. I happen to work at a firm in this industry. C++ is the language used most in HFT. Aside from this, you can verify this by just looking at the job postings. Not sure why you were downvoted, but your answer had more than a few issues. 1) It was added well after I had already added an answer that included C++ 2) it was only 2 words with additioanl information meaning that it didn't really add any value to the question. I have no doubt you probably know the HFT scene and could probably add some color to people outside of it, but your first answer didn't really help in any appreciable way and this was probably why it was down-voted. See the documentary 'The Wall Street Code' https://www.youtube.com/watch?v=hw3XtscVCVI AFAICR one of the protagonists (Haim Bodek) said his company had one million lines of C (or mainly C) code for HFT trading. Thanks for the documentary link, i have read quite a lot about trading machines and the works of haim bodek. I know that Jane Street is a London based firm that works completely on OCaml ... not sure if there are any firms that use Haskell though Haskell has many great attributes but predictable performance isn't amongst them (laziness makes it difficult to reason about) so I doubt it is used for HFT. mostly C++