5 ms·
That looks exciting! Congrats on the ship. Have you done any benchmarking on how this compares with Electron on things like binary size, memory usage? Those ar
by jatins 5y ago
That looks exciting! Congrats on the ship.
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.
- api 5y agoAlmost everything is smaller than Electron.
- amelius 5y agoYeah 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 ...
- axelroze 5y agoCries in InteliJ (java) and 1GB+ ram usage.
- api 5y agoIntelliJ 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."
- rizky05 5y agoElectron is hundred megabytes runtime of 2d + 3d engine, networking, accessibility, sound, etc that you only use for “hello world”
- OJFord 5y agoThis 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.
- JohnKacz 5y agoThanks. I had not heard of Tauri. https://github.com/tauri-apps/tauri https://github.com/tauri-apps/tauri
- jatins 5y agoTauri, 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.
- imbnwa 5y agoIf by browser specific quirks you mean having to deal with Webkit as Windows is Chromium now.
- OJFord 5y agoWell, Tauri (or more specifically the 'ri' part: https://github.com/tauri-apps/wry/ https://github.com/tauri-apps/wry/) uses different engines on different platforms, so I assume there's the potential for quirks.
- OJFord 5y agoYes, 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.
- clarkmoody 5y agoFrom 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.
- ducktective 5y agoMusic to my ears...