β² 731 βΌ Supreme leader mad (sh.itjust.works) submitted 2 years ago by 0x4E4F@sh.itjust.works to c/linuxmemes@lemmy.world 101 comments fedilink hide all child comments
[β] BartyDeCanter@lemmy.sdf.org 137 points 2 years ago (2 children) There is no C++ allowed in the Linux kernel and Linus has gone on several major rants about how terrible a language it is. permalink fedilink source parent hideshow 4 child comments replies: [β] VubDapple@lemmy.world 53 points 2 years ago (4 children) Is it all C? permalink fedilink source parent hideshow 8 child comments replies: [β] ozymandias117@lemmy.world 86 points 2 years ago (1 child) Thereβs assembly and makefiles too Less of a joke answer, there has been work to allow Rust bindings for drivers. permalink fedilink source parent hideshow 2 child comments replies: [β] Vilian@lemmy.ca 26 points 2 years ago rust too permalink fedilink source parent [β] BartyDeCanter@lemmy.sdf.org 85 points 2 years ago (2 children) According 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. permalink fedilink source parent hideshow 4 child comments replies: [β] rambling_lunatic@sh.itjust.works 30 points 2 years ago (1 child) Yeah but a lot of that C code has inline assembly so it's more like 5-10% asm. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 13 points 2 years ago (1 child) Inline assembly is such a shit practice. But c++ bad. permalink fedilink source parent hideshow 2 child comments replies: [β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent [β] Blackmist@feddit.uk 1 point 2 years ago (2 children) Wot no Delphi? permalink fedilink source parent hideshow 4 child comments replies: [+] FlorianSimon@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Yeah, indeed, why not π€... permalink fedilink source parent [β] jabjoe@feddit.uk 17 points 2 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [β] doriancodes@infosec.pub 3 points 2 years ago (1 child) I've read that they are writing parts of the kernel in Rust permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 4 points 2 years ago (2 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 2 points 2 years ago (1 child) Yes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel. permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 3 points 2 years ago (1 child) Rust is certainly interesting. I think it's the C++ we need. permalink fedilink source parent hideshow 2 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Exactly my thoughts π. permalink fedilink source parent [β] refalo@programming.dev 1 point 2 years ago Personally I find the syntax unreadable. permalink fedilink source parent [β] VitabytesDev@feddit.nl 1 point 2 years ago (1 child) Always has been permalink fedilink source parent hideshow 2 child comments replies: [β] VubDapple@lemmy.world 4 points 2 years ago Why do I suddenly feel a meme coming on? π permalink fedilink source parent [β] refalo@programming.dev 3 points 2 years ago* (last edited 2 years ago) Then why does he write C++? https://github.com/subsurface/subsurface/commit/1b16d570a1b6700295153bd6597b148b65000458 permalink fedilink source parent
[β] VubDapple@lemmy.world 53 points 2 years ago (4 children) Is it all C? permalink fedilink source parent hideshow 8 child comments replies: [β] ozymandias117@lemmy.world 86 points 2 years ago (1 child) Thereβs assembly and makefiles too Less of a joke answer, there has been work to allow Rust bindings for drivers. permalink fedilink source parent hideshow 2 child comments replies: [β] Vilian@lemmy.ca 26 points 2 years ago rust too permalink fedilink source parent [β] BartyDeCanter@lemmy.sdf.org 85 points 2 years ago (2 children) According 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. permalink fedilink source parent hideshow 4 child comments replies: [β] rambling_lunatic@sh.itjust.works 30 points 2 years ago (1 child) Yeah but a lot of that C code has inline assembly so it's more like 5-10% asm. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 13 points 2 years ago (1 child) Inline assembly is such a shit practice. But c++ bad. permalink fedilink source parent hideshow 2 child comments replies: [β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent [β] Blackmist@feddit.uk 1 point 2 years ago (2 children) Wot no Delphi? permalink fedilink source parent hideshow 4 child comments replies: [+] FlorianSimon@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Yeah, indeed, why not π€... permalink fedilink source parent [β] jabjoe@feddit.uk 17 points 2 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [β] doriancodes@infosec.pub 3 points 2 years ago (1 child) I've read that they are writing parts of the kernel in Rust permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 4 points 2 years ago (2 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 2 points 2 years ago (1 child) Yes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel. permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 3 points 2 years ago (1 child) Rust is certainly interesting. I think it's the C++ we need. permalink fedilink source parent hideshow 2 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Exactly my thoughts π. permalink fedilink source parent [β] refalo@programming.dev 1 point 2 years ago Personally I find the syntax unreadable. permalink fedilink source parent [β] VitabytesDev@feddit.nl 1 point 2 years ago (1 child) Always has been permalink fedilink source parent hideshow 2 child comments replies: [β] VubDapple@lemmy.world 4 points 2 years ago Why do I suddenly feel a meme coming on? π permalink fedilink source parent
[β] ozymandias117@lemmy.world 86 points 2 years ago (1 child) Thereβs assembly and makefiles too Less of a joke answer, there has been work to allow Rust bindings for drivers. permalink fedilink source parent hideshow 2 child comments replies: [β] Vilian@lemmy.ca 26 points 2 years ago rust too permalink fedilink source parent
[β] BartyDeCanter@lemmy.sdf.org 85 points 2 years ago (2 children) According 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. permalink fedilink source parent hideshow 4 child comments replies: [β] rambling_lunatic@sh.itjust.works 30 points 2 years ago (1 child) Yeah but a lot of that C code has inline assembly so it's more like 5-10% asm. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 13 points 2 years ago (1 child) Inline assembly is such a shit practice. But c++ bad. permalink fedilink source parent hideshow 2 child comments replies: [β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent [β] Blackmist@feddit.uk 1 point 2 years ago (2 children) Wot no Delphi? permalink fedilink source parent hideshow 4 child comments replies: [+] FlorianSimon@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Yeah, indeed, why not π€... permalink fedilink source parent
[β] rambling_lunatic@sh.itjust.works 30 points 2 years ago (1 child) Yeah but a lot of that C code has inline assembly so it's more like 5-10% asm. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 13 points 2 years ago (1 child) Inline assembly is such a shit practice. But c++ bad. permalink fedilink source parent hideshow 2 child comments replies: [β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent
[β] riodoro1@lemmy.world 13 points 2 years ago (1 child) Inline assembly is such a shit practice. But c++ bad. permalink fedilink source parent hideshow 2 child comments replies: [β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent
[β] Mananasi@feddit.nl 11 points 2 years ago (1 child) Sometimes you can't get around it though. permalink fedilink source parent hideshow 2 child comments replies: [β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent
[β] riodoro1@lemmy.world 1 point 2 years ago 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. permalink fedilink source parent
[β] Blackmist@feddit.uk 1 point 2 years ago (2 children) Wot no Delphi? permalink fedilink source parent hideshow 4 child comments replies: [+] FlorianSimon@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Yeah, indeed, why not π€... permalink fedilink source parent
[+] FlorianSimon@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Yeah, indeed, why not π€... permalink fedilink source parent
[β] jabjoe@feddit.uk 17 points 2 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [β] doriancodes@infosec.pub 3 points 2 years ago (1 child) I've read that they are writing parts of the kernel in Rust permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 4 points 2 years ago (2 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 2 points 2 years ago (1 child) Yes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel. permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 3 points 2 years ago (1 child) Rust is certainly interesting. I think it's the C++ we need. permalink fedilink source parent hideshow 2 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Exactly my thoughts π. permalink fedilink source parent [β] refalo@programming.dev 1 point 2 years ago Personally I find the syntax unreadable. permalink fedilink source parent
[β] doriancodes@infosec.pub 3 points 2 years ago (1 child) I've read that they are writing parts of the kernel in Rust permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 4 points 2 years ago (2 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 2 points 2 years ago (1 child) Yes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel. permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 3 points 2 years ago (1 child) Rust is certainly interesting. I think it's the C++ we need. permalink fedilink source parent hideshow 2 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Exactly my thoughts π. permalink fedilink source parent [β] refalo@programming.dev 1 point 2 years ago Personally I find the syntax unreadable. permalink fedilink source parent
[β] jabjoe@feddit.uk 4 points 2 years ago (2 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 2 points 2 years ago (1 child) Yes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel. permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 3 points 2 years ago (1 child) Rust is certainly interesting. I think it's the C++ we need. permalink fedilink source parent hideshow 2 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Exactly my thoughts π. permalink fedilink source parent [β] refalo@programming.dev 1 point 2 years ago Personally I find the syntax unreadable. permalink fedilink source parent
[β] 0x4E4F@sh.itjust.works [S] 2 points 2 years ago (1 child) Yes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel. permalink fedilink source parent hideshow 2 child comments replies: [β] jabjoe@feddit.uk 3 points 2 years ago (1 child) Rust is certainly interesting. I think it's the C++ we need. permalink fedilink source parent hideshow 2 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Exactly my thoughts π. permalink fedilink source parent
[β] jabjoe@feddit.uk 3 points 2 years ago (1 child) Rust is certainly interesting. I think it's the C++ we need. permalink fedilink source parent hideshow 2 child comments replies: [β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Exactly my thoughts π. permalink fedilink source parent
[β] 0x4E4F@sh.itjust.works [S] 1 point 2 years ago Exactly my thoughts π. permalink fedilink source parent
[β] refalo@programming.dev 1 point 2 years ago Personally I find the syntax unreadable. permalink fedilink source parent
[β] VitabytesDev@feddit.nl 1 point 2 years ago (1 child) Always has been permalink fedilink source parent hideshow 2 child comments replies: [β] VubDapple@lemmy.world 4 points 2 years ago Why do I suddenly feel a meme coming on? π permalink fedilink source parent
[β] VubDapple@lemmy.world 4 points 2 years ago Why do I suddenly feel a meme coming on? π permalink fedilink source parent
[β] refalo@programming.dev 3 points 2 years ago* (last edited 2 years ago) Then why does he write C++? https://github.com/subsurface/subsurface/commit/1b16d570a1b6700295153bd6597b148b65000458 permalink fedilink source parent