Groups Similar Look up By Text Browse About



Similar articles
Article Id Title Prob Score Similar Compare
212364 ZDNET 2021-7-20:
Rust in the Linux kernel: Why it matters and what's happening next
1.000 Find similar Compare side-by-side
212227 TECHREPUBLIC 2021-7-21:
Let the Linux kernel Rust
0.981 0.609 Find similar Compare side-by-side
211956 ZDNET 2021-7-16:
Say hi to Microsoft's own Linux: CBL-Mariner
0.432 Find similar Compare side-by-side
211946 ZDNET 2021-7-16:
Programming language Python now has its own developer-in-residence. This is what they plan to do
0.424 Find similar Compare side-by-side
212595 TECHREPUBLIC 2021-7-22:
Systemd can't seem to catch a break: New vulnerability found
0.002 0.419 Find similar Compare side-by-side
212046 TECHREPUBLIC 2021-7-16:
Microsoft Linux is not what you thought (or hoped) it would be
0.404 Find similar Compare side-by-side
212455 ZDNET 2021-7-20:
Nasty Linux systemd security bug revealed
0.011 0.400 Find similar Compare side-by-side
212604 ZDNET 2021-7-21:
Patch now: Linux file system security hole, dubbed Sequoia, can take over systems
0.043 0.400 Find similar Compare side-by-side
212176 TECHREPUBLIC 2021-7-21:
KDE is to Linux what 7 was to Windows
0.315 Find similar Compare side-by-side
212164 ZDNET 2021-7-21:
Learn all the skills you need to be a C Suite programmer for only $50
0.314 Find similar Compare side-by-side
211967 TECHREPUBLIC 2021-7-16:
What programming language is the most popular for developers? No, it's not Python
0.310 Find similar Compare side-by-side
212029 ZDNET 2021-7-16:
Top programming languages for developers: JavaScript rules, but Python overtakes Java
0.300 Find similar Compare side-by-side
212321 TECHREPUBLIC 2021-7-19:
Linux 101: What are aliases and how do you use them?
0.295 Find similar Compare side-by-side
212408 ZDNET 2021-7-16:
Linux Foundation starts open-source diversity, equity, and inclusion survey
0.292 Find similar Compare side-by-side
212468 ZDNET 2021-7-23:
GitHub boosts supply chain security for Go modules
0.292 Find similar Compare side-by-side
212388 ZDNET 2021-7-19:
Red Hat expands Linux offerings for research and academic organizations
0.283 Find similar Compare side-by-side
212563 TECHREPUBLIC 2021-7-23:
Programming languages: Learn Python basics and advanced skills in these 12 courses
0.283 Find similar Compare side-by-side
212323 VENTUREBEAT 2021-7-18:
Natural language understanding tough for neural networks
0.280 Find similar Compare side-by-side
212015 ZDNET 2021-7-16:
Learn how to master Python programming for only $60
0.279 Find similar Compare side-by-side
212147 ZDNET 2021-7-19:
Developer tools: VS Code just got a built-in JavaScript debugger
0.279 Find similar Compare side-by-side
212325 VENTUREBEAT 2021-7-18:
Why machine programming should be the next technology you invest in
0.271 Find similar Compare side-by-side
212067 THEVERGE 2021-7-16:
Among Us gets an official Irish translation
0.269 Find similar Compare side-by-side
212330 VENTUREBEAT 2021-7-18:
OpenAI Codex shows the limits of large language models
0.269 Find similar Compare side-by-side
212530 TECHREPUBLIC 2021-7-22:
Which universities are producing today's programming talent?
0.256 Find similar Compare side-by-side
212171 ARSTECHNICA 2021-7-18:
Google details its protein-folding software, academics offer an alternative
0.255 Find similar Compare side-by-side

1

ID: 212364

URL: https://www.zdnet.com/article/rust-in-the-linux-kernel-why-it-matters-and-whats-happening-next/

Date: 2021-07-20

Rust in the Linux kernel: Why it matters and what's happening next

