News for hackers. Stuff that matters.
Re:Why I Write Games in C (yes, C) by debatem1 on Saturday September 21, 2019 @02:56PM (#21037185)
It would be interesting to see what the impact of adding hints about allocation lifetime to malloc would be. I have to suspect someone has already written that paper and I just don't know the terminology to look for it.
Re:Why I Write Games in C (yes, C) by Gibbon1 on Saturday September 21, 2019 @10:46PM (#21039320)
I'm reminded of an ancient 8031 C compiler. It didn't support reentrancy. Which seems like a bad thing until you realize that the program could be analyzed as a acyclic graph. The compiler then statically allocated and packed variables based on the call tree. Programs used tiny amounts of memory.
Re:Why I Write Games in C (yes, C) by spc476 on Saturday September 21, 2019 @07:58PM (#21038702)
Given the problems people have with Rust and the borrow checker, I would guess that people will not accurately predict how long an allocation will live (it's a similar issue with profiling---programmers usually guess wrong about where the time is being spent).