Navigation
Recherche
|
'Who Needs Rust's Borrow-Checking Compiler Nanny? C++ Devs Aren't Helpless'
dimanche 11 mai 2025, 20:01 , par Slashdot
![]() But you know what? We don't need a compiler nanny. No borrow checker. No lifetimes. No ownership models. No black magic. Not even Valgrind is required. Just raw pointers, raw determination, and a bit of questionable sanity. He's created a video on 'how to hunt down memory leaks like you were born with a pointer in one hand and a debugger in the other.' (It involves using a memory leak tracker — specifically, Visual Studio's _CrtDumpMemoryLeaks, which according to its documentation 'dumps all the memory blocks in the debug heap when a memory leak has occurred,' identifying the offending lines and pointers.) 'If that sounds unreasonably dangerous — and incredibly fun... let's dive into the deep end of the heap.' 'The method is so easy, it renders Rust's memory model (lifetimes, ownership) and the borrow checker useless!' writes Slashdot reader NuLL3rr0r. Does anybody agree with him? Share your own experiences and reactions in the comments. And how do you feel about Rust's 'borrow-checking compiler nanny'? Read more of this story at Slashdot.
https://developers.slashdot.org/story/25/05/11/1759213/who-needs-rusts-borrow-checking-compiler-nann...
Voir aussi |
56 sources (32 en français)
Date Actuelle
mar. 13 mai - 02:30 CEST
|