this post was submitted on 28 Nov 2021
11 points (100.0% liked)

Rust Programming

8306 readers
12 users here now

founded 5 years ago
MODERATORS
 

From a language architecture standpoint and not an ecosystem standpoint, what might be some things where you'd really not want to use Rust, either because of some limitation that prevents it from doing it or just because it'd be massively annoying to write to the point of significantly reduced productivity? What about Rust makes it unsuitable, and what language paradigms are the best for it?

I hear a lot about how the things that Rust is not good for, JIT compilation with a garbage collector is usually the best solution, and vice versa. How true is this?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 3 years ago (1 children)

Yeah, GUIs in general are messy, almost by necessity. And Rust has a strong focus on correctness, which does not mesh well with messy.

As an example, it happens that you don't yet have a certain value that's supposed to be shown in the GUI, but it also doesn't matter, because that GUI element isn't actually visible yet.
In many typical frontend languages, you would set that to null and be done with it. Rust doesn't have null and while you can make everything an Option-type, that's relatively clunky, for how commonly you need such a workaround.

Obviously, though, constantly throwing around null isn't great either. The compiler cannot help you at all anymore.
So, I am still hoping that a new paradigm emerges out of all of this, which is better for GUIs in any language. Basically put more thought into actually resolving the issue, rather than standardizing on the dirtiest workaround.