Understanding Memory Management, Part 1: C
UPDATED: 2025-02-15: Fixed some bugs in the examples and pointed out that you don't usually just want to panic on memory allocation failure.
We can all see that AI is rapidly changing the world, and it's bringing with it a whole new set of safety and security issues. Fundamentally these are technical problems, but they raise enormous policy questions about how to manage the risks associated with these new technologies. As with all technology policy…
Visit educatedguesswork.org → RSS feedOn Hacker News Oct 2022 – May 2025
Software Engineering 3Security & Privacy 2Systems & Performance 1Society, Policy & Culture 1Science & Space 1Networking & Internet 1
UPDATED: 2025-02-15: Fixed some bugs in the examples and pointed out that you don't usually just want to panic on memory allocation failure.
This is the fifth post in my planned multipart series on memory management. You will probably want to go back and read Part I , which covers C, parts II and III , which cover C++, and part IV , which introduces Rust memory management. In part IV, we got through the basics of Rust memory management up through smart…
My long-time collaborator Richard Barnes [1] used to say that "in security, trust is a four letter word" , and yet the dominant experience of using any software-based system—which is, you know, pretty much anything electronic—is trusting the manufacturer. Not only is there no meaningful way to determine what software…