News for hackers. Stuff that matters.
Re:We rewrote the Ghostty GTK application by cosmic_cheese on Thursday August 14, 2025 @07:17PM (#44906860)
In my view the primary reason for GTK’s prominence on Linux rides on one thing primarily: it’s got C bindings, and thus it has decent bindings for just about every other language under the sun too. If you’re not trying for anything fancy, these bindings can even be auto-generated.

The runner up Qt is much more tightly tied to C++ and Python to its detriment. You really need to meet devs where they’re at instead of insisting that they adopt a particular language to use your UI toolkit.

Aside from that, at the end of the day, if you’re building a full fat complex desktop app an old style imperative UI toolkit is probably one of the more practical choices you can make. They have an exhaustive set of battle tested, accessible widgets built in and their pitfalls are well known. Newer approaches expect you to write or import everything and start requiring increased contortions from the developer past a certain point of complexity.

Re:We rewrote the Ghostty GTK application by bobajeff on Thursday August 14, 2025 @07:45PM (#44907054)
Actually the auto generated bindings can be attributed to the gobject system. It's a very interesting system, similar DCOM in Windows.

Too bad is so poorly documented. It seems to me like advanced technology left over from a dead civilization, that's being handled cave people.

Re:We rewrote the Ghostty GTK application by danofsteel32 on Thursday August 14, 2025 @08:11PM (#44907216)
GStreamer: https://gstreamer.freedesktop.org/ is written in GObject which enabled some great tooling like gst-inspect-1.0: https://gstreamer.freedesktop.org/documentation/tools/gst-in...
Re:We rewrote the Ghostty GTK application by cyberax on Thursday August 14, 2025 @09:28PM (#44907664)
And it's so flexible that LIGO (the gravitational wave observatory) uses it to analyze the data: https://dcc-llo.ligo.org/public/0168/P2000195/004/ms.pdf
Re:We rewrote the Ghostty GTK application by pjmlp on Friday August 15, 2025 @01:15PM (#44914971)
COM, not DCOM, that would be D-BUS.
Re:We rewrote the Ghostty GTK application by ozim on Friday August 15, 2025 @01:54AM (#44909037)
Qt licensing is annoying, GTK has its downsides.

So we are left with Electron…

Re:We rewrote the Ghostty GTK application by danieldk on Friday August 15, 2025 @02:20AM (#44909172)
Aren't GTK and Qt (community edition) both LGPL (though different versions)?

So Electron does not have downsides? Like far worse platform integration.

Re:We rewrote the Ghostty GTK application by ozim on Friday August 15, 2025 @06:21AM (#44910583)
Well Qt license is not annoying.

Qt the company is annoying because they make it super hard to use community edition and it is super annoying having per developer licensing with all kinds of super annoying BS one have to deal with when developing for Qt.

For Electron I can get 20 devs hired tomorrow or I myself can start project right away and be up and running in minutes.

Re:We rewrote the Ghostty GTK application by danieldk on Friday August 15, 2025 @07:38AM (#44911104)
Yep, externalization of costs, make it easier for yourself and shittier for the user. Well done ;).

That said, Electron has made the number of Linux apps go up, which is a win. Still highly prefer native macOS apps on Mac and GTK/Qt apps on Linux, but I know that's a losing battle.

Re:We rewrote the Ghostty GTK application by ogoffart on Friday August 15, 2025 @10:19AM (#44912747)
Did you know about Slint https://slint.dev ? What do you think about it?
Re:We rewrote the Ghostty GTK application by cosmic_cheese on Friday August 15, 2025 @01:06PM (#44914850)
I don’t think any UI framework with a license more restrictive or complicated than full on MIT/BSD is going to be able to compete toe to toe with Electron. It doesn’t matter what the price tag is, if it has one it’s going to lose in a shootout between the two.

The only exception I can imagine is maybe a framework that uses the Unreal model, where it’s free to use under USD$1m/year in revenue and beyond that requires only a modest fee.

Re:We rewrote the Ghostty GTK application by phkahler on Friday August 15, 2025 @10:40AM (#44913037)
>> Well Qt license is not annoying.

Qt is a hodgepodge of many different components which have different licenses. This is made worse by Qt being an application development framework and not just a GUI toolkit. It includes much more than necessary and a lot of apps will use those other features and become tightly coupled with Qt. Not that its easy to switch toolkits, but it can be extra hard to move away from Qt.

Re:We rewrote the Ghostty GTK application by pjmlp on Friday August 15, 2025 @01:17PM (#44914982)
I still rather deal with either Qt or Gtk, even though Web pays the bills.

No one is pointing guns forcing people to write Electron crap.