I'm hoping for a future in which humankind looks back with embarrassment at this silly period in its history in which people used to think a leaky and bad abstractions like garbage collection was ever a good approach to deal with resource life-times.
aziis98|1 month ago
And I'm pretty sure using a GC in some cases it's the only option to not go crazy.
illuminator83|1 month ago
I mean, look something like C++ or the name "std::vector" specifically. There are probably 4 Trillion LoC containing this code out there - in production. I'm used to it, doesn't make it good.
aapoalas|1 month ago
We all happily march into a future where only arena allocation is allowed, and when the arena is overfull it can only be fully reset without saving data. Copying still-used data out if it before reset is not allowed, as that's a copying half-space garbage collector. Reference counting is of course not allowed either as that's also garbage collection. Everyone is blessed...?
eru|1 month ago
See https://en.wikipedia.org/wiki/Resource_acquisition_is_initia...
zahlman|1 month ago
AllegedAlec|1 month ago
illuminator83|1 month ago
immibis|1 month ago
illuminator83|1 month ago
Let me do some quick research:
https://gist.github.com/bobrik/82e5722261920c9f23d9402b88a0b... https://nvd.nist.gov/vuln/detail/cve-2024-26923