| ▲ | zamalek 7 hours ago | |||||||
From the file: >Create with P::new(value). p.get() returns &'static T. [...] unless an explicit recycling site proves them dead It's unsound, the LLM/human is doing the proving. They've hidden unsafe in an abstraction without removing the unsafeness. Using the arena allocator's lifetime would have been safe and easy (bumpalo recommends this AFAIK). I'm guessing a sycophantic LLM either found or praised this load-bearing seam. Never deallocating would have been sound (missile memory management: https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98... ). | ||||||||
| ▲ | tengbretson 6 hours ago | parent | next [-] | |||||||
> Never deallocating would have been sound (missile memory management: https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98... ). Calling this a breakthrough in memory management is an understatement. Call up the Turing Award committee. We just discovered a solution to the halting problem! Turns out that for certain applications the answer is unequivocally "yes" | ||||||||
| ||||||||
| ▲ | afdbcreid 7 hours ago | parent | prev | next [-] | |||||||
With sanitizers (https://github.com/oxc-project/tsrs/blob/main/notes/mem-recy...). We're back to C I guess. I hate this project now. | ||||||||
| ▲ | lioeters 6 hours ago | parent | prev [-] | |||||||
> load-bearing seam Zing! | ||||||||