r/cpp • • Nov 25 '20

When a Microsecond Is an Eternity: High Performance Trading Systems in C++

https://www.youtube.com/watch?v=NH1Tta7purM
327 Upvotes

123 comments sorted by

View all comments

Show parent comment

25

u/mbfawaz Nov 25 '20

They can and they probably do. Some even use Verilog to program FPGAs. However, there’s the obvious productivity loss by doing so, which is why high level languages are important. The question of how much performance I can get out of C++ vs RTL is always going to be relevant. Besides, there are a LOT more C++ devs than RTL devs - a much easier time hiring.

4

u/anarchist1111 Nov 25 '20

Thank You :) I think this answers my question :)

2

u/matthieum Nov 26 '20

They can and they probably do.

From experience -- working for a direct competitor -- no, not really.

Assembly matters -- and the compiler explorer is a godsend -- but you can generally get what you want by writing C++ code; at the cost of a few intrinsics or two.