Rust language from entry to pit - (1) First glance at Rust, what the hell is this!


insert image description here

0 import

According to recent news, part of the core of windows is rewritten using Rust language, and linux supports rust language. I was thinking about what magic makes this language so popular . It may be more difficult.

  1. Rust official website: https://www.rust-lang.org/zh-CN
  2. Rust official documentation: https://doc.rust-lang.org/
  3. Rust Play:https://play.rust-lang.org/
  4. Visual Studio Code:https://code.visualstudio.com/
  5. Rust official online tools: https://play.rust-lang.org/ .

The Rust language is an efficient, reliable, general-purpose high-level language. Its high efficiency is not limited to development efficiency, its execution efficiency is also admirable, and it is a rare language that takes both development efficiency and execution efficiency into consideration.
The Rust language was developed by Mozilla and first released in September 2014. The Rust compiler is free and open source software under the dual license of the MIT License and the Apache License 2.0. The latest compiler version as of now (January 2020) is 1.69.0.


1. Features

insert image description here

  • High Performance - Rust
    is amazingly fast and extremely memory efficient. With no runtime and no garbage collection, it is capable of performing particularly demanding services, can run on embedded devices, and can be easily integrated with other languages.
  • Reliability - Rust's rich type system and ownership model guarantee memory safety and thread safety, allowing you to eliminate all kinds of errors at compile time.
  • Productivity - Rust has excellent documentation, a friendly compiler and clear error messages, and it also integrates first-class tools - package managers and build tools, intelligent auto-completion and multi-editor support for type checking, and
    automatic formatting code and more.

2. Application

The main pictures from the official website
insert image description here


3. Summary

The Rust language can be used as an extension of the C and C++ languages. After all, you should know more about the defects and advantages of the language itself.


Guess you like

Origin blog.csdn.net/ljsant/article/details/130940900