当前位置:网站首页>Why did I choose rust

Why did I choose rust

2022-06-22 06:29:00 phial03

1、 performance 、 Security 、 Stable :

Performance is beyond doubt , Than Python and Golang fast , Go straight after C/C++; Security , Memory security mechanism , Reduce memory Bug( Microsoft once said 70% Of Bugs, From memory abuse ); Stable , There will never be 2.0 edition , And there are Mozilla Organization endorsement , Supported by the Institute of software, Chinese Academy of Sciences .

2、 Steep learning curve :

Than Python、Golang difficult ,“ difficult ” It means that it is difficult to replace . At least C++ Simple .

3、 Cross platform :

And C++ equally , It can penetrate into all ecosystems , Such as Windows、Linux、MacOS、iOS and Android etc. .

4、 Covering a variety of applications :

desktop / Move App、 game 、 The embedded 、WASM and Web Back end, etc , Be familiar with the development scenarios of different applications .

5、 Improve development capability :

No garbage collection period , At the core of ownership and declaration cycle , With Rust The compiler is the teacher , Gradually improve the programming and development ability .

6、 Facing the future :

Rust It is the most popular development language in foreign countries , Many companies are paying more and more attention to Rust The ability of . But until 2021,Rust The development in China is still very slow . Rust From bottom to top , From community to public opinion , It is already a very mature language . This is the starting point of the trend , Believe in the future 3-5 year ,Rust Will become very popular .

7、 traces :

Tsinghua University has opened 《 operating system RISC-V》 The practical course of , Many top students have begun to learn Rust, Open source community college summer activities ,Rust Number of language programming applicants , Already exceeded PHP; Google Fuchsia OS The amount of code , If you remove JSON, that Rust The proportion of will be 50%; Microsoft official website Rust The tutorial has been updated in three versions , Explain that its developers have been following up Rust The development of ; Facebook Blockchain technology of Libra With Rust As a development language ; Zig The official website refutes Rust Blog post , Those authors are now writing in the form of Rust As the main language , Have not given up using Rust; 2021 In the first half of the year Rust There are very few jobs available , But by the fourth quarter , Recruitment information on major websites has been overwhelming . All kinds of clues , Stated Rust It has developed much faster than we thought .

8、 Compared with other modern languages :

Other modern languages such as Golang、Dart、Julia、Scala、Groovy、Swift、Kotlin. These languages are compared to Rust, Are more specialized in a certain field .

  • Golang With its high concurrency , stay Web The back-end and operation and maintenance fields are developing rapidly . But many technical giants have mentioned ,Golang Suitable for rapid deployment and lightweight software , Not suitable for large projects , Because maintenance is very difficult .
  • Dart At present only Flutter Be brilliant , Initially in place of JavaScript, Reality is being pressed on the ground and rubbed relentlessly .
  • Julia Focus on Data Science , Superior in performance to Python.
  • Scala、Groovy and Kotlin, All three are related to Java Are inseparable , To run on JVM above . although Java The optimization of has been done well , But I have been exposed to a lot Java Software , It doesn't feel smooth to use . Or it takes up a large amount of memory , or CPU Higher , Compare hardware .
  • Swift It is the main language for Apple application development , But its ecological environment is far inferior to Object-C, Performance is better than C/C++、Rust Far less than , Even in Web The back end is worse than Java and Golang.
原网站

版权声明
本文为[phial03]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220545196789.html