Home >Technology peripherals >It Industry >Google shares: Learning Rust language does not require huge learning costs

Google shares: Learning Rust language does not require huge learning costs

WBOY
WBOYforward
2023-07-21 15:25:351406browse

News on July 1, according to the latest official blog post released by the Google team, they shared their experiences and feelings in the process of using the compiled programming language Rust. Rust is developed by Mozilla and is highly respected by developers. In this article, the Google team first mentioned the issue of Rust language learning cost. According to Google's internal survey, more than 2/3 of the respondents said that they only need to study for 2 months to master the Rust language, and 1/3 of the respondents said that they have studied for 2 months and can Use the Rust language efficiently. This result subverts the rumor that Rust requires at least 6 months to learn.

Google shares: Learning Rust language does not require huge learning costs

According to a Google survey, one of the biggest challenges for developers when programming in Rust is the slow compilation speed. Only 40% of respondents said they could accept the speed of the Rust compiler, which means that most developers are not satisfied with the speed of the Rust compiler.

In addition, the Google team also refuted some rumors about Rust. They believe that unlike the commonly held belief that "unsafe" code and interoperability with other languages ​​are the biggest challenges in the Rust field, the Google developers interviewed believe that the three major challenges facing the Rust field are macros (Macros), ownership and borrowing. (Ownership and borrowing) and asynchronous programming (Async programming). Although writing "unsafe" code and dealing with C/C interop were also problems they encountered, they were not the biggest challenges.

Google shares: Learning Rust language does not require huge learning costs

Google developers appreciate the Rust compiler’s error messages and find them very useful. According to the editor's understanding and from comprehensive community feedback, most developers generally have a positive attitude towards the performance of the Rust compiler.

Additionally, 77% of developers believe the quality of Rust code is very high, according to Google respondents. When asked if they thought Rust code was more correct than code written in other languages, 85% of respondents believed their Rust code was correct. Additionally, more than half of respondents said Rust code is easy to review.

The Google team’s insights and experience provide us with new insights into how to actually use the Rust language. Although the Rust compiler speed and learning curve are still issues that developers need to consider, the Rust language's high code quality and the compiler's useful error messages have made more and more developers interested in it, and Start trying to apply the advantages of the Rust language in your projects.

The above is the detailed content of Google shares: Learning Rust language does not require huge learning costs. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:itbear.com. If there is any infringement, please contact admin@php.cn delete