Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ is not back

Name: Anonymous 2012-12-02 11:40

http://simpleprogrammer.com/2012/12/01/why-c-is-not-back/

Some interesting points about C++. I think next version of C++ should remove 80% of the language.

And no, C is not an option. Lack of RAII and other "advanced" functionalities will result in terrible bugs.

And no, D is not proper replacement. GC is shit.

Name: Anonymous 2012-12-04 4:13

>>37
Win32 is a C API, and the vast majority of the NT kernel is written in C [1].  You can indeed write kernel mode drivers for NT in C++ [2], but this is of limited usefulness because one must dispense with many of the defining features of the language (templates, exceptions, RTTI) in order to get things done. Even RAII is of limited application because kernel destructors can often fail in myriad ways.

I'm not at all convinced that it's worth it to switch from C to C++ for kernel code. For a green-field project, a C++ subset might be a smidge nicer to use, but real world codebases like the Linux kernel have already implemented so many of the niceties in plain C that there's no clear benefit to switching.


[1] http://discuss.fogcreek.com/joelonsoftware/default.asp?cmd=show&ixPost=28914
[2] http://msdn.microsoft.com/en-us/library/windows/hardware/gg487420.aspx

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List