Re:Writing a game engine in pure C: The Graphic Initialization
by lone_haxx0r on Wednesday June 05, 2019 @08:18PM
(#20110383)
What do you propose? Replacing the system stack with Ada?
Modern successors to C, such as Zig, and modern successors to C++, such as Rust, are still too young to be used for serious re-implementations of the lower layers.
Re:Writing a game engine in pure C: The Graphic Initialization
by mhh__ on Wednesday June 05, 2019 @09:12PM
(#20110683)
Modern C++ would be a huge improvement to start with.
Rust is probably there, if under specified. D is definitely fine for writing operating systems (Question being whether to use druntime or not).
I know nothing about Zig, beyond having had a look and not being hugely impressed.
That network stack written in C gave us heartbleed for example. If C arrays were bounds checked by default (e.g. they carry around their size), this could've been easily avoided at no runtime cost.
How can you honestly complain about people wanting more safety in software? If it's speed ("high performance") then you're probably implementing yourself in C (e.g. Bounds checking) something that is built in either at runtime or even statically as can be done in some cases.