Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by clarkmoody on Friday August 27, 2021 @10:30AM
(#28328260)
From my experience, compressed binary bundle is < 10 Mb and memory usage is < 100 Mb for a generic app. Of course memory usage will vary wildly between application domains. With Iced, it's fairly constant, since Rust offers pretty solid memory leak protection.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by ducktective on Friday August 27, 2021 @11:51AM
(#28329347)
Music to my ears...
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by OJFord on Friday August 27, 2021 @09:53AM
(#28327815)
This looks great too, but just to point out if you're looking for something like Electron (but rust, or smaller or whatever) then Tauri is a much closer fit, using web stuff (HTML, CSS, JS, wasm, frameworks, whatever you want) for the UI in the same way.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by jatins on Friday August 27, 2021 @10:40AM
(#28328414)
Tauri, while an improvement on some aspects, is still a webapp in a shell. But it has the problem that you have to deal with browser specific quirks.
From what I understand, this will avoid that problem by compiling to whatever native platform you are building for? Also it'd not just be a webapp in a shell.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by OJFord on Friday August 27, 2021 @11:30AM
(#28329092)
Yes, correct I think on all counts. I was just responding to the Electron comparison, saying if that's what you want, maybe look at Tauri, because it's also 'a webapp in a shell'.
For some people in some senses, there's a big advantage to the 'webapp in a shell' model, because HTML/CSS is considered good, or WhizzBang.js is the familiar tool for building UIs, or whatever.
I didn't mean to say it's better (or worse) than this - it's just quite a different (more similar to Electron) approach, that'll suit some and not others.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by imbnwa on Friday August 27, 2021 @11:28AM
(#28329072)
If by browser specific quirks you mean having to deal with Webkit as Windows is Chromium now.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by OJFord on Friday August 27, 2021 @11:33AM
(#28329142)
Well, Tauri (or more specifically the 'ri' part: https://github.com/tauri-apps/wry/) uses different engines on different platforms, so I assume there's the potential for quirks.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by JohnKacz on Friday August 27, 2021 @10:28AM
(#28328231)
Thanks. I had not heard of Tauri.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by api on Friday August 27, 2021 @09:15AM
(#28327409)
Almost everything is smaller than Electron.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by amelius on Friday August 27, 2021 @10:11AM
(#28328023)
Yeah but don't forget that Electron is literally packed with features. For example it can draw SVG, it can play video, it can do 3d stuff, do networking stuff ...
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by axelroze on Friday August 27, 2021 @10:55AM
(#28328638)
Cries in InteliJ (java) and 1GB+ ram usage.
Re:Iced: A cross-platform GUI library for Rust, inspired by Elm
by api on Friday August 27, 2021 @11:01AM
(#28328735)
IntelliJ is a lot more than a GUI. There's a ton of language modeling and parsing and lookup stuff going on in there. It has tons and tons of features too.
Electron is hundreds of megabytes for "hello world."
Have you done any benchmarking on how this compares with Electron on things like binary size, memory usage? Those are usually most common complaints people have with regards to Electron so would be nice to see the improvements this provides.