Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How about you do the following two Google (or AI) searches

"Please give me examples of great systems software written in plain C or C style procedural C++"

"Please give me examples of great systems software written in modern C++, as opposed to procedural C style C++ or plain C".

Why does it seem like the majority of core infrastructure, like Linux kernel (also vast parts of Windows/Mac OS), PostgresQL, Sqlite3, Git, OpenSSH, GCC, but also e.g. MS Office/Excel, are written in plain procedural code and not in modern C++? For the latter, I get stuff like "ScyllaDB NoSQL database" or "Envoy Proxy" or whatever, what is that even and why should I care or how do I know they're actually technically solid products and not just hype?

My claim: The arguments that I've given (but you keep insisting I didn't give them) play a huge rule in why that is so. You can use C++ RAII for plumbing and high-level stuff. But if you try to actually implement technically interesting things, it won't help you at all, it's just getting in the way.



How about you do the following two Google (or AI) searches

Why don't you do it so you can make your own argument.

Why does it seem like the majority of core infrastructure,

Why are projects started decades not using modern C++ that came decades after they were started?

This doesn't have anything to do with destructors.

The arguments that I've given (but you keep insisting I didn't give them)

You didn't give arguments, you made claims based on other people doing something different decades before modern C++ existed. Someone managing to dig a hole with their hands doesn't make a shovel a bad tool. Animals dig holes all the time, people are better at it.

But if you try to actually implement technically interesting things, it won't help you at all, it's just getting in the way.

This again is your claim which you haven't been able to explain in any way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: