Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Contributor
Created on
10-17-2023
10:16 PM
- edited on
10-17-2023
10:22 PM
by
VidyaSargur
Install
- Install Rust from Install Rust
- This is interactive so needs to run in a terminal
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Hello World Rust Hello World https://doc.rust-lang.org/book/ch01-02-hello-world.html
- Reload your session and terminal to update the PATH env
- Run
rustc main.rs main.rs …
Why Rust?
Original Post from Stack Overflow: what is rust and why is it so popular
Rust has been Stack Overflow’s most loved language for four years in a row, indicating that many of those who have had the opportunity to use Rust have fallen in love with it. However, the roughly 97% of survey respondents who haven’t used Rust may wonder, “What’s the deal with Rust?”
- Rust’s static typing does its best to get out of the programmer’s way while encouraging long-term maintainability.
- Rust gives you the choice of storing data on the stack or the heap and determines at compile time when memory is no longer needed and can be cleaned up.
- The biggest benefit Rust can provide compared to these languages is the borrow checker.
- The Rust experience is larger than a language specification and a compiler; many aspects of creating and maintaining production-quality software are treated as first-class citizens.