Rust - AshokBhat/notes GitHub Wiki
Rust
- A safe, productive, high-performance, and low-level programming language
- Syntactically similar to C++
- Designed to provide better memory safety while maintaining high performance
- Designed to be memory safe: No null pointers, dangling pointers, or data races in safe code
Features
Rust is safe
- Automatic memory management without garbage collection
- Ownership and Borrowing
- Memory safe and with no data races!
- No more double frees, use-after-frees, dangling pointers, out-of-bounds accesses, or segfaults!
- Multithreaded programming without fear!
Rust is productive
- You can start writing production ready code in Rust today.
- The compiler can check a lot about your code.
- Just compiling a Rust program means that you have already avoiding a lot of potential bugs
- Rust gives you a lot of confidence to change and refactor your program, even after time has passed, because it checks all of those things every time
Rust is high-performance
- Just like C or C++, Rust gives you complete control
- Compile-time safety checks, correctness checks, and memory management decisions for zero runtime impact
- Automatic memory management without garbage collection
- Zero-cost abstractions so your code runs fast while being fun to write as well
Rust is low-level
- Low-level without some of the worst parts of being a low-level language
- Complete control without unnecessary burden
unsafe
allows you to tell the Rust compiler that you know better!
Tools
- Compiler - LLVM based compiler
See also