News for hackers. Stuff that matters.
Re:Discord is ditching Electron and its new app uses less RAM by petra on Thursday November 05, 2026 @09:38AM (#50379633)
When porting an app this way, don't functions/classes preserve the same functionality ?
Re:Discord is ditching Electron and its new app uses less RAM by j_w on Thursday November 05, 2026 @09:49AM (#50379771)
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?
Re:Discord is ditching Electron and its new app uses less RAM by lukax on Friday November 06, 2026 @06:47AM (#50391210)
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.
Re:Discord is ditching Electron and its new app uses less RAM by tlonny on Thursday November 05, 2026 @03:37PM (#50384164)
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.