Hacker News new | ask | show | jobs
by champagnepapi 917 days ago
But how are we going to trade stocks in nano seconds without C++?!
7 comments

A lot of shops do this in Java. Rust and Zig are usable but nobody's going to switch.
>A lot of shops do this in Java

Absolutely not in the memory-safe subset of Java though.

What is the memory-safe subset of Java? Java is memory safe by definition. Sadly, the definition might not give people what they want, which is bug-free code.
If you use sun.misc.Unsafe you've left the memory-safe subset.
Thanks. I had no idea that existed.
Haha, it's rough when you don't even get arrays of structs!
High speed fiance is mostly done in Java and Haskell, because mistakes are expensive. (And yeah, it's one of the very few fields that Haskell enters the list.)
HFTs have pretty much all moved to FPGAs for sub-microsecond latencies in past few years. C++ can’t compete with that, let alone Java or Haskell.
Jane Street is all-in on OCaml.

Their podcast titled "Signals and Threads" is quite interesting.

They maybe the sole one that does not use C++
Wouldn't the tail latency really mess with you tho? You could be doing really bad things with bad data.
Now a "high speed fiance" is something you should be really careful around
oh wow! I had no idea at all. I'll have to read more about this :)
Because I always want to place a sell order for NaN shares. <relax, early morning pre-coffee joke>
You’re not. C++ isn’t going anywhere in certain industries.
Grew up on C++ and the paradigm (& loved it), but then moved to interpreted for use cases.

I think the uncoolness of them is due to OOP methodology... programmers today seem to want to be easier to get moving, but then spend more time debugging OR the debugging has been "placed onto" DevOps / use of Cheap fast hardware. IMHO

With Verilog, clearly.

Actually, I have no idea if FPGAs in HFT are still a thing.

Invest, then look back 5 years later.