3 ms·
Well they’ve released a Linux app built in Rust, so maybe there’s hope?
by sammorrowdrums 5y ago
Well they’ve released a Linux app built in Rust, so maybe there’s hope?
- selykg 5y agoThe Linux app is electron as well. They just like to say that they use Rust for the backend code. Rust for the backend of the client apps, React for the UI, wrapped in Electron.
- bibinou 5y agoIt's electron-based too, Rust is used in a backend lib with FFI: https://dteare.medium.com/behind-the-scenes-of-1password-for-linux-d59b19143a23 https://dteare.medium.com/behind-the-scenes-of-1password-for...
- handrous 5y agoLast I messed with it, Electron is structured such that the UI thread is decoupled from where you're supposed to run your "logic" (for performances reasons, I assume—similar patterns are really common in GUI systems, in general) and they already have to communicate at arm's length, so 1) it's not that big a stretch to wrap some native library on the "logic" side, and 2) if you're calling back-and-forth between logic and UI a lot, rather than sitting in your logic code for long periods of time, it'd expect it to do very little for performance.