News for hackers. Stuff that matters.
Re:Why Not Rust? (2020) by ncmncm on Saturday December 18, 2021 @09:03PM (#29610674)
Hint: nobody uses "new" in C++ anymore. All the C++ containers, and make_unique etc. know how to use local arenas.

I gather there has been some effort to get Rust library components aware of such things. Handling exhaustion in them is an interesting research topic.

Re:Why Not Rust? (2020) by msbarnett on Saturday December 18, 2021 @10:51PM (#29611144)
> Hint: nobody uses "new" in C++ anymore

"nobody"

    ~/chromium (main)$ rg --stats -t cpp "[=\(][ ]*new "    
    ...
   
    17639 matches
    17536 matched lines
    7162 files contained matches
    96561 files searched
    1539692 bytes printed
    763109193 bytes searched
    1.119265 seconds spent searching
    1.428974 seconds
That's surely a lot of non-usage. Maybe it's just Chrome, though?

    ~/llvm-project (main)$ rg --stats -t cpp "[=\(][ ]*new "
    ...
    7447 matches
    7394 matched lines
    2245 files contained matches
    35148 files searched
    541938 bytes printed
    385115019 bytes searched
    0.425689 seconds spent searching
    0.485431 seconds
Hmmmm.
Re:Why Not Rust? (2020) by ncmncm on Sunday December 19, 2021 @12:24AM (#29611596)
You have found lots of old code.

... which we already knew existed.