▲ | tleyden5iwx 3 days ago | |
I don't think like a C programmer, my problem is that I think like a Java/Python/Go programmer, and I'm spoiled by getting used to having a garbage collector always running behind me cleaning up my memory poops. Even though Rust can end up with some ugly/crazy code, I love it overall because I can feel pretty safe that I'm not going to create hard-to-find memory errors. Sure, I can (and do) write code that causes my (rust) app to crash, but so far they've all been super trivial errors to debug and fix. I haven't tried Zig yet though. Does it give me all the same compile time memory usage guarantees? | ||
▲ | seemaze 3 days ago | parent [-] | |
At first, the 12 year old inside me giggled at the thought of 'memory poops', but then I realized that a garbage collector is much more analogous to a waste water treatment plant than a garbage truck and a landfill.. |