by latenightcoding · 10y ago · 0 comments
Obviously not. We've been doing this for decades and are still making the same mistakes with costly effects. Humans are as much a part of technological systems as the language or platform; continuing to ignore that even educated, disciplined, skilled developers are prone to certain classes of errors -- errors that could be obviated by other components of the system -- is hubris. It is much more feasible to create tools that exclude certain classes of error than to create less fallible developers.
> (code size; execution speed; random latencies)
Rust is not GC'ed, has no inherent reason to be slower than C (as the toolchain matures), and I doubt is more verbose than C code that provides the same safety.
And nothing to say about the performance cost of these infallible tools? They are not free.
Apparently 40 years are not enough to acquire that level of discipline.
We've enjoyed orders of magnitude performance and latency improvement over scripted or GC'd languages.
Its certainly possible to write competent C++ with a professional team, and clear reasons for doing so.
I do wish them the best luck, though.
Also, I'm pretty sure that Oberon was quite a bit earlier than that.
- implicit type conversions errors
- memory allocations with incorrect size
- implicit decay of arrays into pointers
- lack of bounds checking for arrays
- null terminated strings with missing null character
- invalid pointers passed as argument for out parameters
- implicit conversion of integers into invalid enumeration values
I mean theoretically the issue still exists, because you can run allocation yourself and get back null. But without unsafe this shouldn't be possible.