HNHacker News
TopNewBestAskShowJobs

ogoffart

1,178 karma · joined June 30, 2012

https://slint.dev
submissionscomments
ogoffart··on Show HN: Game Bub – open-source FPGA retro emulation handheld
Awesome project! Really cool to see that the UI is built with Rust and Slint, the GUI framework I’m working on. https://github.com/slint-ui/slint
ogoffart··on WASM will replace containers
> I wonder if someone could make a decent cross-platform GUI toolkit to save us from the horribly slow Electron-hell we've carved out for ourselves.

https://github.com/slint-ui/slint

ogoffart··on Asahi Linux lead developer Hector Martin resigns from Linux kernel
I tried once to contribute a fix to be able to use the track-pad on my laptop many years ago. But it was not accepted as the maintainer claimed it was an problem in userspace that did not process out of order events correctly. Despite none of the other drivers sent the events out of order. I had no intention to fix the problem on X11 (the only userspace for this at the time), so I used the patched kernel driver locally until I stopped using that laptop. https://bugzilla.kernel.org/show_bug.cgi?id=43591 https://lore.kernel.org/all/1340829375-4995-1-git-send-email...
ogoffart··on C++26: A Placeholder with No Name
Even without auto you have the problem.

    return foo().bar();
No `auto` and you still don't know the return type of foo. And knowing the type might not be the only reason you'd want an IDE anyway. What is `foo()` doing? I want to be able to easily jump to the definition of that function to verify that the assumption taken by the calling function are correct.
ogoffart··on C++26: A Placeholder with No Name
I've been using #pragma once in my C++ libraries for a decade and nobody ever reported any problem with that. I did get bug report about using perfectly standard C++ features that were not properly implemented in some compilers.

