News for hackers. Stuff that matters.
Re:Advice for the next 100 Rust GUIs by dafelst on Saturday November 21, 2026 @10:26PM (#50595927)
I am constantly surprised how few mentions of Slint there are in these sorts of articles. It's written by a team of funded ex-Qt alumni, is incredibly fast, and their DSL approach, while having a bit of a learning curve, makes laying out apps and managing data binding incredibly easy.

They also bypass a big part of the issues mentioned in the article by just straight up using skia as a renderer on desktop (you can use others if you want) which gives software and gpu accelerated paths.

I'm not associated with the project at all, but have been using it on and off for a couple years and have been quite satisfied.

It's main weakness is rich text rendering which lacks maturity for complex layouts, but it is getting better all the time.

Re:Advice for the next 100 Rust GUIs by Onavo on Saturday November 21, 2026 @10:32PM (#50595961)
They are not free. That's a pretty big barrier to adoption. When QT was launched there was no good alternative for cross platform if you want to support Linux.

Honestly, if Slint doesn't pivot or provide non GUI lib services, I would expect an "Our Incredible Journey" blog post soon.

Re:Advice for the next 100 Rust GUIs by dafelst on Saturday November 21, 2026 @10:37PM (#50595994)
On desktop and mobile, they're free for open source products and for any company with less than $2M in funding or revenue, and pretty reasonably priced otherwise.

Embedded seems to be where they're focusing, as they do charge royalties for that, so you may be right.

Re:Advice for the next 100 Rust GUIs by ogoffart on Sunday November 22, 2026 @03:04AM (#50597320)
Small correction: Slint is free for proprietary desktop, mobile and web apps under our Royalty-free license, regardless of company size.
Re:Advice for the next 100 Rust GUIs by MisterMunchkin on Sunday November 22, 2026 @01:11PM (#50602250)
Free for now. That licence will get pulled the moment it becomes profitable for them to charge.
Re:Advice for the next 100 Rust GUIs by jenadine on Sunday November 22, 2026 @04:32PM (#50604115)
Could say the same for any permissive licensed projects. The project change the license and keep the brand and most of its work force. All one can hope is that one of the community fork stay active and sufficiently developed.
[dead]
Re:Advice for the next 100 Rust GUIs by weinzierl on Sunday November 22, 2026 @06:20AM (#50598585)
The recent supply chain security disaster (with no end in sight) digs this moat even deeper in my opinion.

That is where the "provide non GUI lib services" mentioned by Onavo comes in. Have you thought about that?

Re:Advice for the next 100 Rust GUIs by pie_flavor on Sunday November 22, 2026 @08:29AM (#50599515)
Isn't it rather that Slint is free and open source (but copyleft) for all development, or non-copyleft proprietary libre-enough and gratis for non-embedded work? (The gratis non-copyleft version is the specific reason I adopted Slint - thank you for listening to me on HN however many years ago!)
Re:Advice for the next 100 Rust GUIs by ducktective on Sunday November 22, 2026 @12:20AM (#50596567)
> by just straight up using skia

I think building up on wgpu is better

Re:Advice for the next 100 Rust GUIs by Narishma on Sunday November 22, 2026 @01:22AM (#50596832)
wgpu is unusable without a modern GPU, unlike skia.
Re:Advice for the next 100 Rust GUIs by mottosso on Sunday November 22, 2026 @02:00AM (#50597010)
If you mean "modern" as in from within the last 15-20 years then yes. It targets both WebGL2 and OpenGL, in addition to Metal and Vulkan.
Re:Advice for the next 100 Rust GUIs by skhameneh on Sunday November 22, 2026 @12:35PM (#50601852)
I’m guessing it may be a confusion of WebGPU and WGPU; WGPU as a lib works fine, but IIRC most end implementations of WebGPU in browsers are still a bit picky on support.
Re:Advice for the next 100 Rust GUIs by nicoburns on Sunday November 22, 2026 @07:32AM (#50599055)
> https://github.com/DioxusLabs/anyrender

I have an abstraction which allows you to switch between the 2 (and CPU rendering options) at build time.

Re:Advice for the next 100 Rust GUIs by potato-peeler on Sunday November 22, 2026 @02:27AM (#50597131)
> It's written by a team of funded ex-Qt alumni, is incredibly fast

I don’t know how you define fast, but slint is incredibly resource hungry on desktop.

Re:Advice for the next 100 Rust GUIs by ogoffart on Sunday November 22, 2026 @02:46AM (#50597220)
Could you elaborate on what you mean by resource hungry? What kind of application and hardware are you using, and what resource usage are you seeing?

I'd genuinely like to understand your experience. It might be a bug or something we can improve. (I work at Slint)

For context, Slint is designed to be lightweight. Especially compared to shipping an entire browser runtime, which appear to be considered normal by many. In an age where shipping an entire browser runtime is considered normal.

Re:Advice for the next 100 Rust GUIs by potato-peeler on Sunday November 22, 2026 @04:29AM (#50597796)
Here is the resource usage for hello world counter app which comes as a template, compared with the same app written in qt - https://ibb.co.com/album/7xCbWk

Slint - 70+Mb (gpu) Qt QML - 105Mb (gpu) Qt Widgets - 4.6Mb (cpu)

For such a simple template, 70+mb is too high. I guess slint is primarily targeted for custom styled graphical apps and marketed as an alternative to Qt QML, but I imagine adding styles will only increase the consumption.

Add to that, you can check the second screenshot, where the same Slint counter app shoots up to 300MB+ Ram when i resize its window. This is strange behaviour. This doesnt happen in QT apps, atleast such a dramatic increase.

When i was exploring slint, it looked very appealing, markup and styling were not that too hard to understand, but it turned me off when i saw the resource usage. I guess slint is still better than Avalonia or even flutter, which touches 300MB, but I will stick to QT, specifically QT Widgets. If i need to add some custom graphics to qt widgets, QPainter is pretty powerful, and it only adds 5 to 10mb of ram use.

Re:Advice for the next 100 Rust GUIs by ogoffart on Sunday November 22, 2026 @04:51AM (#50597912)
Thanks for the comparison! Keep in mind that there are fixed memory costs for font caches and GPU/driver resources that don't scale with application size. So a Hello World app might not be the most representative benchmark.

If RAM is an issue, Slint's software renderer uses considerably less memory.

(and even 70 MB is not particularly resource-hungry compared to other UI frameworks, especially browser-based ones.)

the spike when resizing is interesting and worth investigating

Re:Advice for the next 100 Rust GUIs by eddythompson80 on Sunday November 22, 2026 @05:03AM (#50598006)
> and even 70 MB is not particularly resource-hungry compared to other UI frameworks, especially browser-based ones

Is it? A comparable Electron hello world app is ~80-100 MBs

Re:Advice for the next 100 Rust GUIs by newdee on Sunday November 22, 2026 @09:38AM (#50600128)
And how much for an actual useful app?
Re:Advice for the next 100 Rust GUIs by bel8 on Sunday November 22, 2026 @09:40AM (#50600146)
Agreed. And it bundles the entirety of Chromium engine.
Re:Advice for the next 100 Rust GUIs by codedokode on Sunday November 22, 2026 @10:08AM (#50600380)
Electron binary itself weighs about 200MB so your number doesn't look realistic and probably you used some tool that shows wrong numbers (like Windows Task Manager).
Re:Advice for the next 100 Rust GUIs by eddythompson80 on Sunday November 22, 2026 @10:49AM (#50600740)
What does the binary size have to do with memory usage? an Electron binary bundles chromium engine which includes a lot of stuff that a counter app won't load into memory (e.g all the video, audio, camera, 3d, biometric, animation, etc)

It's the same method used to measure Qt or Slint above.

Re:Advice for the next 100 Rust GUIs by codedokode on Sunday November 22, 2026 @11:03AM (#50600862)
Maybe 80 MB is only private pages and excludes memory-mapped files. Then the memory usage is calculated wrong. I wish people were using proper metrics and not random number Task Manager shows.
Re:Advice for the next 100 Rust GUIs by eddythompson80 on Sunday November 22, 2026 @11:24AM (#50601034)
Sigh. You can use the same method for all 3 and compare them. I get the irrational hatred towards electron and other WebView based UI framework, but no matter how you measure it those are the basic numbers. Like it or not, WebView is fairly well optimized for basic use cases. It gets out of hand quickly because developers have no restraint when it comes to dependencies and features to include in their app.
Re:Advice for the next 100 Rust GUIs by jenadine on Sunday November 22, 2026 @04:48PM (#50604261)
Electron clearly take more RAM. It uses many processes that each uses a lot of ram. Several hundreds M at least. I don't know how you can get a number less than 100, even for a minimal app. Native toolkit are only using one process usually.
Re:Advice for the next 100 Rust GUIs by potato-peeler on Sunday November 22, 2026 @05:26AM (#50598207)
> Keep in mind that there are fixed memory costs for font caches and GPU/driver resources that don't scale with application size

> If RAM is an issue, Slint's software renderer uses considerably less memory.

I can apply the same optimisation to qml and even its resource use will not scale, since they too have fixed costs with font, gpu context, js engine.

> and even 70 MB is not particularly resource-hungry compared to other UI frameworks, especially browser-based ones

70mb is extremely resource hungry for something as simple as this. When someone is using electron, they are aware of the trade off. For something which is not electron, this type of resource use is inefficient.

If I want something simple, I will use fltk. I can get far with graphics even with fltk. And if I want something powerful and not bother writing things from scratch, I can achieve that with qt easily and get fancy. I don’t know why I will use slint, other than to hop on the rust bandwagon, which is the current fad right now.

Upto you how you communicate about slint, but I am not using that, when my goal is not to hog the users resources.

Re:Advice for the next 100 Rust GUIs by ogoffart on Sunday November 22, 2026 @06:32AM (#50598660)
I was curious, so I asked Claude to make a benchmark with this prompt: "I'd like you to make an hello world in Slint (skia GPU and software renderer), EGUI, electron, QML, QWidget, and measure the RAM usage."

Results on Linux, PSS 400×200 window:

    Slint, software renderer: 13.5 MiB
    Qt 6.12 Widgets: 33.6 MiB
    Qt 6.12 QML, software scenegraph: 48.1 MiB
    Slint, Skia Vulkan: 75.7 MiB
    egui (wgpu, Vulkan): 98.3 MiB
    Qt 6.12 QML (OpenGL, default): 125.0 MiB
    Electron 45: 260 MiB
(The GPU rows ran on Mesa's software drivers) I think QML intrinsically takes more memory: it has a JS engine, and every item is a dynamic object. In Slint, almost everything is resolved at compile time and compiled.

So I wouldn't call Slint resource hungry

Re:Advice for the next 100 Rust GUIs by codedokode on Sunday November 22, 2026 @10:09AM (#50600392)
If you have swap, you need to add swap usage, and ideally kernel-allocated memory for process and memory allocated in other services (like wayland compositor) on behalf of process.
Re:Advice for the next 100 Rust GUIs by codedokode on Sunday November 22, 2026 @09:53AM (#50600240)
Do you know how the memory is counted by Windows? I saw screenshots with suspiciously low numbers and it seems to me Microsoft counts it the wrong way. For example, your app "uses" 4.6 MB but only the code of Qt libraries might weigh more. Probably task manager counts only "private pages" or "working set" or some other garbage metrics.

I wish people were using proper tools.

The proper way is count PSS (proportional set size) + PSS of swap + size of allocated kernel structures + size of allocations in other daemons. I doubt Windows task manager can do that.

The simple test would be adding all "memory" values and checking if they match total memory usage. Many OS fail this simple test.

Re:Advice for the next 100 Rust GUIs by mpweiher on Sunday November 22, 2026 @03:14PM (#50603454)
Just a quick check: is the Qt QML figure of 105MB correct?

That seems like...a lot?

Re:Advice for the next 100 Rust GUIs by codedokode on Sunday November 22, 2026 @10:02AM (#50600334)
Why did you invent your own language, is there not enough of programming languages? And if Rust is not good enough (which probably is true), why not improve Rust instead? It means Rust static analyzer won't be able to check the code, Rust refactoring tools won't be able to edit the code etc, the developer has to remember two syntaxes and have two sets of helper functions.
Re:Advice for the next 100 Rust GUIs by codedokode on Sunday November 22, 2026 @10:34AM (#50600610)
I glanced though the docs; they seem to use proxies for dependency tracking (Vue-like rather than React-like) but for some reason they invented their own language instead of using Rust.
Re:Advice for the next 100 Rust GUIs by righthand on Sunday November 22, 2026 @12:04PM (#50601495)
I honestly can’t stand Qml/Slint syntax because it mixes in a javascript lite language on top of the Qml + Rust/C++ languages. My Qml/slint files all start looking like jQuery single file scripts from yesteryear. Eventually reading my project makes me feel like a deer in headlights trying to remember if the femur bone connects to the jaw bone.