4 ms·
There's nothing wrong with modern C++, I think it can give any other language a run for its money in this space. If you are talking about a complete re-write, I
by flatline 9y ago
There's nothing wrong with modern C++, I think it can give any other language a run for its money in this space. If you are talking about a complete re-write, I don't think you can fairly overlook it. RAII + smart pointers eliminate the most pernicious memory management issues. The STL has grown to parity with other modern platforms. Even without a rewrite, given enough time and effort, that crappy old Konquerer codebase may even turn out to look reasonably good.
I would not, however, wish it to be the only thing available.
- dragonwriter 9y ago> There's nothing wrong with modern C++ The fact that it's a set of practices to avoid the deathtraps within a language which itself has plenty of problems left lying around is, arguably, the problem with modern C++.
- flatline 9y agoYes, that is the problem. It's also what allows you to drag that 20 year old mess forward into the 21st century. It compiles to virtually any platform with a number of compilers. Trade offs...
- johncolanduoni 9y agoWhat platform needs/wants a web browser that isn't covered by an LLVM target?
- pcwalton 9y ago> RAII + smart pointers eliminate the most pernicious memory management issues. No, they don't. Browsers have been using RAII and smart pointers for years and years. The memory management-related vulnerabilities keep happening. The biggest problem tends to be use-after-free, which smart pointers do absolutely nothing to mitigate.