Re:C++ patterns for low-latency applications including high-...
by bb88 on Monday July 08, 2024 @09:03PM
(#40911562)
I honestly don't know why the real time trading devs don't make their own OS/programming language for this. It's not like they don't have the money.
Re:C++ patterns for low-latency applications including high-...
by nine_k on Tuesday July 09, 2024 @02:40AM
(#40913126)
Making your own OS or language is hard, if you care about both performance and correctness.
But HFT people do a lot of OS-level hacking, squeezing the last bits of performance from the kernel where the kernel is needed, and/or running parts of the kernel stack (like networking) in userspace, avoiding context switches. CPU core pinning, offloading of everything possible to the network cards, etc, goes without saying.
I saw a Java team do the second one in an order router (a system that connects to various exchanges and routes+translates orders for each exchange's requirements), and they wrote an interesting retrospective doc where they basically said it wasn't worth it - it caused a lot of trouble without giving a significant edge in performance. YMMV! That was around 2012.