News for hackers. Stuff that matters.
Re:Why Rust Isn't Killing C++ by bluGill on Thursday May 02, 2024 @01:11PM (#40238632)
Java, and even python are used in HFT, along with many other languages. Depending on the task they can work well or poorly.

C++ has a good position in this space though because often you come down to a if(something){doTrade();} and java's optimizer has figured out that this if is normally false and so you pay a CPU branch missprediction penalty, while C++ had optimized for the true case and so when it matters is faster.

No matter what the language used, HFT has some different programming styles vs normal.

Re:Why Rust Isn't Killing C++ by afdbcreid on Thursday May 02, 2024 @06:41PM (#40242173)
> while C++ had optimized for the true case

Which is why we have Profile Guided Optimization.

Re:Why Rust Isn't Killing C++ by bluGill on Thursday May 02, 2024 @07:51PM (#40242609)
Which is also what screws java as the runtime notices the false case is most common and so is willing to stall the pipeline when performance matters most.