Talking about how unsafe is not some new fancy rust feature and exists in other languages. Your comment makes it sound like the choice is some new wild computing concept.
Memory safe languages that are not garbage collected are not all that common. Ada and Rust are two examples.
With great care C++ and zig can be.
I’m sure there’s a good reason a lot of the big players and the community at large have picked up rust though. Docs, error messages, cargo community etc.
I would argue that Rust does bring a lot to the table. I certainly would never code in C for work but I’ll happily reach for Rust.
Bruh do you actually not get it. The point of rust is that its memory safe(with a huge grain of salt in the case of low level programming) and is a language you can write kernels in. Youre not gonna write a kernel in C# so it doesnt really matter for a discussion about kernels.
Because Rust lets you choose when something is unsafe vs writing all unsafe in code all the time:
I wonder if this can be adjusted for LoC count in each language
Not sure if that’s a fair metric yet.
It’s not, I have no better idea
Maybe only counting new/edited LoC in that language. But also probably not completely fair.
Yes same concept as other languages like C#
You go ahead and write an OS kernel in C# then.
Why the hell would you do that
Why would you bring up C# in a thread about kernel programming?
Talking about how unsafe is not some new fancy rust feature and exists in other languages. Your comment makes it sound like the choice is some new wild computing concept.
Memory safe languages that are not garbage collected are not all that common. Ada and Rust are two examples.
With great care C++ and zig can be.
I’m sure there’s a good reason a lot of the big players and the community at large have picked up rust though. Docs, error messages, cargo community etc.
I would argue that Rust does bring a lot to the table. I certainly would never code in C for work but I’ll happily reach for Rust.
Bruh do you actually not get it. The point of rust is that its memory safe(with a huge grain of salt in the case of low level programming) and is a language you can write kernels in. Youre not gonna write a kernel in C# so it doesnt really matter for a discussion about kernels.
I think you are lost, nobody is saying use C# for an OS kernel.
Microsoft did.
Here, someone already wrote a bare bones one. Of course that also uses an unsafe block lol