News for hackers. Stuff that matters.
Re:GTK 4.0 Released by topspin on Wednesday December 16, 2020 @02:45PM (#25447522)
> There are lightweight electron alternatives

Are there? I know of alternatives, but none that are particularly 'lightweight.'

I started a new project based on gtk-rs for exactly the same reasons as you.

Re:GTK 4.0 Released by jtxx on Wednesday December 16, 2020 @06:14PM (#25450088)
I was thinking of sciter (5mb) and another similar crate that I can't remember the name for
Re:GTK 4.0 Released by topspin on Wednesday December 16, 2020 @08:52PM (#25451381)
That's about one order of magnitude smaller than Electron. Good to know.

My gtk-rs project is intended to replace a small, self contained win32 application. The application is 132KB. So although 5MB is small it's an oom larger than my benchmark.

However, my gtk-rs hello, world GUI application is 14.6MB in release mode and that does not include the GTK DLLs that are also needed. Yikes. That's crazy.

Perhaps 5MB is a reasonable price to pay for cross platform GUI. Not taking 7+ seconds to build a GUI hello, world would be nice as well.

Re:GTK 4.0 Released by lights0123 on Thursday December 17, 2020 @08:51AM (#25455526)
There's also https://tauri.studio, which uses Chromium Edge on Windows and WebKit on Linux and macOS. You can get ~2MB binaries with it.

(that's a Rust-specific framework, but the underlying webview library is just a C library)