3 ms·
Why is this written in React? I understand Rust doesn't have any GUI frameworks (like Qt), but is this the way, then? Is it an adversity to learning something n
by lionkor 3y ago
Why is this written in React? I understand Rust doesn't have any GUI frameworks (like Qt), but is this the way, then? Is it an adversity to learning something new?
You can reasonably write a C++ app or with Qt and write your GUI stuff in QML, and even plug in Lua, Python, or JavaScript as a scripting language. Yes, thats work.
Using a browser to render is just an easier version of using a GPU API like OpenGL to build your GUI. Your OS comes with gui stuff, use it.
Other than that, cool enough, though something like pcmanfm support adding remote locations as well...?
Another question, why Prisma?
- hobofan 3y ago> I understand Rust doesn't have any GUI frameworks (like Qt), but is this the way, then? Yes. If you want to build a cross-platform desktop app with Rust, Tauri + React would also be me recommendation right now. Tauri makes it quite easy to drop down to Rust if you need to (for high-performance operations and everything interfacing with the OS), and it also comes with pre-built packaging for the main different platforms. With React you are able to leverage a great ecosystem that has existing UI components for many things (unlike most native Rust GUI frameworks). It also allows you to reuse you frontend engineers and all their expertise when it comes to web technologies (and working with designers).
- lionkor 3y agoThats a great overview, thanks. That actually does answer most of my question.
- jenadine 3y ago> Rust doesn't have any GUI frameworks (like Qt) And Slint? And egui? And the Qt bindings crates? You can say that they aren't as mature as Qt, but they are often good enough compared to something that runs in a browser.
- threeseed 3y ago> but they are often good enough compared to something that runs in a browser You can't make an app that looks even half as good as Spacedrive using QT, egui etc.
- lnxg33k1 3y agoTry to do something with the qt rust binding please
- xigoi 3y agoDo any of those natively support mobile?
- viraptor 3y agoThe embedded browser approach doesn't really support anything natively (apart from webos maybe?), so I'm not sure that's the right question.
- xigoi 3y agoTrue, but it's still less indirection than compiling to web and then embedding a browser, which is how the linked frameworks seem to approach the situation.