Hacker News new | ask | show | jobs
by K0nserv 2139 days ago
I'm a big Rust fan and have been using it for three years at this point. However, I read nicoburns's original recommendation as "It could be fun and intellectually rewarding to learn Rust", not as something they suggested because it's directly applicable to a lot of projects.

Personally I would say learn it because it's one of those languages that changes how you think about programming as a whole and learning it will make you a better programmer in every language.

That said, I think Rust shows the most promise in a few places:

1. Pretty much anywhere you'd historically use C or C++.

2. WASM

Because Rust can expose C style FFIs you can use it to speed up hot code paths in almost all scripting languages(Python, Ruby, PHP, JS etc). This can be very useful because it allows you to keep most of your code in the scripting language that you and your collaborators are familiar with, while benefiting from Rust's strengths too.

For WASM I think Rust is currently the best choice, it has excellent tooling to work with the web, it's by far the most approachable suitable language for someone who already knows JS, and it doesn't have a big runtime or GC which makes many languages non-starters for the WASM usecase.

Some people would tell you it's a good choice for general purpose backend and there is an ecosystem around that, but I would say if that is your goal Rust offers nothing that Go doesn't do better or at least as well.