@[email protected] to [email protected]English • 1 year agoSupreme leader madsh.itjust.worksimagemessage-square103fedilinkarrow-up1764
arrow-up1764imageSupreme leader madsh.itjust.works@[email protected] to [email protected]English • 1 year agomessage-square103fedilink
minus-square@[email protected]linkfedilinkEnglish86•1 year agoThere’s assembly and makefiles too Less of a joke answer, there has been work to allow Rust bindings for drivers.
minus-square@[email protected]linkfedilink85•1 year 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@[email protected]linkfedilink3•1 year agoNo VB6 either 🤷♂️ How can one write a kernel without using VB6 at all?
minus-square@[email protected]linkfedilink30•1 year agoYeah but a lot of that C code has inline assembly so it’s more like 5-10% asm.
minus-square@[email protected]linkfedilink16•1 year agoInline assembly is such a shit practice. But c++ bad.
minus-square@[email protected]linkfedilink2•1 year 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@[email protected]linkfedilinkEnglish17•1 year 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•1 year agoI’ve read that they are writing parts of the kernel in Rust
minus-square@[email protected]linkfedilinkEnglish4•1 year 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@[email protected]OPlinkfedilinkEnglish2•1 year agoYes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel.
minus-square@[email protected]linkfedilinkEnglish3•1 year agoRust is certainly interesting. I think it’s the C++ we need.
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.
Wot no Delphi?
No VB6 either 🤷♂️
How can one write a kernel without using VB6 at all?
Yeah, indeed, why not 🤔…
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.
Always has been
Why do I suddenly feel a meme coming on? 😅
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.