News for hackers. Stuff that matters.
Re:Moving the Linux Kernel to Modern C by jcelerier on Thursday February 24, 2022 @05:24PM (#30461153)
> C++ was discussed as having too many undesirable characteristics.

C++ allowed the Serenity OS people to produce an entire OS with a GUI stack able to play Diablo and their own web browser in something like two years. It's depressing to think where we could be today in terms of OS if the Linux and GNU people weren't as insistent on their hate of C++

Re:Moving the Linux Kernel to Modern C by von_lohengramm on Thursday February 24, 2022 @07:45PM (#30462393)
Note that Serenity OS also has its own stdlib "AK" that excludes a lot of criticized C++ "features". If the Linux devs were to carefully splice out the Good from the Bad and Ugly of C++, then maybe it'd suit their tastes just fine. I think the bigger factor here is that Linux became decidedly anti-C++ back when C++ was actually pretty crumby.
Re:Moving the Linux Kernel to Modern C by jcelerier on Friday February 25, 2022 @02:42AM (#30464624)
The Linux kernel has its own libc-ish too.
Re:Moving the Linux Kernel to Modern C by tayo42 on Thursday February 24, 2022 @05:48PM (#30461431)
Why is c++ necessary? Shouldn't any programing language be able to do the same things. Maybe with different amounts of code
Re:Moving the Linux Kernel to Modern C by Koshkin on Thursday February 24, 2022 @06:19PM (#30461702)
Sure, as my prof once noted, "Why, with the assembler you just need to type more!"
Re:Moving the Linux Kernel to Modern C by microtherion on Thursday February 24, 2022 @08:42PM (#30462761)
You must have had one of those progressive professors who did not consider assemblers "a waste of a valuable scientific computing instrument [...] to do clerical work": http://worrydream.com/dbx/
Re:Moving the Linux Kernel to Modern C by reasonabl_human on Friday February 25, 2022 @10:24AM (#30468211)
I love historical anecdotes like this. Goes to show that we should always be questioning our status quo and thinking bigger.
Re:Moving the Linux Kernel to Modern C by josefx on Thursday February 24, 2022 @06:30PM (#30461794)
Please write a JavaScript program that will not deploy to your production system if you accidentally pass a string to any function that expects an integer.
Re:Moving the Linux Kernel to Modern C by cprecioso on Thursday February 24, 2022 @07:23PM (#30462240)
So… typescript?
Re:Moving the Linux Kernel to Modern C by mhh__ on Friday February 25, 2022 @02:34AM (#30464578)
Because it's better.

Simple question, simple answer. Using C is purely an act of risk-aversion, contrarianism, and fashion.

Re:Moving the Linux Kernel to Modern C by edgyquant on Friday February 25, 2022 @12:44AM (#30464057)
You could build Serenity in C in a similar about of time
Re:Moving the Linux Kernel to Modern C by akling on Friday February 25, 2022 @06:21AM (#30466080)
Perhaps someone could, but I certainly couldn't. :)
Re:Moving the Linux Kernel to Modern C by jcelerier on Friday February 25, 2022 @02:40AM (#30464618)
What are the arguments towards this ?