❝HN 片单

Casey Muratori | Smart-Pointers, RAII, ZII? Becoming an N+2 programmer

xDahl · 4 位 HN 用户推荐 · 2025–2026

  1. There's a GC library around somewhere, but I doubt anyone uses it. Manual memory management is generally quite simple, as long as you aren't using archaic languages. [link] is worth a watch.
    — thegeekpirate, 2025
  2. e". It would actually not be Odin any more, and the entire language would not even be a C alternative any more, and feel much more like C++ or Rust. Rust and OCaml (which Rust is based off) are different kinds of languages to Odin and their approach does not translate well to what Odin (or C) is trying to do. Unfortunately I will not be able to explain this to you in a comment or article, and it
    — gingerBill, 2026
  3. Arena allocators are a great way to automatically manage memory allocations. You malloc a whole bunch of memory and release it all with a single free, which makes it much easier to reason about your program's memory safety. Casey Muratori has a good video talking about this. [link]
    — ChrisTrenkamp, 2026
  4. Above poster is talking about thinking in terms of grouped lifetimes and bulk allocations/deallocations, which is better for performance, and makes Rust borrow checking and other RAII style features pointless as they don't add any safety benefits. This video completely changed the way I think, and I subsequently moved on from Rust: [link]
    — jackclayton, 2026

← HN 片单