• 0 Posts
  • 5 Comments
Joined 2 years ago
cake
Cake day: July 15th, 2023

help-circle
  • lolcatnip@reddthat.comtolinuxmemes@lemmy.worldthe perfect browser
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    12 hours ago

    whether the software is memory safe depends on the expertise of the devs

    No. Just stop. If a language depends on the expertise of the developer to be free of memory bugs, then by definition, it is not memory safe because memory safety means such bugs are impossible by design. Quit trying to redefine what memory safety means. A program being free of memory bugs does not in any way imply memory safety.





  • lolcatnip@reddthat.comtolinuxmemes@lemmy.worldthe perfect browser
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    21 hours ago

    I’m very experienced with C++and I still feel like I’m juggling chainsaws every time I use it. And I’ve personally run into into things like use after free errors while working in Chromium. It’s a massive codebase full of multithreading, callbacks, and nonlocal effects. Managing memory may be easy in a simple codebase but it’s a nightmare in Chromium. Tools like AddressSanitizer are a routine part of Chrome development for exactly that reason. And people who think memory management is easy in C++ are precisely the people I expect to introduce a lot of bugs.