News for hackers. Stuff that matters.
Re:Why introduce `std::launder` rather than have the compile... by Avamander on Saturday January 22, 2022 @10:56AM (#30037730)
That mindset is what makes C++ and Rust both sometimes so annoying on embedded targets, if not actively harmful.

I've been left a strong impression that either I do it "safely" or I want to do it totally unsafe, there's often like no middle ground. No I don't want to suddenly accidentally double-dereference a pointer or cast away const, I just want to use this memory mapped peripheral. That is very unfortunate and short-sighted, IMO, considering that layer is where all safety and security begins from.

There are no comments on this comment yet.