News for hackers. Stuff that matters.
Re:Rust, Zig, and the Futility of “Replacing” C by vlovich123 on Sunday February 28, 2021 @07:04AM (#26292791)
Likely not because a feature like that kind of has to be implemented as part of the core language. Maybe someone could retrofit a “safe” version of c/c++, but there’s nothing on the horizon that indicates that would be possible (they are hampered by back compat issues).
Re:Rust, Zig, and the Futility of “Replacing” C by smitty1e on Sunday February 28, 2021 @08:01AM (#26293106)
I mean, MyPy does have some core PEP support, but remains optional for Python.

If something as core as type checking can be an optional feature, I'd be surprised if a heftier brain than mine can't get most of the way to a C++ borrow checker optionally.

Doesn't C++ famously fetish complexity? Wasn't pi once calculated at compile-timel with a C++ template? Where is my Obfuscated C entry that looks like an ASCII Robotron game and borrow-checks, say, the Linux kernel?

Re:Rust, Zig, and the Futility of “Replacing” C by pjmlp on Monday March 01, 2021 @01:42AM (#26300278)
That is partially the reason why all big OS and CPU vendors are investing into hardware memory tagging.
Re:Rust, Zig, and the Futility of “Replacing” C by metreo on Wednesday March 03, 2021 @04:34AM (#26326366)
project verona is _one_ attempt at doing this, ebpf is another