Hacker News new | ask | show | jobs
by gpderetta 547 days ago
Rust would probably be a good fit for HFT, but as the field is so dominated by C++ is hard for another language to make inroads. Java managed to some extent.

I would expect a lot of unsafe though.

1 comments

Ecosystem effects are definitely important to C++'s dominance in HFT, but it's also a domain where a lot of the guarantees Rust offers just aren't all that relevant. From a security perspective most code always runs in sandboxes accessible to only a select few whitelisted IPs. True, you don't want a segfault while you're in the middle of sending an order to an exchange, but most of those are pretty easily smoked out in simulation testing.
Yes, if you are receiving malicious data from the exchange, getting p0wnd is the least of your concern.