> the same include file is accessible under different path names (granted, that's a very esoteric scenario)

And most likely a build system problem anyway if, say, different versions of the same library get included in your build.

ogoffart··on Ask HN: What to use for desktop apps for Windows or Mac?
You might want to give Slint a try. It's a cross-platform UI framework that supports C++, Rust, JS, and Python. https://slint.dev
ogoffart··on Why am I writing a JavaScript toolchain in Zig?
It's also possible to use JS (or TypeScript) on the desktop, without having the need for a browser or a webview. That's for example what we're trying to do with Slint https://slint.dev Then you get the good part of javacript for your application logic, without the bloat and attack surface of a browser.
ogoffart··on Spotify's Car Thing, due for bricking, is getting an open source second life
Here is another small project to revive the car thing with a clone of the previous UI written in Rust: https://devpost.com/software/car-thang
ogoffart··on Evolving GitHub Issues
I've observed it has become much better on my repository over the past few years. Discussions took a while to be adopted and I have to guide users to discussions through the CONTRIBUTING.md and issue template. For the few questions that still comes in the issues, i'm immediately converting them into discussions.
ogoffart··on Evolving GitHub Issues
I often edit the title and description of issues.

I usually let the original content after a

### Original message

...

ogoffart··on LsCs is a cross platform C++ GUI library focused on Medical Devices
So that's a fork of a ~10 years old fork of Qt. Copperspice originally forked, in part, because Qt was not close enough to the C++ standards, and now this (outdated) GUI library is being forked because they make use of a 4 years old C++ standard. Someone should fork LsCs to add support for mobile or new C++ standard. Looking forward to see this happen in 10 years (/s)
ogoffart··on Do Not Sign the Qt License Agreement Unchanged
Yes, we'd like to improve on that: https://github.com/slint-ui/slint/issues/4128
ogoffart··on Do Not Sign the Qt License Agreement Unchanged
There are 3 license: 1. GPL 2. Royalty-free (free of charge for desktop) 3. Paid license (which we hope is less constraining than the Qt commercial one)
ogoffart··on Do Not Sign the Qt License Agreement Unchanged
(Shameless plug) If you're looking to go away from Qt, you can check out Slint https://slint.dev Being inspired from QML, Qt users should feel at ease. The license model is hopefully less constraining than the Qt one.
ogoffart··on Comfy, the 2D rust game engine, is now archived
Some crates are better than other.

For Slint (Another GUI toolkit in Rust), we try to keep our API as stable as possible for as long as possible. We use other crates behind the scene such as winit and co., but we don't expose them in our public API, and we take care of the burden to update them.

ogoffart··on What's new in C++26 (part 1)
Why do you think this is?

Some reason I can think of:

- Can't update the compiler (eg, porting the code base to the new compiler is too complicated)

- No compiler support for the new standard that target a specific platform that one still want to support.

- Too much work to update the whole code base to work with the new standard.

- A 3rd party library is not supporting new standard yet.

- The team is reluctant to have to learn new technologies.

Some are somewhat valid reason, some are less, some are indication of deeper problems.

(P.S: My C++ code base is using C++20. Didn't move to C++23 yet because I think some customers might not be ready for it yet for one of these reasons, but I'm going to push for it at some point.)

ogoffart··on LSP: The good, the bad, and the ugly
Other editors have kind of standardized it to associate a language to a command to run and communicate trough the stdout/stdin. Why do vscode need to be more complicated?

(even this association could be done with a local DB similar to mime types if we wanted to simplify)

ogoffart··on LSP: The good, the bad, and the ugly
I've implemented a LSP server (for Slint - https://slint.dev) and I agree with this article.

The paradox is that it was meant to avoid to write language support for each editor. Yet, if you want to support vscode you must create a specific extension for it and can't just have a language client.

The article mention the configuration problem, but I'd add the problem that Microsoft refuses to specify a way for the server to tell the client what are the config options so that the client can show some kind UI showing the possible configuration options with a description of what they do. https://github.com/microsoft/language-server-protocol/issues...

ogoffart··on Zngur: A C++/Rust interop tool
For calling C++ libraries from Rust, there is also https://crates.io/crates/cpp
ogoffart··on ImRAD is a GUI builder for the ImGui library
> if the Rust crowd is hell bent on rewriting everything, why don't they clone the VCL and the GUI designer?

I'm trying to work on it with https://slint.rs Our VS code extension has a drag and drop GUI editor.

ogoffart··on Writing GUI apps for Windows is painful
40MB was the criteria coming from the article. But it's much smaller than that. I don't have the exact number in mind. I'd say much less than 20MB.
ogoffart··on Writing GUI apps for Windows is painful
There must be some confusion. This is not a web framework, it is a compiled framework with API for several programming languages (including C++) and no HTML/CSS.
ogoffart··on Writing GUI apps for Windows is painful
I'm working on a GUI toolkit that should match the requirements: Slint - https://slint.dev Can be compiled statically in a single .exe that is smaller than 40M. Has a license that allow proprietary on desktop for free. Has dark/light styles. Even comes with a (work in progress) drag and drop WYSISYG editor.
ogoffart··on Fast TypeScript Desktop GUI Toolkit
With Slint [https://slint.dev], we're also trying to make a desktop GUI toolkit that'd work in typescript. So I think there is indeed an opportunity.
ogoffart··on The Safety-Critical Rust Consortium
Unsafe is still needed in some cases to access low-level APIs or to talk to the hardware. It can still be safe because that is limited in scope, and still makes the whole product easier to review.
ogoffart··on Ask HN: Rust vs. Go vs. C++ for web-based desktop applications?
Why do you want to make your desktop application "web-based", instead of using a framework that renders without the need of a browser?
ogoffart··on Rust GUI framework performance comparison
(2023) Not surprising that tauri is slightly behind since it uses a webview. I'm curious why Slint was not included in the benchmark.
ogoffart··on Ask HN: I want to develop desktop application. Tauri or Qt?
As the author of both Slint and qmetaobject-rs, I wonder if you checked out Slint[1] and what were the reason you didn't pick it.

[1] https://slint.rs

ogoffart··on How to fix CSV: make it even more U+1F4A9 PILE OF POO
Not long ago there was also a post about "Unicode Separated Value" https://github.com/sixarm/usv https://news.ycombinator.com/item?id=39679378
ogoffart··on Tech Debt: My Rust Library Is Now a CDO
The policy in Fedora is precisely that upstream must not vendor (bundle) their dependencies https://docs.fedoraproject.org/en-US/packaging-guidelines/#b... https://docs.fedoraproject.org/en-US/packaging-guidelines/Ru...
← PreviousPage 3 of 9Next →