News Technologies 04-01-2024 at 13:19 comment views icon
Article from  

Google believes that Rust programming language is twice as efficient as C++

author avatar
https://itc.ua/wp-content/uploads/2024/03/647dc38d9e7db-bpfull-1-96x96.jpg *** https://itc.ua/wp-content/uploads/2024/03/647dc38d9e7db-bpfull-1-96x96.jpg *** https://itc.ua/wp-content/uploads/2024/03/647dc38d9e7db-bpfull-1-96x96.jpg

Igor Sheludchenko

News writer

Bergstrom said that while Dropbox in 2016 and Figma in 2018 offered early descriptions of rewriting code in memory-safe Rust-and doubts about performance and language have subsided-concerns about its reliability and security remain.

But there have been significant changes in the software development ecosystem.

For example, in a new report by the White House Office of the National Cyber Director (ONCD) called ondevelopers to use «memory-safe programming languages» and to abandon C or C++ programming tools. This advice is a step towards «protecting the building blocks of cyberspace».

According to the government, C and C++ allow arbitrary arithmetic with pointers with direct memory addresses without bounds checking. At the same time, C++ author Bjarne Straustrup criticized the US government.

«I find it strange that the authors of these resolutions do not notice the strengths of modern C++ and the efforts aimed at ensuring security», he said.

The main problem is that most security vulnerabilities in large codebases can be traced back to memory security bugs. And Rust can largely, if not completely, avoid such problems if used properly.

Back in September 2022, Microsoft Azure CTO Mark Russinovich said that software projects that may have started in C/C++ should use Rust. Now, this recommendation extends beyond new projects and calls for reworking old code.

Rust is better than C++, and Kotlin is better than Java

Lars Bergstrom notes that rewriting the Go code in Rust has shown significant benefits.

«When we rewrote systems from Go to Rust, we found that they require about the same team size and about the same amount of time to build. So there is no loss of productivity when switching from Go to Rust. And what’s interesting is that we see some benefits from this», — Bergstrom said.

That is, after two months, about a third of developers believe that they are as productive in their new language as they were in the old one.


Loading comments...

Spelling error report

The following text will be sent to our editors: