bsderon Hacker News • Recommends
On “Committing to Rust in the Kernel”
#raii#smartpointers#zeroisinitialization
1.2K subscribers • 1 video on Hallway
Advanced. Deep dive for people who know the field.
162K views2 years ago6 recommendations
Systems programmingSoftware designMemory managementDesign patternsC++
Casey Muratori critiques RAII and smart pointers, advocating for grouped-element thinking and zero-is-initialization as superior memory management paradigms.
Casey Muratori giving his thoughts on smart-pointers, RAII, OOP, briefly the Rust borrow checker etc, and why you should avoid them and instead focus on learning and moving to the next stage of programming; "Grouped element thinking and systems", which he refers to as N+1. Casey also talks about ZII (Zero Is Initialization) and stubs as alternative ways of memory structure and error handling (Referred to as N+2 in the stream). Source clip from: watch?v=f4ioc8-lDc0 @ I own nothing here, all copyright is reserved for Casey! I just wanted a better and more convenient way of sharing this information, as I find this clip to be extremely valuable. But some parts contained silence and unrelated topics, which I cut out. Frankly, I find this clip to have been the second most important advice on programming I ever saw.What people say. Recommended by systems programmers for its alternative perspective on memory management, bulk allocations, and critiques of RAII.
bsderon Hacker News • Recommends
On “Committing to Rust in the Kernel”
gingerBillon Hacker News • Recommends
On “Odin: Moving Towards a New "core:OS"”
jackclaytonon Hacker News • Recommends
On “Claude Code uses Bun written in Rust now”
slowmovintargeton Hacker News • Recommends
On “Odin: A programming language made for me”
gingerBillon Hacker News • Recommends
On “Odin: A programming language made for me”
thegeekpirateon Hacker News • Recommends
On “Zig's new plan for asynchronous programs”
ChrisTrenkampon Hacker News • Recommends
On “Bun ported to Rust in 6 days”
Capricorn2481on Hacker News • Disputes
On “Thoughts on Go vs. Rust vs. Zig”
u/tav_stuffin r/C_Programming • Mentions
On “What is your preferred naming convention for constructors and destructors in C?”
budroon Hacker News • Mentions
On “Show HN: Uscope, a new Linux debugger written from scratch”
u/Natehhgghin r/compsci • Mentions
On “what is the alternative to object-orientation?”
u/igors84in r/ProgrammingLanguages • Mentions
On “I feel obliged to implement a borrow checker”