▲ 182 ▼ Linux Kernel Rust Code Sees Its First CVE Vulnerability (www.phoronix.com) submitted 10 months ago by hal_5700X@sh.itjust.works to c/technology@lemmy.world 46 comments fedilink hide all child comments
[–] Technus@lemmy.zip 8 points 10 months ago (8 children) You go ahead and write an OS kernel in C# then. permalink fedilink source parent hideshow 8 child comments replies: [–] ryannathans@aussie.zone 9 points 10 months ago (6 children) Why the hell would you do that permalink fedilink source parent hideshow 6 child comments replies: [–] Technus@lemmy.zip 4 points 10 months ago (5 children) Why would you bring up C# in a thread about kernel programming? permalink fedilink source parent hideshow 5 child comments replies: [–] ryannathans@aussie.zone 2 points 10 months ago* (4 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [–] Hawk@lemmynsfw.com 2 points 10 months ago 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. permalink fedilink source parent [–] AI_toothbrush@lemmy.zip 1 point 10 months ago (2 children) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] ryannathans@aussie.zone 2 points 10 months ago (1 child) I think you are lost, nobody is saying use C# for an OS kernel. permalink fedilink source parent hideshow 1 child comment replies: [–] The_Decryptor@aussie.zone 3 points 10 months ago Microsoft did. permalink fedilink source parent [–] boonhet@sopuli.xyz 5 points 10 months ago Here, someone already wrote a bare bones one. Of course that also uses an unsafe block lol permalink fedilink source parent
[–] ryannathans@aussie.zone 9 points 10 months ago (6 children) Why the hell would you do that permalink fedilink source parent hideshow 6 child comments replies: [–] Technus@lemmy.zip 4 points 10 months ago (5 children) Why would you bring up C# in a thread about kernel programming? permalink fedilink source parent hideshow 5 child comments replies: [–] ryannathans@aussie.zone 2 points 10 months ago* (4 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [–] Hawk@lemmynsfw.com 2 points 10 months ago 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. permalink fedilink source parent [–] AI_toothbrush@lemmy.zip 1 point 10 months ago (2 children) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] ryannathans@aussie.zone 2 points 10 months ago (1 child) I think you are lost, nobody is saying use C# for an OS kernel. permalink fedilink source parent hideshow 1 child comment replies: [–] The_Decryptor@aussie.zone 3 points 10 months ago Microsoft did. permalink fedilink source parent
[–] Technus@lemmy.zip 4 points 10 months ago (5 children) Why would you bring up C# in a thread about kernel programming? permalink fedilink source parent hideshow 5 child comments replies: [–] ryannathans@aussie.zone 2 points 10 months ago* (4 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [–] Hawk@lemmynsfw.com 2 points 10 months ago 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. permalink fedilink source parent [–] AI_toothbrush@lemmy.zip 1 point 10 months ago (2 children) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] ryannathans@aussie.zone 2 points 10 months ago (1 child) I think you are lost, nobody is saying use C# for an OS kernel. permalink fedilink source parent hideshow 1 child comment replies: [–] The_Decryptor@aussie.zone 3 points 10 months ago Microsoft did. permalink fedilink source parent
[–] ryannathans@aussie.zone 2 points 10 months ago* (4 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [–] Hawk@lemmynsfw.com 2 points 10 months ago 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. permalink fedilink source parent [–] AI_toothbrush@lemmy.zip 1 point 10 months ago (2 children) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] ryannathans@aussie.zone 2 points 10 months ago (1 child) I think you are lost, nobody is saying use C# for an OS kernel. permalink fedilink source parent hideshow 1 child comment replies: [–] The_Decryptor@aussie.zone 3 points 10 months ago Microsoft did. permalink fedilink source parent
[–] Hawk@lemmynsfw.com 2 points 10 months ago 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. permalink fedilink source parent
[–] AI_toothbrush@lemmy.zip 1 point 10 months ago (2 children) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] ryannathans@aussie.zone 2 points 10 months ago (1 child) I think you are lost, nobody is saying use C# for an OS kernel. permalink fedilink source parent hideshow 1 child comment replies: [–] The_Decryptor@aussie.zone 3 points 10 months ago Microsoft did. permalink fedilink source parent
[–] ryannathans@aussie.zone 2 points 10 months ago (1 child) I think you are lost, nobody is saying use C# for an OS kernel. permalink fedilink source parent hideshow 1 child comment replies: [–] The_Decryptor@aussie.zone 3 points 10 months ago Microsoft did. permalink fedilink source parent
[–] boonhet@sopuli.xyz 5 points 10 months ago Here, someone already wrote a bare bones one. Of course that also uses an unsafe block lol permalink fedilink source parent