@0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish • 8 months agoSupreme leader madsh.itjust.worksimagemessage-square102fedilinkarrow-up1763arrow-down133
arrow-up1730arrow-down1imageSupreme leader madsh.itjust.works@0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish • 8 months agomessage-square102fedilink
minus-square@BartyDeCanter@lemmy.sdf.orglinkfedilink137•8 months agoThere is no C++ allowed in the Linux kernel and Linus has gone on several major rants about how terrible a language it is.
minus-square@ozymandias117@lemmy.worldlinkfedilinkEnglish86•8 months agoThere’s assembly and makefiles too Less of a joke answer, there has been work to allow Rust bindings for drivers.
minus-square@BartyDeCanter@lemmy.sdf.orglinkfedilink85•8 months agoAccording to the github analysis, the kernel repository is: C 98.3% Assembly 0.7% Shell 0.4% Makefile 0.2% Python 0.2% Perl 0.1% Other 0.1% So yeah, its basically all C, plus a tiny bit of assembly for very low level bootstrapping and some helper scripts.
minus-square@rambling_lunatic@sh.itjust.workslinkfedilink30•8 months agoYeah but a lot of that C code has inline assembly so it’s more like 5-10% asm.
minus-square@riodoro1@lemmy.worldlinkfedilink13•8 months agoInline assembly is such a shit practice. But c++ bad.
minus-square@riodoro1@lemmy.worldlinkfedilink1•7 months agoAfaik MSVC forbids it and it’s one of the very few nice things about c++ on windows. If you need to write assembly don’t fucking do it in a cpp file. Create a header, an assembly file, assemble it and link to it.
minus-square@jabjoe@feddit.uklinkfedilinkEnglish17•8 months agoLots of core UNIX and Linux projects are. C++ is not liked by a lot of low level FOSS community. I think Rust is going to get further into these areas. I know C++ well but prefer C. I know plenty of others who feel the same.
minus-squaredoriancodeslinkfedilink3•7 months agoI’ve read that they are writing parts of the kernel in Rust
minus-square@jabjoe@feddit.uklinkfedilinkEnglish4•7 months agoYes, I think Rust is a better C++ and will replace it in many places. Though all three will be around for ever to be honest.
minus-square@0x4E4F@sh.itjust.worksOPlinkfedilinkEnglish2•7 months agoYes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel.
minus-square@jabjoe@feddit.uklinkfedilinkEnglish3•7 months agoRust is certainly interesting. I think it’s the C++ we need.
minus-square@refalo@programming.devlinkfedilink1•7 months agoPersonally I find the syntax unreadable.
minus-square@VubDapple@lemmy.worldlinkfedilink4•7 months agoWhy do I suddenly feel a meme coming on? 😅
minus-square@refalo@programming.devlinkfedilink3•edit-27 months agoThen why does he write C++? https://github.com/subsurface/subsurface/commit/1b16d570a1b6700295153bd6597b148b65000458
There is no C++ allowed in the Linux kernel and Linus has gone on several major rants about how terrible a language it is.
Is it all C?
There’s assembly and makefiles too
Less of a joke answer, there has been work to allow Rust bindings for drivers.
rust too
According to the github analysis, the kernel repository is:
So yeah, its basically all C, plus a tiny bit of assembly for very low level bootstrapping and some helper scripts.
Yeah but a lot of that C code has inline assembly so it’s more like 5-10% asm.
Inline assembly is such a shit practice. But c++ bad.
Sometimes you can’t get around it though.
Afaik MSVC forbids it and it’s one of the very few nice things about c++ on windows.
If you need to write assembly don’t fucking do it in a cpp file. Create a header, an assembly file, assemble it and link to it.
Wot no Delphi?
Removed by mod
Yeah, indeed, why not 🤔…
Lots of core UNIX and Linux projects are. C++ is not liked by a lot of low level FOSS community. I think Rust is going to get further into these areas. I know C++ well but prefer C. I know plenty of others who feel the same.
I’ve read that they are writing parts of the kernel in Rust
Yes, I think Rust is a better C++ and will replace it in many places. Though all three will be around for ever to be honest.
Yes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel.
Rust is certainly interesting. I think it’s the C++ we need.
Exactly my thoughts 👍.
Personally I find the syntax unreadable.
Always has been
Why do I suddenly feel a meme coming on? 😅
Then why does he write C++?
https://github.com/subsurface/subsurface/commit/1b16d570a1b6700295153bd6597b148b65000458