Pratham Prasoon
Pratham Prasoon

@PrasoonPratham

12 Tweets 3 reads Apr 22, 2023
Twitter, forget JavaScript for a second. Take a look at Rust.
Rust developers are paid up to $230,000/year. There's insane demand for this tech!
Here's why and how I'm learning this beast of a programming language in 2023🧵
Python and JavaScript/TypeScript are my go-to languages for building web apps, backends, ML models, and anything I want.
However, recently I've wanted to learn something that's more low-level and faster.
That's how I got to learning Rust.
Rust is called by many the modern replacement for C++.
It is designed for systems programming, with a focus on safety, performance, and concurrency.
Here are some features of Rust that make it incredibly nice to work with:
💾 Memory safety
Rust has a strong focus on preventing common programming errors such as null or dangling pointer references, which can lead to memory safety issues such as buffer overflows and data races.
⛓️ Concurrency
Rust has built-in support for concurrent programming, making it easier to write efficient and correct concurrent code.
🏃‍♂️ Performance
Rust code can be as fast as C or C++ code, but with the added safety guarantees provided by the language.
Here's a Fibonacci sequence up to 35 that takes ~103ms to run.
Compare that to Python, which takes ~2s.
Rust is 20x faster!
💪 Strong type system
Rust has a strong type system that helps to catch errors at compile time rather than at runtime.
Rust is used in a bunch of places like:
- Parts of the Linux Kernel
- Gecko, the JavaScript engine running Firefox.
- Blockchain smart contracts for Solana
...and my favorite, running full-fledged Rust applications in the browser using WebAssembly.
If you want to get started with Rust, here are some awesome free resources:
- The Rust Programming Language Book: doc.rust-lang.org
- Rust by Example: doc.rust-lang.org
- Rustlings: github.com
If you're looking for something more advanced, the Rust Cookbook is a great resource: rust-lang-nursery.github.io
If you liked this thread, considering following @PrasoonPratham and retweeting this thread.
I tweet about my interests in programming, computer science and technology 👨‍💻

Loading suggestions...