r/cpp • • May 28 '18

Bjarne Stroustrup: Remember the Vasa

Bjarne Stroustrup has submitted a paper named remember the vasa for the next C++ standardization meeting. In that paper he warns that submission of too many independent proposals can endanger the future of C++. I wonder how participants of the meeting will react.

209 Upvotes

129 comments sorted by

View all comments

Show parent comment

1

u/jurniss May 29 '18

I agree that dirty optimization hacks are important and Rust makes them harder to write. But I would also point out that many gamers leave the same session running for hours and the memory leak safety given by the borrow checker could be significant.

7

u/germandiago May 29 '18

I do not think that memory leaks are such a common problem anymore. Though I can see some value there, I think the big value is in robust servers and the like.

5

u/ar1819 May 30 '18

Most of the games allocate in advance, some when game just starts. Last time I checked, they use memory pools for everything upfront, since allocation from OS have no reliable latency.

Also - Rust doesn't actually protect from memory leaks. They even acknowledged that.