Live data from Hacker News

I hate: Programming Wayland applications

p4m.dev

41–50 of 184 posts

Re: I hate: Programming Wayland applications

#41
post #3

Wayland was designed from the point of view of theoretical purists. It's basically "how would a display server work in an ideal world", unfortunately, that design turns out to also be impractical and straight up developer/user hostile.

> how would a display server work in an ideal world

When designed by committee.

With conflicting interests.

And Veto Powers.

Re: I hate: Programming Wayland applications

#42
post #30

Earlier quoted context omitted.

Win32 isn't that hard actually.

To create a simple window, no it isn't. To create a rather complex application, then yes it is, compared with using a higher-level framework.

This article is complaining about the complexity of creating a simple window in Wayland, which is much easier in Win32. Wayland doesn't make creating "a rather complex application" any easier either. In both cases you would use a framework. Even more so in Wayland, which doesn't provide widgets or standard dialogs at all, while Win32 does.

Re: I hate: Programming Wayland applications

#43
post #8

Earlier quoted context omitted.

It is a damn shame that tools like xdotool (automation) and sxhkd (global keybinds) are impossible to recreate under Wayland.

ydotool exists https://github.com/ReimuNotMoe/ydotool

The name is pretty similar, but looks like there is where the similarities end.

Re: I hate: Programming Wayland applications

#44

Writing 1300 lines of non-cross-platform windowing code sounds like masochism. GLFW is right there.

That just moves the problem to the GLFW maintainers. The point is that the Wayland designers should have learned from the mistakes of 40 year old APIs, but they are not only repeating the same problems, they made it even worse. That's quite an achievement tbh.

Re: I hate: Programming Wayland applications

#45
post #8

Earlier quoted context omitted.

It is a damn shame that tools like xdotool (automation) and sxhkd (global keybinds) are impossible to recreate under Wayland.

Not impossible, it just needs to be implemented at a different layer. The compositor needs to expose some API for global hotkeys. For example, I found this with ~2 minutes of Googling: https://wayland.app/protocols/hyprland-global-shortcuts-v1

> Not impossible, it just needs to be implemented at a different layer. The compositor needs to expose some API for global hotkeys.

That's a big problem. When things become an optional extension for a compositor, that means you cannot reliably deploy something that depends on it to Wayland.

At this moment, things in the wild are coupling themselves to libwayland-client and in practice ossifying its ABI as a standard no matter what the wayland orgs say about it.

Re: I hate: Programming Wayland applications

#46
post #7

Earlier quoted context omitted.

Exactly my impression. And honestly, X11 isn't exactly beautiful like the author is implying. A lot of the same wayland complaints they are putting here apply to X11. The main difference is that wayland is apparently handling the event loop for you while X11 expects you to set that up yourself. Win32 has exactly the same setup of problems here as wayland does. Moreso because Win32 just gives you back opaque handles w…

Having done some mobile development where app sandboxes have been prevalent for years, it's annoying to deal with but necessary. Given the bad behavior some devs attempt, often ad SDKs trying to perma-cookie users, stealing clipboards, etc, having a platform that can support app isolation seems necessary for normal desktop usage.

How often has that been a problem for desktop OSes?

Re: I hate: Programming Wayland applications

#47
post #16

The constant loud bile spewing over Wayland and systemd just won't stop here, will it? It's getting a bit boring, especially since none really does more than complain.

Especially systemd. Declarative management of services is a bad thing? Some people just wanna complain

I'd argue the Wayland hate is much worse. Not that it might be bigger than the hate on systemd, but contrary on the case of the systemd, there are no other real alternatives to wayland nor x. Wayland is attempting to improve over x but some (really noisy) people just suffer from fear of the new.

Re: I hate: Programming Wayland applications

#48
post #3

Wayland was designed from the point of view of theoretical purists. It's basically "how would a display server work in an ideal world", unfortunately, that design turns out to also be impractical and straight up developer/user hostile.

They looked at caniuse.com and thought "I want that!"

Re: I hate: Programming Wayland applications

#49
post #16

The constant loud bile spewing over Wayland and systemd just won't stop here, will it? It's getting a bit boring, especially since none really does more than complain.

Especially systemd. Declarative management of services is a bad thing? Some people just wanna complain

That is a strawman. That is not the aspect of systemd people object to.

Re: I hate: Programming Wayland applications

#50
post #19
post #17

I have used quite a bit of Gtk and QT, and have had to touch X11 or Wayland very little directly, EXCEPT for one case where I wanted to provide a global hotkey...

He complained there is no way to do the easy thing in Wayland - there is a way: Gtk and QT

How do you make a global hotkey in all compositors with Gtk or Qt?
Post reply on HN