why rust so Fast? : r/rust
Hi, i noob and just looking around the Rust information. meanwhile i see the some result That Rust Performance is great than other noob language like Go(which i used Study) i know Rust get errors in compile time, so it makes performance better ? There are a lot of answers to this question, and of course a lot has to do with the skill of the programmer and their motivation to optimize for speed. Here's a very partial list of what the language provides: It uses LLVM to generate assembly code, which is a state of the art optimizer, comparable to best-in-class C and C++ compilers. It makes it easy to lay out data structures in a cache-efficient manner. See Why (most) High Level Languages are Slow for more detail on what this means and why it's important. Its type system lets you choose a pointer/reference strategy that does the least amount of work at runtime while still being safe. The default in Swift, for example, is atomic reference counting. If you're not sharing across threads, Rust
Reddit - Please wait for verification
saved by
related reading
- Using Threads to Run Code Simultaneously - The Rust Programming Languagedoc.rust-lang.org
- Why Rust - Rust for C-Programmersrust-for-c-programmers.com
- A half-hour to learn Rustfasterthanli.me
- Rust for C programmers - Rust for C-Programmersrust-for-c-programmers.com
- What makes Rust special - Rust for C-Programmersrust-for-c-programmers.com
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- Rust Optimization.md · GitHubgist.github.com
- Rust Language Cheat Sheetcheats.rs
- Validating References with Lifetimes - The Rust Programming Languagedoc.rust-lang.org
- What is Ownership? - The Rust Programming Languagedoc.rust-lang.org
- Rust vs Alternative Programming Languages: How Do They Compare? - K&Ckruschecompany.com
- Rust – a concise overview of the modern programming language coders love - K&Ckruschecompany.com