News for hackers. Stuff that matters.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by ncmncm on Friday June 03, 2022 @04:18AM (#31605636)
This is very commonly done in C++. My programs do a flurry of mmaps in the first second, then run for, sometimes, years without allocating again.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by bpye on Friday June 03, 2022 @01:14PM (#31611020)
I was thinking about C and C++ and whilst they allow you to be very careful about allocations, they also give you every opportunity to get it wrong.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by ncmncm on Friday June 03, 2022 @07:33PM (#31615132)
We need not act on the opportunity.

All that is actually needed is for it to be more work to get it wrong than to get it right.