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
Explore this link on the map →saved by
related reading
- Fearless Concurrency - The Rust Programming Languagedoc.rust-lang.org
- Why Rust - Rust for C-Programmersrust-for-c-programmers.com
- Rust Optimization.md · GitHubgist.github.com
- Rust vs Alternative Programming Languages: How Do They Compare? - K&Ckruschecompany.com
- (Re)writing an interpreter in Rust – Danny van Kootendannyvankooten.com
- Rust vs go better together | spf13spf13.com
- What makes Rust special - Rust for C-Programmersrust-for-c-programmers.com
- abseil / Performance Hintsabseil.io
- Rust – a concise overview of the modern programming language coders love - K&Ckruschecompany.com
- performance - Why is Haskell (GHC) so darn fast? - Stack Overflowstackoverflow.com
- Rewriting Bun in Rust | Bun Blogbun.com
- First thoughts on Rust vs OCamlblog.darklang.com