11

Apologies if this question isn't really appropriate for this community, but Rust and Kotlin are my two favorite programming languages, and currently, I use both for different projects. However, I'm curious as to if people here think Kotlin still has a place when Rust exists? I'm specifically speaking architecturally: disregarding existing legacy code or support, do you think in the future, the Rust platform should replace the Kotlin platforms (JVM, LLVM Native, Android, Web) for everything Kotlin can do, or do you think Kotlin can do some things better than Rust?

you are viewing a single comment's thread
view the rest of the comments
[-] kartonrealista@lemmy.world 3 points 1 year ago

GTK has poor compatibility with Rust, due to it's inheritance/OOP design. Iced-rs is a neat GUI library that works well with Rust's features, you define view separately from the update loop. In the view you place widgets which send messages, and the update function listens to those and based on pattern matching the message updates the central struct when one is sent.

You can often achieve the same result in a different way if you're not married to certain features, or in this case frameworks.

this post was submitted on 19 Jan 2021
11 points (78.9% liked)

Rust Programming

8168 readers
1 users here now

founded 5 years ago
MODERATORS