1,235 karma · joined Jun 30, 2012 (14y ago) · 287 submissions
comment 6h ago · link · parent
comment 16h ago · link · parent
comment 16h ago · link · parent
Historically, goto was used where we would now use function calls, or braced if/else statements. (early programming language didn't even have these constructs)
The famous "Go To Statement Considered Harmful" paper from Dijkstra was published before C was created. The "goto" from C and C++ is mostly fine.
comment 2d ago · link · parent
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
comment 2d ago · link · parent
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
comment 2d ago · link · parent
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.
comment 2d ago · link · parent
First, Slint is fully open source and totally free for desktop and mobile development. The article mostly focuses on that, so the pricing argument is simply not applicable in this context.
You're right about certification being a differentiator. We're currently in the process of obtaining ISO 26262 ASIL B certification, and pursuing other certifications relevant to industries such as automotive and medical.
Our customers don't necessarily want "free". They want a serious technology they can build products on, rely on and maintain for decades. They want a partner who takes responsibility and stands behind the technology.
For products with 10–20 year lifecycles, that's worth a lot more than a free library. And I believe that's where Slint's moat lies.
comment 2w ago · link · parent
One difference is that Slint is more mature: it's been 1.x with a stable API since 2023
comment 2w ago · link · parent
It is one. Your app is a Rust program that depends on a crate. The UI compiles to Rust code, and we also have the `slint!` proc macro.
> there's always some edge case logic that needs a full programming language
Right, and that language is Rust. The DSL only describes the GUI. You operate it from Rust.
> Why was using js like qt quick not good enough?
QML was the inspiration. I worked on Qt and wrote QML bindings for Rust before (qmetaobject-rs). Slint is a new take on it, compiled ahead of time, no GC, strongly typed.
comment 2w ago · link · parent
What gave you the impression we're moving away from Rust?
comment 2w ago · link · parent
Btw, a rug pull can happen under even the most permissive licenses. As we've seen in the past with some project changing license or direction. That's more or less already happened with GPUI when Zed refocused development on its own needs rather than other GPUI users resulting in several forks.
comment 2w ago · link · parent
Compared to Electron, there is no browser, so binaries are a much smaller, use less memory, startup is fast. And the attack surface is also much smaller (no XSS)