Re:Why Aren't There C Conferences?
by baby on Wednesday November 21, 2018 @05:47PM
(#18506710)
If people would switch to Rust and stop writing C the world would probably be a safer place yes.
[ Parent
| on HN ]
Given Rust's spotty platform support[1], I don't see that happening anytime soon.
Re:Why Aren't There C Conferences?
by SmellyGeekBoy on Thursday November 22, 2018 @07:23AM
(#18509566)
It's possible to write unsafe code in any language.
Come on... C doesn't initialize memory, doesn't manage memory, doesn't verify bounds for buffers, etc.
It's especially unsafe to write C.
Thats why we have Java / Rust / Python / CSharp.
My point.
So we agree that we have different tools with different tradeoffs?
Of course, for now. But I still disagree that it is as easy (or hard) to write C without bugs as in any other languages. Most people should not write C.
In the same vein - if you happen to be stuck in a problem domain where counting/avoiding allocations is important the other languages I listed above (even C++ really) make things very hard. Rust has a decent take on building a safer c++ (with what appears to be C++ levels of complexity). Would like something similar to emerge for C.