Honestly, if Slint doesn't pivot or provide non GUI lib services, I would expect an "Our Incredible Journey" blog post soon.
Embedded seems to be where they're focusing, as they do charge royalties for that, so you may be right.
That is where the "provide non GUI lib services" mentioned by Onavo comes in. Have you thought about that?
I think building up on wgpu is better
I have an abstraction which allows you to switch between the 2 (and CPU rendering options) at build time.
I don’t know how you define fast, but slint is incredibly resource hungry on desktop.
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.
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.
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
Is it? A comparable Electron hello world app is ~80-100 MBs
It's the same method used to measure Qt or Slint above.
> 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.
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
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.
That seems like...a lot?
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.