Hacker News new | ask | show | jobs
by krizhanovsky 2053 days ago
Please read the discussion in https://www.reddit.com/r/Cplusplus/comments/jjtn5v/fast_prog... . In short, everything is doable, but before starting your project, which you're paid for, you have to grow quite a large C++ infrastructure, which double the native Linux kernel API in many ways.

> Operator new is wholly compatible with kernel allocators.

Please read the referenced thread. The things aren't so simple.

2 comments

OK, I have read it.

The Linux kernel is a large system. Things needed to work in Linux are not unusual for customizations needed for any large system, that we do routinely. If you think this is a problem, it can only be from lack of experience of large C++ systems.

When people complain about the complexity of C++, it is generally because they have no experience of large systems that demand all kinds of specializations. C++ can be used in a simple way to write simple programs, and then you get to ignore all the knobs and switches. It can also be used in all varieties of specialized environments, and then you find knob and switch settings to make it work for that environment.

People coding OS kernels don't ask for simple.

They should demand powerful, but too often fail to.