4 ms·
There is no reason to spend time on any variant of C in the age of Rust.
by xvilka 7y ago
There is no reason to spend time on any variant of C in the age of Rust.
- pjmlp 7y agoSure there is, as much as I dislike C, no one is going to port the existing UNIX and POSIX clones to something else. And even then, many of those interfaces are based in C semantics anyway. So anything that helps to reduce the amount of possible security exploits per line of C code is welcomed.
- acdha 7y agoFor new projects, sure. For existing projects, it's not trivial to convert them and anyone working on something significant is going to need time to do a migration during which additional new C code will almost certainly need to be written.
- xvilka 7y agoIt can be semi-automated with the amazing c2rust[1] tool. [1] https://github.com/immunant/c2rust https://github.com/immunant/c2rust
- acdha 7y ago“semi-” is not a synonym for “easily done with production-ready results”. Until that changes, people are going to need to write new C code even if they're working to refactor their code into a better language.
- fortran77 7y agoGood point. We can do this in Go.