Content-Length: 10277 | pFad | http://lwn.net/Articles/830409/

Supporting Linux kernel development in Rust [LWN.net]
|
|
Subscribe / Log in / New account

Supporting Linux kernel development in Rust

Supporting Linux kernel development in Rust

Posted Sep 2, 2020 16:48 UTC (Wed) by rgmoore (✭ supporter ✭, #75)
In reply to: Supporting Linux kernel development in Rust by darwi
Parent article: Supporting Linux kernel development in Rust

If the concept of a new language in the kernel is now open, then honestly C++2x would be a much better option.

It's not likely to happen as long as Linus is in charge. He has been very negative about C++ for a long time, and there's no indication that's going to change. As I understand his view, Linus doesn't see C++ as bringing in any real capabilities that the kernel needs, while it does massively expand the size of the language in a way that makes it very difficult to keep everyone using the same abstractions. There's a reason people who talk about how great C++ is always talk about the need to use a limited subset of the language.

In contrast, Rust brings some capabilities for memory management that are sorely lacking in C and C++. The ability to exclude whole categories of error is potentially really valuable, and one can see why kernel developers would like to add those capabilities to their toolbox.


to post comments

Supporting Linux kernel development in Rust

Posted Sep 8, 2020 8:36 UTC (Tue) by marcH (subscriber, #57642) [Link]

> There's a reason people who talk about how great C++ is always talk about the need to use a limited subset of the language.

https://www.google.com/search?q=alex+gaynor+holding+it+wrong

You can write bug-free code in any language. It's just orders of magnitude harder with some.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://lwn.net/Articles/830409/

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy