this post was submitted on 18 Nov 2024
14 points (100.0% liked)

Rust Programming

8172 readers
23 users here now

founded 5 years ago
MODERATORS
 

I've only been coding with Python/Javascript since I started my career. I do APIs and websites frontend. I don't really understand what is interesting in learning an other language. For example, I could learn Ruby, but I'd do the same thing I already do.

Rust, C/C++ tho seem to me to be languages to code other things. Hence my question : what do you code? If possible, make distinction between personal projects and professional projects.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 12 hours ago

My initial motivation to learn Rust was gamedev. Ultimately, you want high performance for games, which Rust can deliver.

Another area where Rust will be pretty much unavoidable in ten years is embedded computing.
So far, pretty much everything in embedded was implemented in C/C++, because you don't have a filesystem there, so you can't use a runtime, like Python, Java et al need. Rust doesn't require a runtime either and is finally a more modern language, with much better tooling.

Well, and where Rust (or C/C++) not requiring a runtime comes in handy, too, is for writing libraries. You can use it to create libraries, which can be called from virtually any language (via the C ABI).

But yeah, as the others said, essentially anything can be implemented in Rust. Moreso than most other languages.
At $DAYJOB, we've got a distributed system with edge components and a backend, as well as a CLI and a web frontend. All of it is implemented with Rust (and some HTML+CSS). For the web frontend, we're using WebAssembly (via the Leptos framework).
That is genuinely a solid reason for us to implement this in Rust, because we only need to know one language.