Rust for Linux? The move to make Rust a second language for developing the Linux kernel is gathering momentum. But there are still challenges ahead. For three decades, Linux has been written in the programming language C. But change could be coming. There's growing momentum behind an effort to make programming language Rust a second language to C for the Linux kernel. Google is backing a project led by developer Miguel Ojeda that would see Rust being used to write elements of the Linux kernel, which now underpins some of the most critical pieces of the internet's infrastructure today.   The most popular programming languages and where to learn them Upskilling will be a part of work's new normal. Here's a look at the most popular programming languages based on surveys and courses for them. Read More Google argues that Rust should help reduce memory errors that lead to security vulnerabilities, which make up the bulk of flaws that tech firms and open-source projects fix in each update. The goal is not to write all 30 million lines of C code again in Rust, but to write new code in Rust instead. Hiring Kit: Python developer (TechRepublic Premium) However, despite some potential benefits, it's still not clear if the push to make Rust a second language for kernel development will succeed. At the very least, Rust for Linux must be viewed as a long-term project and is almost certain not to get mainlined into the Linux kernel in 5.14 – the version currently under development and due out as stable around the third quarter of 2021.  "The project is not finished, but we are ready to get mainlined if high-level maintainers accept the current changes and prefer that we work inside the kernel," Ojeda tells ZDNet. "Most of the work is still ahead of us." Rust, hatched at Mozilla, was used to build the Servo rendering engine for Firefox, and has gained traction with Amazon Web Services, Microsoft, Google, and Facebook for systems programming – often to build on top of large C and C++ codebases. As a result of this growing popularity, the idea of Rust in the kernel has gained support from some big tech companies. But despite some potential benefits, fans of Rust can't simply make it a programming language for the Linux kernel on their own. It needs approval from Linus Torvalds and the high-level maintainers who guide the development of the kernel. And Torvalds hasn't indicated whether he would approve the pull request (PR) to merge the latest Rust for Linux patches into the main Linux kernel.   Ojeda posted a first request for comment (RFC) to the Linux kernel mailing list in April and followed up with a set of proposed patches in early July that he and his peers hoped would be included in the Linux kernel.  Ojeda's first RFC included examples of Rust drivers, but Torvalds' response to the Linux drivers was not positive: he said that run-time failure panic – a type of error – is a "fundamental issue".  Torvalds' comment highlighted the long road ahead for the Rust for Linux project. As ZDNet's Steven J. Vaughan-Nichols reported in March, Torvalds is in the 'wait and see' camp for bringing Rust to the Linux kernel: he's neither for or against Rust, but is open to seeing if its promised benefits actually pan out.  "I think it's driven by people who are very excited about Rust, and I want to see how it actually then ends up working in practice," Torvalds told ZDNet, adding that drivers seem to be the most obvious target for Rust.  Ojeda acknowledges Torvalds' concerns about panics, but also says the team of developers attempting to bring Rust to Linux are addressing the issues.  He says that removing unnecessary panics is a key concern amongst the Linux kernel community, but believes that it is "mostly a technical obstacle and has been solved. " "The other one is getting kernel modules written as proofs of concept," says Ojeda. "The Rust Binder kernel module is working and the preliminary performance results we have in a trivial latency benchmark are better than the C version, which is very encouraging; although we are still in the process of improving the code and cleaning things up. We are also working on writing modules that drive actual hardware and coming up with ways to improve the ergonomics around that." But the bigger hurdle, says Ojeda, is getting Linux kernel contributors, who've been coding in C for decades, to learn Rust and its concepts.  "In my view, the bigger obstacle comes from teachability. Rust is more complex than C," he says.  That's not a small issue either, given the hundreds of patches and changes that arrive in each new version of the kernel. Someone has to write them – and developers could now feel they need to learn Rust when they're already operating on a tight schedule. It should be noted that the project isn't forcing Linux maintainers to use Rust but rather providing an option to write new subsystem code in Rust. This will help them maintain and write patches themselves, says Ojeda. Computer science courses in 2021: A comprehensive overviewSome of the concepts in Rust are foreign to other languages, such as the ' borrow checker' that developers often fight with when trying to understand when code doesn't compile as expected; another alien concept is Rust's safe/unsafe split.  "Kernel developers are very smart, but also very busy. It is not easy to get everyone involved and explain why we think introducing a second language is worth the complexity cost," says Ojeda. All of this means the Rust for Linux project appears to have some way to go yet before its patches are merged. Following the new patches, Linux stable kernel maintainer Greg Kroah-Hartman asked the project for a "concrete" Linux driver written in Rust.  Like Torvalds, he believed kernel drivers make sense because they're "the 'end leafs' of the tree of dependencies in the kernel source. " And if the Rust for Linux packages are rejected, the exercise of thinking about a kernel with fewer memory bugs is an end in itself. "Even if the project got a hard no – that there is no chance at all the project will make it now or in the future – the project would not have been wasted time," says Ojeda. "The exercise of adding a second language to the kernel is an interesting one that has generated quite a lot of discussion. Even if it were not Rust, it is good to have all that experience if another language wants to attempt it. "Most importantly, I think having raised awareness on the memory-safety guarantees that using a new approach can bring is already key. In my opinion, if we are to have any second language in the kernel, it should be one that significantly improves the state of affairs in that regard."