4 ms·
Why is gaming and HFT forced to be C++? Just that code already exists in C++ and you need to expand on it? Gaming has Unreal but surely you could use another g
by mr_00ff00 4y ago
Why is gaming and HFT forced to be C++? Just that code already exists in C++ and you need to expand on it?
Gaming has Unreal but surely you could use another game engine without C++?
- lordnacho 4y agoSimply put cpp gives you ultimate control. If you want to be absolutely economical with the CPU/memory, you need to do things likely preallocate memory and making sure you don't get cache misses and branch mispredicts. For most software, the hardware has already run away to the point where you can just sort of tell the machine roughly what to do and it will do it for you in a way that doesn't affect your task, so you don't have to fiddle with minutiae like where exactly to place a thing in memory.
- lenkite 4y agoRust doesn't even have support for custom allocators in the language/stdlib. Still waiting on https://github.com/rust-lang/rust/issues/42774 https://github.com/rust-lang/rust/issues/42774. bumpalo doesn't cut it. Funny thing is that boring and sensible Go just came out with arenas support.