this post was submitted on 28 Nov 2021
13 points (100.0% liked)
Rust Programming
8159 readers
1 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
warning: very confusing comment, this is a complicated topic
Rust, in a vacuum, can do anything basically perfectly (yes, even unsafe code, at least it's clearly marked as so). However, the vast majority of people aren't writing rust in a vacuum, they are using the "rust ecosystem", and, for better or worse, the "rust ecosystem" is mainly useful for two things: making back-end servers and standalone libraries (look into rust's history and you'll see why)
JIT compilation is good for embedded programming languages, rust isn't one so they don't support it (although JIT compilation is a very complex topic, especially when talking about use cases)
Garbage collecting is a simple way to ensure memory safety without the whole complex memory layout of rust, rust doesn't have it because it does not need it
Programming languages are just tools, use the right one for the job.