A lot of good stuff in there
A lot of good stuff in there
Posted Feb 15, 2025 20:02 UTC (Sat) by roc (subscriber, #30627)In reply to: A lot of good stuff in there by wtarreau
Parent article: New leadership for Asahi Linux
When I write C++ or Rust I often think about the code that will be produced. This still matters at times, and I have side projects (rr, Pernosco) that require deep understanding of binary code. Last week I wrote code to decode some Aarch64 instructions! But when working with large systems you have to think about a lot of things and "producing the machine code I want" is usually not the most important thing.
> why does it care about who owns a pointer to a location
Every C programmer working on non-toy software has to care about who owns the memory each pointer points to. If you don't, you drown in memory leaks, crashes, and security vulnerabilities. Rust's premise is, given the importance of this and that you have to think about it all the time, the compiler should care about it too so it can make sure you get it right.
Posted Feb 15, 2025 21:21 UTC (Sat)
by pizza (subscriber, #46)
[Link]
The destination of a pointer isn't always memory. Heck, I'd go so far as to say it rarely is.
A lot of good stuff in there
