News for hackers. Stuff that matters.
Re:I am not yet ready to switch to Zig from Rust by jasonpeacock on Friday June 14, 2024 @03:49PM (#40684358)
It's not "language safety", it's memory safety. You're saying that memory safety isn't a priority?

When you run Coverity or other static analyzer on your code, how many violations do you find? How many were unexpected?

The borrow checker is always being run - the difference is whether its in the compiler (Rust) or you in your head (C++). And I trust the compiler much more than I trust myself...

Re:I am not yet ready to switch to Zig from Rust by overgard on Friday June 14, 2024 @11:39PM (#40687336)
For what I use C++ for (game development and embedded systems), smart pointers are "good enough". Especially single player games, worst you run into is a crash, or my arduino code writes past a buffer.