Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Whether Linux Kernel 5.14 in Linus Torvalds can integrate Rust language code

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about whether Linux Kernel 5.14 in Linus Torvalds can integrate Rust language code. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

Google's Android team hopes to rewrite Android systems in the Rust language, and the team is also helping to evaluate the use of Rust to rewrite Linux Kernel. Through the Rust programming language, the Android team hopes that the new code will reduce memory security errors, data contests, and logic errors in general. And due to the use of modern programming languages, more people will participate in the development of the kernel.

"the first patch to support Rust in the Linux kernel has been released," Linus Torvalds said in an interview with IT Wire. People in charge of kernel development say the significance of this move is more important than Google's long article about Rust.

In response to a question from IT Wire Media, Torvalds said that the Rust code has not been integrated yet, but that the related code may be incorporated into the Mainline version of Linux 5.14 Kernel. However, Torvalds also admitted that support for Rust is still in its early stages, but at least it has provided a basis for its development.

Under Linux Weekly News, a developer left a message: "the solution is very simple, just use C++ instead of Rust." Torvalds could not restrain his laughter. "LOL. C++ can solve all the problems in C, but it will only make things worse, it's really a kind of crap language," he said with a smile.

"for those of you who don't like C, look for a language that can really provide you with something valuable," Torvalds said. For example, languages that are memory safe and [can] avoid some dangerous C #, or languages that have internal GC [garbage collection, garbage collection] support and make memory management easier. C++ has solved all the wrong problems, and anyone who says' rewrite the kernel with C++'is too ignorant to even know it. "

When people talk about the dangers of C, it's part of the reason why C is so powerful, he says. "it allows you to implement all these low-level things efficiently." Torvalds added that while garbage collection is "a very good thing in most other situations", "in general, you may not be able to do this in low-level system programming."

The above is whether the Linux Kernel 5.14 in Linus Torvalds shared by the editor can integrate the Rust language code. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report