Comment by tombert
8 months ago
Why is it almost impossible? I'm a little out of practice with C++ but I thought the modern C++ features were considered pretty solid in regards to memory safety and the like?
8 months ago
Why is it almost impossible? I'm a little out of practice with C++ but I thought the modern C++ features were considered pretty solid in regards to memory safety and the like?
C++ has indeed added many features that help with memory safety, at the cost of getting increasingly more complicated and harder to work with.
c++ isn't memory safe and will probably never be. that being said, it's not more or less possible to create an efficient browser engine for multicore systems with c++ than any other language. programming language is not the thing that makes the task difficult.
As I said, I'm pretty out of practice, but doesn't stuff like unique_ptr give you a lot of memory-safe features out of the box?
Not really, no