Get the latest tech news
Circle C++ with memory safety
safety Over the past two years, the United States Government has been issuing warnings about memory-unsafe programming languages with increasing urgency. Much of the country's critical infrastructure relies on software written in C and C++, languages which are very memory unsafe, leaving these systems more vulnerable to exploits by adversaries.
Here's the value proposition: compiler and library vendors make an extra effort to provide a robust environment so that users don't have to read the docs. If you relocate from an object inside control flow, it becomes potentially uninitialized, and its destructor is conditionally executed after reading an automatically-generated drop flag. It's a beautiful idea, but it feels a bit like mastering alien technology if you're a frontend engineer who doesn't already work extensively with control-flow graphs.
Or read this on Hacker News