Remix.run Logo
▲ petra a day ago

When porting an app this way, don't functions/classes preserve the same functionality ?

▲j_w a day ago | parent | next [-]

Well not really? You are going from a webpage (Electron) to a native application via Rust. Say you port a React website to a Rust native application, is anything about that code actually similar?

▲lukax 12 hours ago | parent [-]

With GPUI quite a lot can be shared. Styling is similar, components can have same names. If your application logic is already cleanly separated, the resulting code can be quite similar.

▲tlonny a day ago | parent | prev [-]

I think there are lots of common patterns you find in GC’d languages that don’t translate well into idiomatic rust.

Consequently, porting my game engine from Java to Rust was more challenging than I had anticipated.