News for hackers. Stuff that matters.
Re:C++23: Removing garbage collection support by Sohcahtoa82 on Wednesday November 01, 2023 @12:29PM (#38100682)
> Rust is complex because the compiler has many ways to say "No I won't compile that, it might be wrong".

Doesn't Rust have an escape hatch in the form of the "unsafe" keyword for cases where you're reasonably sure the code is safe and correct?

I haven't used Rust and most of my knowledge of it comes from HN, so I could easily be wrong.

Re:C++23: Removing garbage collection support by Filligree on Wednesday November 01, 2023 @01:59PM (#38102211)
It does, which is where the social aspect comes in: You're expected to make every reasonable effort not to use it, even if that comes at slight costs in performance, because practically speaking people are terrible at making those judgements.

Sometimes works well. Sometimes, unfortunately, it leads to bullying.

Re:C++23: Removing garbage collection support by Sohcahtoa82 on Wednesday November 01, 2023 @02:13PM (#38102422)
I always pictured that in a professional setting, engineering management would have an edict that `unsafe` is simply not allowed, or possibly, they allow it with extensive code review by multiple engineers.

And that there would also be a lot of people trying to implement a double-linked list and finding themselves having to sprinkle "unsafe" all over the place to satisfy the borrow checker.

Re:C++23: Removing garbage collection support by Filligree on Thursday November 02, 2023 @10:53AM (#38114306)
Both of those happen. Though in practice, unless you’re specifically implementing basic infrastructure, I’ve never yet had any need to use unsafe.