News for hackers. Stuff that matters.
Re:Emacs is special regarding UIs by jwr on Thursday September 10, 2020 @05:05AM (#24430306)
One begins to understand the advantages of this approach after 10-15 years or so.

I feel that I am constantly being forced into new "UI paradigms", and it isn't always a change for the better. I started with DOS (Norton Commander, anyone? to this day there is no comparable tool), then Windows 3.0 and 3.1 (which was mostly garbage and I did not enjoy the UI at all). I then started using Linux and discovered Emacs. When I could afford the extra megabytes of memory, I would also run X11. As years went by, I switched to the Mac.

These days I'm worried about what will be taken away from me, especially with Apple and their insistence on removing ports, the idiotic "Touch Bar" instead of function keys — but also with Linux, where the shift away from X11 means no more remote applications, and the (increasingly broken) approach of gluing everything together into a big mudball means that if you're running anything that isn't "mainstream", things break and you are very much on your own.

But I still have Emacs and I'm fairly confident that it will remain available and running on every platform I decide to switch to. And that I will be able to run it (with reduced functionality) on a text terminal.

Re:Emacs is special regarding UIs by sevensor on Thursday September 10, 2020 @10:47AM (#24432832)
> the shift away from X11 means no more remote applications

This is a long, gentle transition. Although I believe it to be possible, I still haven't ever run a pure-Wayland system. Most graphical applications for Linux still need an X server, and Wayland provides one. Under sway, I can still run ssh -Y and start X clients on the host I'm connected to. This works just fine. It's going to be years until Wayland kills off X11 on the wire, and alternatives are already under development. I worry about a lot of things, but this isn't one of them.

Re:Emacs is special regarding UIs by hpfr on Thursday September 10, 2020 @06:10AM (#24430738)
The shift away from X11 means no more forwarding X11 applications over ssh, which is slow at best and buggy and insecure at worst. A small price to pay for eliminating tearing and actually-secure screen locking. There are valid criticisms of the move to Wayland but I don’t really think this is one of them; if you really need remote access to graphical applications you almost certainly should not be using X forwarding.
Re:Emacs is special regarding UIs by GuB-42 on Thursday September 10, 2020 @08:38AM (#24431714)
At work, we do X11 forwarding all the times. We have a wide variety of UNIX machines and we often need to run several graphical applications from different machines (not a remote desktop).

X11 forwarding works with the latest Linux distros as well a 20+ year old systems running motif apps. Note: the old systems are now virtualized but we still need them, I work in the aeronautic industry and these are the time scales we are working with.

I don't know of any replacement, at least not one with that level of adoption. Again, we really want to run graphical applications on a server, not a remote desktop.

And BTW, things are getting troublesome. More and more Linux apps integrate accelerated web browser components and these tend not to play well with X11 forwarding.

Love the irony of using a remote display to show an Electron app BTW.

Re:Emacs is special regarding UIs by billfruit on Thursday September 10, 2020 @11:56AM (#24433489)
Not just Electron, even QT as well performs horrible over X11 forwarding in recent versions...

Things seems to be going backwards in this area..

Re:Emacs is special regarding UIs by louai on Thursday September 10, 2020 @06:25PM (#24437186)
When I was at Qt I spent a decent amount of time porting the native rendering engine from Qt4 to Qt5. It should be available and work relatively well. I have retired from the Qt project, but it looks like the code is still there in the repo. [1] You might need to tell the configure script to build it. To use it, set the QT_XCB_NATIVE_PAINTING environment variable.

[1] https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platf...

Re:Emacs is special regarding UIs by kej on Thursday September 10, 2020 @11:37AM (#24433301)
Idle curiosity: what kind of applications are these remote systems running? You mentioned the aeronautic industry but I'm not familiar enough with it to imagine the kinds of things you would need to run remotely.
Re:Emacs is special regarding UIs by GuB-42 on Thursday September 10, 2020 @12:01PM (#24433538)
A big one is a test tool for avionics running on Solaris. We are retiring it but some test procedures still require a specific version of it. And we don't want to update (and recertify) these procedures.

We also have a homemade documentation system, again outdated but certified. I don't remember the system but it is definitely not a modern Linux. I think there is also a Fortran tool used to compute the lifespan of parts on the same system.

A bit more recent, we have test benches made of several computers, mostly Linux desktops, each one deal with different things like real or simulated avionic hardware, they can be remote controlled but some apps run locally and have their own displays.

We also have certified build chains running on specific systems, and while a GUI is typically not needed. It may be useful from time to time, mostly for debugging.

We are in a process of modernizing all that stuff, but because of certification and the average lifespan of a program, it is a very slow process...

Re:Emacs is special regarding UIs by jwr on Thursday September 10, 2020 @10:13AM (#24432536)
> no more forwarding X11 applications over ssh, which is slow at best

It was "slow" when I did it over 10Base2 Ethernet spanning an entire building. These days our CPUs are several orders of magnitude faster, and so are our networks. I don't need it to play the latest 3D games, I need it to display a user interface to an app that runs on a different machine. It's plenty fast enough.

Re:Emacs is special regarding UIs by wazoox on Thursday September 10, 2020 @05:00PM (#24436530)
Yup. Today I have internet access faster than the LAN I used in the 90s and I routinely remotely run apps on my office desktop computer, reading my email, etc. from home. It works perfectly fine for anything not too graphically intensive, and it's way faster than starting a remote desktop session (which I use at times, too).

On a local network, it's not significantly slower to run most apps through X11 forwarding than running them locally, and I use this extensively. The only daily application that's too slow is a browser, but Firefox (and before it, Mozilla did it too, and before it Netscape) automatically opens calls to the browser in the existing local window anyway (and there's always some pre-existing Firefox window open), even when running on some markedly different system (POSIX for the win).

When I used MacOS more regularly, Quartz always was the first application I installed.

When I see the comments from philistines unable to understand the obvious superiority of the one true Unix way, I always think of this Dilbert comic : https://dilbert.com/strip/1995-06-24

Re:Emacs is special regarding UIs by znpy on Thursday September 10, 2020 @06:23AM (#24430825)
> The shift away from X11 means no more forwarding X11 applications over ssh, which is slow at best and buggy and insecure at worst.

Yes but sometimes you really need that and it's a life saver.

EDIT: I just remembered about LTSP (Linux Terminal Server Project) which many schools used to lower the TCO of computing infrastructure. That relied heavily on Xorg's network transparency. I wonder what will happen to LTSP

Re:Emacs is special regarding UIs by hpfr on Thursday September 10, 2020 @06:45AM (#24430956)
Honestly, I think people's reliance on X forwarding is just due to the fact that it happens to exist, not because they really need it. There's nothing like X forwarding on Windows to my knowledge. If X forwarding didn't exist people would have figured out how to do what they needed over SSH with text or when GUI's are irreplaceable sysadmins would have set up an actual remote desktop solution like on other modern operating systems.
Re:Emacs is special regarding UIs by levosmetalo on Thursday September 10, 2020 @07:01AM (#24431058)
Yet, many people use windows and I still miss X forwarding. RDP and VNC are just not a replacement for being able to start 3 different programs on 3 different remote computers, and have them all sitting together on screen next to each other.
Re:Emacs is special regarding UIs by vladvasiliu on Thursday September 10, 2020 @08:13AM (#24431533)
Technically, RDP allows you to only launch one application as opposed to a whole desktop. They call that RemoteApp.

That you can't just launch that on every machine you want (in particular non server installs) is more a limitation of Microsoft's licensing model than of the protocol itself.

For me, from a usability point of view, RDP runs circles around the other solutions. I've used this fairly often during the lockdowns and even over a shitty DSL connection there was close to no lag.

Re:Emacs is special regarding UIs by MereInterest on Thursday September 10, 2020 @08:36AM (#24431700)
RDP works well if you want to connect to a remote machine, then work only on that machine for a significant amount of time. For me, I need to switch in and out of several different RDP sessions, which is a nightmare. Alt tab works either within a session if full screened, or within the local computer if not full screened. That means I need to also periodically use ctrl alt break to switch between full screen and windowed.

In windowed mode, I can either have scrollbars to view a subsection, or I can scale the window. Doing the right thing, changing the size of the remote desktop when the local window is resized, isn't an option because that is set at connection time.

Sometimes, for firewall reasons, I need to have needed RDP sessions. At this point, everything performs poorly, and I need to drag the overlayed blue bars off of each other, then interact with one or the other.

I miss SSH, and want better support for it. Nested connections can be handled with SSH tunnels. Text connections are fast enough to do anything on the slowest of connections. If I need a GUI, I can open up a single window through X11, without additional setup with RemoteApp. Windows remote management through RDP is slow, clunky, error-prone, and inflexible by comparison.

Re:Emacs is special regarding UIs by JonathonW on Thursday September 10, 2020 @03:49PM (#24435859)
> In windowed mode, I can either have scrollbars to view a subsection, or I can scale the window. Doing the right thing, changing the size of the remote desktop when the local window is resized, isn't an option because that is set at connection time.

Side note: if the server is running Windows 8.1 or later (or the equivalent server versions, Server 2012 R2 or later), this isn't the case any more-- RDP sessions can be resized freely at any time.

Naturally, the built-in RDP client that comes with Windows doesn't support this (because, of course, why would it?), but the UWP Remote Desktop app in the Windows Store does (as does the current Mac client).

Re:Emacs is special regarding UIs by vladvasiliu on Thursday September 10, 2020 @01:41PM (#24434674)
My point was that RDP, the protocol, works very well and is able to adapt to network conditions.

For your "nested session", the problem is that the adaptive nature of the protocol breaks down if the first hop has a very good connection to the destination. However, you're holding^w using it wrong. In this kind of scenario, I think MS recommends using a remote desktop gateway, which also works very well. I think one of the great advantages of RDP over ssh X forwarding is that it can use UDP.

I definitely dislike how you have to have a Windows server installation and specific license to set up remote app, though. But I've filed this under "it's Microsoft, what can you expect?".

I also find windows administration horrible, be it via remote desktop or keyboard plugged directly in the server. I grew up with Linux and macOS, so it was always a pain when I absolutely had to give someone a hand with something windows-related (my client has a bunch of Windows servers).

But still, I'm not the kind to throw away the baby with the bathwater and to think that if I generally dislike and would avoid a company's products every single thing that they do is bad. I really wish Linux could have something similar to RDP in performance. It makes me sad when I vnc to a computer across the room and the thing lags more than RDP to some windows box in another country.

edit: Regarding your having to work with several RDP sessions at the same time, it baffles me that the worst RDP client I have ever used is the windows one. I don't use windows on my machines, and the Linux client (Remmina) is absolutely a dream, especially when running on i3 (so there's no conflict with win / alt-tab / etc). Also, MS's mac client works very well and there's no key conflicts there either. You may want to look into the new Remote Desktop app on windows (not quite sure what it's called, it's on the windows store). It now supports window resizing and easier switching between sessions.

Re:Emacs is special regarding UIs by JonathonW on Thursday September 10, 2020 @04:30PM (#24436265)
You just got me to do a little digging... apparently, as of Windows 10, RemoteApp itself isn't restricted by licensing (at least, any more than Remote Desktop itself is)-- Windows 10 Pro (and Enterprise) can now host RemoteApp applications.

The catch is that the UI to configure RemoteApp isn't present on client versions of Windows. It can be configured manually (by editing the registry then creating RDP files by hand), or there are open source tools that will do the work themselves: https://github.com/kimmknight/remoteapptool

Somewhat outdated Microsoft docs on how to do this by hand: https://techcommunity.microsoft.com/t5/microsoft-security-an...

Re:Emacs is special regarding UIs by JoBrad on Thursday September 10, 2020 @08:26AM (#24431610)
RemoteApp mode for RDP lets you interact with server-hosted apps like a client-hosted one. Also, I recall using apps with rdesktop in seamless mode, which worked pretty well.

https://techcommunity.microsoft.com/t5/microsoft-security-an...

Re:Emacs is special regarding UIs by u801e on Thursday September 10, 2020 @08:12AM (#24431525)
You should look into xrdp. It's like X forwarding, but with the ability to detach and reattach to a running application like screen or tmux.
Re:Emacs is special regarding UIs by II2II on Thursday September 10, 2020 @08:38AM (#24431712)
The happens to exist bit turns out to be very important. I can login to a machine and run an X client without installing and configuring extra software on the server. If I am using a desktop with X installed (most *ix based systems), there is no extra software to install and configure on that end either. The worse case scenario is the necessity to install an X server on platforms like macOS and Windows.

The same sort of thing can be said for Remote Desktop. If you're using a version of Windows that includes it, it is wonderful to use because it is just there.

Which is better? It depends on how you're using it. I generally prefer Remote Desktop for my use case because it takes care of audio and it is easy to resume sessions. That being said, those features don't matter to me most of the time so X is just as useful.

Re:Emacs is special regarding UIs by oblio on Thursday September 10, 2020 @08:49AM (#24431808)
> The same sort of thing can be said for Remote Desktop. If you're using a version of Windows that includes it, it is wonderful to use because it is just there.

Doesn't every Windows include it? I can't remember the last time I used a version of Windows that didn't have it, it must have been 20 years ago.

Re:Emacs is special regarding UIs by II2II on Thursday September 10, 2020 @09:52AM (#24432353)
As far as I can tell, only the client ships with "Home" versions. You need to be running Windows Professional or Windows Server for the actual server.
Re:Emacs is special regarding UIs by Spivak on Thursday September 10, 2020 @08:48AM (#24431789)
Right, the shift away from X doesn't mean the death of using GUI apps remotely, it just means moving to a Remote Desktop model instead of telling apps that their render target is your X server through a tunnel.
Re:Emacs is special regarding UIs by donio on Thursday September 10, 2020 @11:56AM (#24433492)
What if I don't want a remote desktop though? 99% of the time I only want a the remote application I am interested in to seamlessly display on my screen, why do I have to bring along a full desktop?

Seems like such a fundamental use case that should be made simple but is ignored (or made very difficult) by modern systems.

Re:Emacs is special regarding UIs by pmoriarty on Thursday September 10, 2020 @10:14AM (#24432542)
Could you flesh this out a bit? What is the official Wayland model for doing "Remote Desktop"?
Re:Emacs is special regarding UIs by Spivak on Thursday September 10, 2020 @04:41PM (#24436378)
I hesitate to call it an official model but the short version of the current direction is that the compositor acts as the glue -- providing the final rendered scene and the final merged audio stream to the client over some protocol (like VNC but doesn't have to be) and providing inputs and events to itself and the client applications.

How all of this works on the backend is a combination of PipeWire to multiplex video sources and PulseAudio to multiplex audio sources.

There's nothing outright preventing something like X forwarding and https://mstoeckl.com/notes/gsoc/blog.html is a really cool project that makes it work.

From that author:

> The main difficulty in producing such a tool is that Wayland protocol messages primarily include control information, and the large data transfers of graphical applications are implemented through shared memory. waypipe must then identify and serialize changes to the shared memory buffers into messages to be transferred over a socket.

Re:Emacs is special regarding UIs by freeone3000 on Thursday September 10, 2020 @12:26PM (#24433797)
What implementation of a remote desktop model currently exists for Wayland?
Re:Emacs is special regarding UIs by Spivak on Thursday September 10, 2020 @02:15PM (#24435012)
The "big two" have implementations. Definitely not mature but it's getting there.

https://wiki.gnome.org/Projects/Mutter/RemoteDesktop

https://docs.kde.org/trunk5/en/kdenetwork/krfb/krfb-configur...

You most likely won't see an implementation "for Wayland" because that's like asking for a websocket implementation "for HTTP" the actual compositors that speak Wayland need to implement remote desktop capabilities and then expose an API for managing remote desktop sessions (org.freedesktop.portal.RemoteDesktop) to programs that want to leverage it.

Re:Emacs is special regarding UIs by spear on Thursday September 10, 2020 @03:49PM (#24435858)
I haven't tried it, but there's also this one for wlroots-based compositors (eg. sway): https://github.com/any1/wayvnc
Re:Emacs is special regarding UIs by worik on Thursday September 10, 2020 @06:54AM (#24431015)
It was the original reason to invent X. Literally
Re:Emacs is special regarding UIs by oblio on Thursday September 10, 2020 @08:51AM (#24431831)
And the adoption has been huge outside of Unix circles...

MacOS doesn't use it, Windows doesn't use it. Even Linux is moving away from it. That's pretty damning for X as a technology during a time when even Windows has started to offer native curl and ssh, just saying.

Re:Emacs is special regarding UIs by jerf on Thursday September 10, 2020 @09:50AM (#24432331)
Gosh, the technology only lasted 36 years so far, and definitely has a few years left to go in it before it is "dead". What a striking condemnation that it only made it 40-ish years before being replaced.
Re:Emacs is special regarding UIs by mcguire on Thursday September 10, 2020 @04:08PM (#24436041)
Windows and MacOS have been (and are) based on the model of buying a copy of a piece of software for each piece of hardware. The idea of only buying a copy for one machine and running it somewhere else is difficult for that model.

Ubiquitous networking is common in the Unix world, but much less prevalent in the Microsoft and Apple worlds.

Re:Emacs is special regarding UIs by chipotle_coyote on Thursday September 10, 2020 @04:31PM (#24436274)
> Windows and MacOS have been (and are) based on the model of buying a copy of a piece of software for each piece of hardware.

At least anecdotally, I'm not sure I can find a whole lot of supporting evidence for this -- the vast majority of the commercial applications I use on a daily basis let you install them on any compatible system that you own. This isn't just a byproduct of "well, they're not checking"; it's usually explicitly written in the license, it happens with programs that make you enter license codes they validate before running, and notably, it's very explicitly the model of the Mac App Store. Sometimes the license says only one copy of the program can be in use at a time without a site license, but for individual use that's generally fine in practice. (I haven't seen a program that's actually annoying enough to check for running copies of itself on a LAN and shut down if you're violating the license in decades at this point, although I'm sure they're still lurking out there in weird niches. It sounds like something Autodesk software would do.)

Anyway -- maybe running programs remotely using the Xserver model never took off in the Mac world, even after OS X, because there was no prohibition against just installing the software on multiple machines? In practice, it's not something I've missed very often, I admit; while I sometimes like to edit text files remotely, that's not something that feels like it would really be improved by this model over using a local editor that can open files over the network. (Edited to note that I'm not suggesting there aren't still valid use cases for X11's server/client model! They're just not ones that have impacted me; if they did, I'd run XQuartz, which I don't love, but it'd probably get the job done.)

Re:Emacs is special regarding UIs by mcguire on Friday September 11, 2020 @03:50PM (#24446621)
I haven't used Apple's App Store; is it really true that, say, Ford Motor Company can buy one $9.99 (or $99.99) copy of some useful application and use it on all of the corporate Macs?

Individual use (there's a funny story here) doesn't really matter; what matters is groups, corporations, with tens to tens of thousands of users, and yes, Autodesk is an example (and GitLab (https://about.gitlab.com/pricing/), sort of). Things that make X necessary and useful are typically, something that you absolutely need, that requires custom support and big hardware, but not something that everyone on your staff needs all the time.

Funny story: At one point, a security researcher realized you could run a program through an instruction-level compiler, reordering operations without changing behavior, so that the machine running the program would broadcast RF signals containing the program's license number. It wouldn't really do anything for single machines because the signal was too weak, but if everyone at a company were using the same license for program X, you could drive around the neighborhood with a van and pick that fact up clearly.

Microsoft was completely uninterested. If it would not prevent every individual from pirating even one copy, they didn't care. Which may be why I recently typed in a twenty-odd character string into my new gaming machine.

Re:Emacs is special regarding UIs by chipotle_coyote on Friday September 11, 2020 @07:56PM (#24448597)
> I haven't used Apple's App Store; is it really true that, say, Ford Motor Company can buy one $9.99 (or $99.99) copy of some useful application and use it on all of the corporate Macs?

No. :) I tried to be clear that I was thinking about individual licenses rather than site licenses, but might not have been, and you're absolutely right about corporate site licenses. Apple's App Store is designed for handling individual licenses -- they're tied to Apple accounts, not machines. (With the asterisk that this isn't necessarily true for iOS devices which can be managed by your company, and there's a whole different way of managing those, but companies I've worked for haven't used those.)

I'm not sure I knew Microsoft was still requiring license keys like that for Windows, but I suppose I shouldn't be surprised.

Re:Emacs is special regarding UIs by hdjdbtbgwjsn on Friday September 11, 2020 @08:18AM (#24441870)
Per seat licences are very standard. Interesting you've never encountered it when e.g. an MS Office 365 subscription is for so many devices (seats).
Re:Emacs is special regarding UIs by chipotle_coyote on Friday September 11, 2020 @08:05PM (#24448648)
I have encountered it -- but, the way I read the original post was more about individual usage rather than computer license, e.g., I don't need a license for every computer I have my personal copy of BBEdit installed on, because they're all "my" computers, even including my work computer. And, any computer or device that uses my Apple account can download and use applications purchased on it.

I believe that latter condition is actually true for Microsoft 365 Personal[1], too -- it's tied to your Microsoft account, and the one "seat" you're buying is that user, regardless of the number of devices you have. Business editions tend to be licensed differently.

[1] I know that looks like I got the name wrong, but apparently in April they changed "Office 365" to "Microsoft 365."

Re:Emacs is special regarding UIs by hdjdbtbgwjsn on Saturday September 12, 2020 @01:22AM (#24450047)
Re:Emacs is special regarding UIs by thekyle on Thursday September 10, 2020 @09:49AM (#24432329)
Currently the only way to run GUI apps in WSL is x forwarding.
Re:Emacs is special regarding UIs by kergonath on Friday September 11, 2020 @02:26AM (#24439730)
Because anything that does not exist on Windows is useless, of course...
Re:Emacs is special regarding UIs by znpy on Thursday September 10, 2020 @01:23PM (#24434469)
Still there are xservers for both windows and Mac. How comes?
Re:Emacs is special regarding UIs by jcelerier on Thursday September 10, 2020 @07:43AM (#24431324)
> There's nothing like X forwarding on Windows to my knowledge.

if windows was enough for my needs I'd use it ?

Re:Emacs is special regarding UIs by toast0 on Thursday September 10, 2020 @02:19PM (#24435068)
> There's nothing like X forwarding on Windows to my knowledge.

You can run an X server on Windows, there's a bunch to choose from. That lets you run an application on a remote unix system and show it on a Windows system in front of the user. It might be nice to run an application on a remote windows system, but that's always tied to expensive licenses; some of those systems sound like they could be pretty seamless (at least as seamless as remote X), but I don't have experience with them.

Remote X has its problems, but it enables a lot of use cases with a minimum amount of hassle. Connect, run the application, close it when you're done. Other solutions with a remote desktop require starting that session somehow, and either leaving it running or shutting it down somehow. That can be useful if you want a long running session, but is more hassle if you don't.

Re:Emacs is special regarding UIs by jimbokun on Thursday September 10, 2020 @11:09AM (#24433020)
> There's nothing like X forwarding on Windows to my knowledge.

Which is why the people who need this functionality run Linux, not Windows.

Re:Emacs is special regarding UIs by bsder on Thursday September 10, 2020 @06:52PM (#24437397)
> Honestly, I think people's reliance on X forwarding is just due to the fact that it happens to exist, not because they really need it.

Visual Studio Code has "Remote Development" (which is under a Non-Open Source License(!)) because they don't have "X11 Forwarding".

Think about the waste of implementing that code--in every application--rather than being able to do display forwarding.

Re:Emacs is special regarding UIs by tokenrove on Thursday September 10, 2020 @01:53PM (#24434799)
No, it was the need for this on Windows that made Citrix all its money.
Re:Emacs is special regarding UIs by znpy on Thursday September 10, 2020 @01:20PM (#24434432)
You haven't worked in operations, have you?
Re:Emacs is special regarding UIs by twic on Thursday September 10, 2020 @06:59AM (#24431041)
For terminal server use cases, there are things like VNC, SPICE, NX, etc. The X11/ssh thing is for when you want to run a mix of local and remote applications on a single desktop, which i think is pretty unusual these days.
Re:Emacs is special regarding UIs by sildur on Thursday September 10, 2020 @07:58AM (#24431422)
Wheelchair users are also pretty unusual and we don’t go removing ramps from everywhere. I’m growing pretty tired of the “your use case is unusual, so fuck you” argument.
Re:Emacs is special regarding UIs by jrm4 on Thursday September 10, 2020 @10:37AM (#24432739)
Despite having felt this way about so many things, I have never seen this argument put so well and succinctly. I am going to be using this ALL THE TIME.

Also, is this "sildur" of Minecraft shader fame? If so, much thanks, you've given me and my daughter many instances of "ooh pretty look at our house."

Re:Emacs is special regarding UIs by morelisp on Thursday September 10, 2020 @05:30PM (#24436762)
Please do not so blithely invoke disability just because someone removed the feature you cared about. It sucks, but I promise you navigating the world in a wheelchair sucks a lot more.

I don't want to speak for anyone in particular but X11 was definitely not a friend to people who cared about a11y or l10n. It wore its origins in "80s MIT students" on its sleeve, for good and bad - and for non-English-speaking or disabled people, mostly bad.

Re:Emacs is special regarding UIs by sildur on Thursday September 10, 2020 @06:48PM (#24437356)
Hey, this is not a contest about who had the crappiest life, and if it was, I can assure you that there are things in life that suck more than navigating the world in a wheelchair, and I’m not asking people to stop complaining about that just because they happened to me.

Anyways, replace wheelchair users with pregnant women, or old people. Ramps help them too, and the argument is still valid.

Re:Emacs is special regarding UIs by hyperdimension on Thursday September 10, 2020 @10:48AM (#24432842)
> "your use case is unusual, so fuck you"

With love, The Chrome Team

Re:Emacs is special regarding UIs by znpy on Thursday September 10, 2020 @07:31PM (#24437706)
> With love, The Chrome Team

Google continues the war against its own users.

Re:Emacs is special regarding UIs by mcguire on Thursday September 10, 2020 @04:11PM (#24436074)
Supporting "unusual" cases is difficult and takes more effort. In the dog-eat-dog world of commercial development, to win you have to get the majority.

Yes, I had that conversation with a friend.

Re:Emacs is special regarding UIs by chriswarbo on Thursday September 10, 2020 @08:55AM (#24431869)
> For terminal server use cases, there are things like VNC, SPICE, NX, etc.

Great. Which of those, if any, do you think might be installed on the machines I want access to?

Which of those, if any, do you think might be installed on the machines I want access from?

What do you think are the odds that the intersection of those is non-empty?

Re:Emacs is special regarding UIs by spear on Thursday September 10, 2020 @04:03PM (#24436002)
My remaining use case for X11 remote display doesn't quite fit in the VNC/etc. remote display paradigm. At work, I submit a job to queuing software that picks a server (based on load and resource requirements) from a pool on the internal network. The GUI for that job then pops up on my X11 display. I don't really care which server is running the job, and the job is just using $DISPLAY -- we don't even forward over ssh.
Re:Emacs is special regarding UIs by Bnshsysjab on Thursday September 10, 2020 @06:23PM (#24437169)
I’m not an X hater but just know you’ve given that server access to your display socket which is effectively remote command execution.

In most cases this could be solved with a good web user interface, but you can rest assured X won’t be dead in the next 5-15 years, and you can use an intermediary box w/VNC if security is that much of a concern.

Re:Emacs is special regarding UIs by welterde on Thursday September 10, 2020 @07:35AM (#24431272)
Is it really that unusual to do some data reduction/analysis on a beefy dedicated machine and wanting to look at the results right away using the same terminal instead of having to copy the result files or using a shared network file system? Even more important if it involves any graphical interactions.

Sure, one could use a remote desktop to do same thing, but it's a bit annoying if all you want is one window from the remote machine.

Re:Emacs is special regarding UIs by u801e on Thursday September 10, 2020 @08:19AM (#24431568)
> it's a bit annoying if all you want is one window from the remote machine.

You should try xrdp. It can work like X forwarding (single application window forwarding), but you can also attach or detach from a running application (like screen or tmux for X).

Re:Emacs is special regarding UIs by welterde on Thursday September 10, 2020 @09:11AM (#24431996)
That's only really an alternative for long-running applications since it still seems quite tedious to do if I am not missing anything (with modifying initial_program and all).

Right now the workflow is simply ssh -X machine and then run some scripts that may or may not open interactive windows and then look at the result files using some graphical application. The same as if I was running it locally really (except on a beefy machine)..

Re:Emacs is special regarding UIs by u801e on Thursday September 10, 2020 @12:43PM (#24433985)
I haven't tried all of the xpra options, but it would be a matter of starting an instance on the remote machine and then running the command to attach to it in the local machine.

I suppose that you could start a terminal session on the remote machine and spawn GUI applications from that. I'm not sure if xpra allows for a terminal session directly from the command line though.

Re:Emacs is special regarding UIs by msla on Thursday September 10, 2020 @11:02AM (#24432966)
> which i think is pretty unusual these days.

You have absolutely no basis for thinking this.

Re:Emacs is special regarding UIs by welterde on Thursday September 10, 2020 @06:29AM (#24430867)
Until recently there was no real alternative to it though. I recently learned about waypipe, so it should be possible to run wayland applications remotely over SSH at last (not sure how well it works/performs, but it exists).

Granted there is also sixel and tek4014 support in xterm, but they are quite limited in what they can do and not too many applications have display frontends for that.

Re:Emacs is special regarding UIs by ddingus on Thursday September 10, 2020 @10:01AM (#24432423)
Depending on how people work, it may be a very high price to pay.

And screen tearing? Didn't SGI have that solved in the 90's?

Re:Emacs is special regarding UIs by cat199 on Thursday September 10, 2020 @10:59AM (#24432944)
the vast number of threads supporting X11/remote and not caring about screen tearing in the least would seem to imply that your particular prioritization of features is not a commonly shared one.
Re:Emacs is special regarding UIs by msla on Thursday September 10, 2020 @10:59AM (#24432947)
> The shift away from X11 means no more forwarding X11 applications over ssh

Which works fine and isn't a problem.

> A small price to pay for eliminating tearing and actually-secure screen locking.

Not necessarily. Not in all use cases.

Re:Emacs is special regarding UIs by jlarocco on Friday September 11, 2020 @02:26AM (#24439731)
Speak for yourself. I use X11 forwarding a few times a week, and it works fine for the things I need it for.

"It doesn't work for me, therefore nobody needs it," isn't a valid argument.

And thinking about it a bit, it wouldn't have made any sense to keep the feature around for so long if it weren't useful.

Re:Emacs is special regarding UIs by freeone3000 on Thursday September 10, 2020 @12:24PM (#24433768)
You've listed disadvantages of an existing system but haven't listed an alternative. What should we be using for remote access to graphical applications?
Re:Emacs is special regarding UIs by sz4kerto on Thursday September 10, 2020 @06:25AM (#24430841)
That means no Linux GUI apps on Windows + WSL2. Sounds like a niche, but I see many devs using Windows + WSL2 + X forwarding to develop under Linux.
Re:Emacs is special regarding UIs by my123 on Thursday September 10, 2020 @07:07AM (#24431098)
WSL2 has Wayland support upcoming (RDP-RAIL based, to integrate them to the regular desktop as separate windows)
Re:Emacs is special regarding UIs by throwaway8941 on Thursday September 10, 2020 @06:45AM (#24430958)
I am not sure why desktop Linux experience should suffer to make WSL work? Microsoft has the wide pockets to make it work if they need to.
Re:Emacs is special regarding UIs by kevin_thibedeau on Thursday September 10, 2020 @01:43PM (#24434689)
Tearing has nothing to do with network transparency and everything to do with crappy closed source drivers. Xorg on Windows doesn't have these problems nor does it on Linux with supported hardware.
Re:Emacs is special regarding UIs by boogies on Thursday September 10, 2020 @08:06AM (#24431471)
> Norton Commander, anyone? to this day there is no comparable tool

What’s the problem with Midnight Commander and/or the 23 other programs at https://en.wikipedia.org/wiki/Norton_Commander#Norton_Comman... ?

Re:Emacs is special regarding UIs by oblio on Thursday September 10, 2020 @08:47AM (#24431784)
Midnight Commander is not covered by the "nostalgia clause" :-)
Re:Emacs is special regarding UIs by jwr on Thursday September 10, 2020 @10:17AM (#24432579)
Midnight Commander is nowhere near where Norton Commander was in terms of usability. Some of that is because of platform restrictions (terminal and keyboard access limitations) and some because of a difference in philosophy.

Norton Commander was simple, but it got the simple things right.

Re:Emacs is special regarding UIs by boogies on Thursday September 10, 2020 @11:12AM (#24433061)
I don’t understand what you’re talking about — my terminal accesses as much from my keyboard as I’ve ever wanted it to, and everything I can imagine it wanting to short of flashing my (Num|Caps|Scroll) lock lights or something (and other terminals support more features than I even use, eg. image previews in ranger et. al.) Could you give an even more specific and concrete example?
Re:Emacs is special regarding UIs by BeetleB on Thursday September 10, 2020 @01:42PM (#24434688)
While I don't like Midnight Commander's keybindings, do note that it can do quite a bit that Norton couldn't (e.g. ssh - incredibly handy).

If you want a closer clone to Norton Commander, try FAR Manager: https://www.farmanager.com/ (Windows only)

Re:Emacs is special regarding UIs by HeadsUpHigh on Thursday September 10, 2020 @11:17AM (#24433109)
What exactly was so useable about norton commander? I tried a split fm and I just found it cumbersome.
Re:Emacs is special regarding UIs by forgotmypw17 on Friday September 11, 2020 @03:44AM (#24440106)
When I still used Windows as my primary desktop, I found Total Commander to be very usable.
Re:Emacs is special regarding UIs by msla on Thursday September 10, 2020 @11:12AM (#24433062)
> where the shift away from X11 means no more remote applications

Plus the death of all non-mainstream window managers, it seems.

Realistically, I'm not moving away from X11 if it will create a UI regression for me. This means that unless I can get Window Maker and application forwarding, I'm not moving to Wayland, and I doubt I'm alone in this general feeling, even though other people use different window managers.

Re:Emacs is special regarding UIs by hpfr on Friday September 11, 2020 @03:45PM (#24446574)
> Plus the death of all non-mainstream window managers, it seems.

Thanks to wlroots, many new window manager projects are starting, often inspired directly by particular X window managers:

https://github.com/swaywm/wlroots/wiki/Projects-which-use-wl...

Re:Emacs is special regarding UIs by HeadsUpHigh on Thursday September 10, 2020 @11:21AM (#24433146)
Define mainstream. Most tilling wm we all know have a wayland branch now. Some abandonware will probably be lost but nothing prevents anyone from re-implementing them.
Re:Emacs is special regarding UIs by badsectoracula on Friday September 11, 2020 @10:49AM (#24443412)
He already mentioned Window Maker.

In any case X11 isn't going anywhere even if Xorg developers decide to abandon ship, others will pick it up and continue. It isn't like Xorg was the first and only server, it already the third or fourth fork from the original server.

Re:Emacs is special regarding UIs by drsopp on Thursday September 10, 2020 @05:14AM (#24430367)
> Norton Commander, anyone? to this day there is no comparable tool

Directory Opus. I've used it for nearly 30 years. First thing I install on Windows.

Re:Emacs is special regarding UIs by jjbinx007 on Thursday September 10, 2020 @06:05AM (#24430704)
The MS-DOS version of XTree Gold was the best piece of software I used in the early 90s.
Re:Emacs is special regarding UIs by ungamedplayer on Thursday September 10, 2020 @07:14AM (#24431139)
So true.
Re:Emacs is special regarding UIs by muro on Thursday September 10, 2020 @06:00AM (#24430672)
Or total commander
Re:Emacs is special regarding UIs by tlavoie on Tuesday September 15, 2020 @02:26PM (#24484803)
Oh wow, there's a blast from the past. I used the Amiga version, never realized there had been a Windows version in the interim.
Re:Emacs is special regarding UIs by tluyben2 on Thursday September 10, 2020 @07:22AM (#24431196)
Or FAR.
Re:Emacs is special regarding UIs by bandie91 on Thursday September 10, 2020 @07:56AM (#24431402)
yeah FAR Commander is an underappreciated pearl
Re:Emacs is special regarding UIs by swiley on Thursday September 10, 2020 @06:03AM (#24430694)
I really honestly don’t like X11. I’ve poked around in the source a couple times and it confuses and scares me. I love the idea of moving entirely to just one graphics API and keeping the server simple.

Until wayland has decent performance though I don’t think I’ll ever switch. None of the apps I use are native (except possibly Firefox and some EDA tools but only if gtk is set up right?)

I thought my new phone would change my mind but surprisingly wayland is way way slower than X11 on it (running native gtk apps.)

Do keep in mind though that modern X11 doesn’t really do remote applications either and many aren’t letting the server manage the scene graph /widgets anyway so remote rendering would be very slow.

Re:Emacs is special regarding UIs by pmoriarty on Thursday September 10, 2020 @10:24AM (#24432634)
"I love the idea of moving entirely to just one graphics API and keeping the server simple"

I'm all for that, if and only if Wayland doesn't force me to give up what I consider to be important features of X.

Apart from the aforementioned remote access, a post titled "Why I'm not going to switch to Wayland yet"[1] goes in to some requirements that I also find important:

- Programmatic output configuration (xrandr, arandr, etc.)

- CLI clipboard access (xsel, xclip)

- Third party app launcher/window switcher (rofi, dmenu, albert, docky).

- Clipboard managers (parcellite, klipper, Gpaste, clipman, etc.)

- Third party screen shot/capture/share (shutter, OBS, ffmpeg, import, peek, scrot, VNC, etc.)

- Color picker (gpick, gcolor3, kcolorchooser)

- xdotool

That post is a couple of years old now, and I've been told in other HN threads on Wayland that some of this stuff is being worked on now, but until it's all there and it is actually mature and full-featured, I would not willingly switch to Wayland.

[1] - https://old.reddit.com/r/wayland/comments/85q78y/why_im_not_...

Re:Emacs is special regarding UIs by voldacar on Thursday September 10, 2020 @01:44PM (#24434707)
Performance too. Wayland adds at least one extra frame of latency and so is unsuitable for gaming and similar scenarios where one program needs to monopolize the framebuffer
Re:Emacs is special regarding UIs by pmoriarty on Thursday September 10, 2020 @02:10PM (#24434972)
Is that extra latency an inherent limitation of how Wayland is designed, or could future optimizations improve Wayland so that its performance is on par with X?
Re:Emacs is special regarding UIs by badsectoracula on Friday September 11, 2020 @10:43AM (#24443351)
Yes, it is an inherent limitation of Wayland because Wayland assumes a compositor and compositors run asynchronously to the applications that produce graphics (it could be possible to run them synchronously but then a single application could freeze the entire desktop - and even when it worked, you'd force all applications to sync with each other), meaning that what the compositor composes is based on the last complete frame it got (and while the compositor is composing its composition the application might as well be waiting, virtual thumbs twirling, with a new frame ready).

In comparison X11 doesn't assume a compositor - it can support composition, but doesn't require it. If there isn't a compositor, applications draw directly to the framebuffer and content appears as long as it is sent to the GPU (you may even send stuff faster than the monitor can keep up with - this is how you get tearing for example).

You can work around Wayland's limitation the same way you can work around it in Windows: get a monitor with faster refresh rates. As usual, better hardware is what fills the holes created by shoddy software (i got an expensive 165Hz monitor expecting to have a never-seen-before butter smooth experience on Windows - in reality what i got was more or less the experience i had back when i could disable the compositor in Windows 7).

Re:Emacs is special regarding UIs by voldacar on Friday September 11, 2020 @10:23PM (#24449317)
I have a 144hz monitor and I can still notice the extra wayland latency; not so much in regular desktop programs, but in fast-twitch shooters like quake. And this is compared to X11 with a compositing WM. So I'm not sure if that's it.

I'm hardly a Wayland expert though, I was just commenting regarding my own anecdotal experience.

Re:Emacs is special regarding UIs by seba_dos1 on Thursday September 10, 2020 @05:09PM (#24436588)
> Is that extra latency an inherent limitation of how Wayland is designed

No, most Wayland compositors can already skip composition and pass the window contents directly to the screen in case of displaying just a single fullscreen window. There is also work ongoing on utilizing hardware planes when possible, to skip composition and improve performance in other cases as well - going beyond what was ever possible on X. Grandparent comment is simply wrong.

Re:Emacs is special regarding UIs by voldacar on Thursday September 10, 2020 @06:03PM (#24437012)
Sorry but I have tried wayland multiple times (most recent ~12mo ago) and this has never been true in my experience. At least on my nvidia card. And the wayland people have been saying stuff like "oh we know better performance is possible, we just need to implement x, y, and z" for many years.
Re:Emacs is special regarding UIs by seba_dos1 on Thursday September 10, 2020 @05:13PM (#24436629)
It depends on the used compositor. In the wlroots land, everything you mentioned is already possible.
Re:Emacs is special regarding UIs by akho on Thursday September 10, 2020 @06:15AM (#24430770)
Network transparency has grown a lot more important for me over the last few years. It’s not really network transparency, though, it’s more vm/container transparency: if your dev environment is in a vm, and includes anything graphical, you need it. With WSL wayland is not even an option.
Re:Emacs is special regarding UIs by cmiles74 on Thursday September 10, 2020 @07:28AM (#24431224)
Microsoft is actively working on adding Wayland support to WSL2.

https://www.phoronix.com/scan.php?page=news_item&px=Microsof...

Re:Emacs is special regarding UIs by chillfox on Thursday September 10, 2020 @06:21AM (#24430816)
Doesn’t Midnight Commander do pretty much everything Norton Commander did?
Re:Emacs is special regarding UIs by tartoran on Thursday September 10, 2020 @09:50AM (#24432333)
Yes it does but the idea was that UI/UX has been in decline
Re:Emacs is special regarding UIs by antonios on Thursday September 10, 2020 @05:42AM (#24430570)
Sometime I also get in a pessimistic mood. I really would like to convince myself that X11 is not going away in the next decades.
Re:Emacs is special regarding UIs by Bnshsysjab on Thursday September 10, 2020 @06:28PM (#24437209)
Esoteric hardware won’t work first, then maybe browsers. I’d estimate 15 years.

I was not using pulse or systemd until early this year, having used Linux since 2008 thats a pretty decent lifespan. It was finally required for Bluetooth headphones which weren’t really around in the age of alsa.

Re:Emacs is special regarding UIs by selftest on Friday September 11, 2020 @02:29PM (#24445810)
I took years off from Linux and recently hopped back in. What a convoluted mess it’s all become! I’m currently using a “packaged” version of Arch (arcolinux) and the whole thing is just a hodgepodge of things that might work together but probably don’t. I like to tinker as much as the next person on HN, but editing configs all day truly takes away from doing “real” work.

However, the Mac problem is also annoying... not having $1200+ every two or three years to spend in new hardware is limiting. While it’s true that you can “code on anything”, resource overhead becomes a consideration at some point... which is why I switched back to Linux, but then I’m back at my first complaint.

Re:Emacs is special regarding UIs by roel_v on Thursday September 10, 2020 @07:27AM (#24431218)
"(Norton Commander, anyone? to this day there is no comparable tool)"

If you're on Windows, try xyplorer. I can't remember anything NC did that xyplorer doesn't, and it does a lot more, too.

Re:Emacs is special regarding UIs by WanderPanda on Thursday September 10, 2020 @05:35AM (#24430524)
What is idiotic about the Touchbar that is not idiodic about function keys? You have to look at your keyboard to hit the function keys, why not use the glance for a visual feedback loop?
Re:Emacs is special regarding UIs by jwr on Thursday September 10, 2020 @06:00AM (#24430671)
I definitely did not look at the function keys when working with software that I use a lot.

As an example, these days, when routing PCB tracks in KiCad, when I need to switch to a different board layer, I need to look away from screen and at the keyboard in order to hit the right function key. I also have to pray that the TouchBar will register my press, as it often likes to go to "sleep". I don't know if it did register my press until I look back at my screen and check if I'm on the right layer.

Having to look away from the screen when you're in the middle of routing a track on a complex multi-layer board is really annoying.

Plus, it's difficult to keep a hand near the function keys without accidentally getting near one of the touchbar areas, which results in a keypress, which results in a zoom-out for me (F1).

It's an abysmal user experience and a huge regression.

Re:Emacs is special regarding UIs by codegladiator on Thursday September 10, 2020 @05:39AM (#24430548)
> You have to look at your keyboard to hit the function keys

No, you are doing it wrong. Never need to see keyboard except when using touchbar thanks to no feedback.

Re:Emacs is special regarding UIs by ch_123 on Thursday September 10, 2020 @07:35AM (#24431273)
On a physical keyboard, the gaps and contours of the keys give your fingers an indication that they are pressing a single key, as opposed to a blank space or the gaps between two keys. This, combined with the grouping, makes it viable to use function keys without looking at them.
Re:Emacs is special regarding UIs by Symbiote on Thursday September 10, 2020 @05:59AM (#24430667)
On any reasonable keyboard, the function keys are in groups of four (F1-F2-F3-F4 F5-F6-F7-F8 F9-F10-F11-F12), or sometimes three. It's not necessary to look to see where the keys are.
Re:Emacs is special regarding UIs by foobarian on Thursday September 10, 2020 @06:17AM (#24430788)
I wish the external Mac keyboard had grouped function keys. I wish I didn't have to use an external keyboard in the first place, but touchbar is even worse. In my case debugging stuff becomes annoying with ungrouped keys because it's easy to mix up step into / step over / continue.
Re:Emacs is special regarding UIs by brnt on Thursday September 10, 2020 @06:50AM (#24430988)
You're excluding pretty much every laptop there.
Re:Emacs is special regarding UIs by linspace on Thursday September 10, 2020 @07:00AM (#24431047)
I don't find laptop keyboards reasonable. They are a last resort.
Re:Emacs is special regarding UIs by lallysingh on Thursday September 10, 2020 @10:40AM (#24432775)
Thinkpads group their function keys. Who outside apple doesn't?
Re:Emacs is special regarding UIs by tlavoie on Tuesday September 15, 2020 @02:40PM (#24485017)
Thinkpads also have nice keyboards, so are hardly representative of laptops in general.

And in line with the other commenters, my corporate HP and Dell laptop function keys aren't grouped. Fortunately, I interact with both through a nice external keyboard.

Re:Emacs is special regarding UIs by pmontra on Thursday September 10, 2020 @06:19PM (#24437142)
My HP laptops don't. It's been ages since I used a non laptop keyboard and I forgot about grouping. It's a useful UX though.
Re:Emacs is special regarding UIs by brnt on Friday September 11, 2020 @08:31AM (#24441992)
Dell.
Re:Emacs is special regarding UIs by zwirbl on Thursday September 10, 2020 @05:39AM (#24430552)
I barely, if ever, have to look at the function keys to hit right one
Re:Emacs is special regarding UIs by iandinwoodie on Thursday September 10, 2020 @11:53AM (#24433450)
With regard to accessibility, a blind user can reliably use the function keys due to their physical separation. In contrast, the Touch Bar removes the separation of individual keys and may pose a challenge to sight restricted users.
Re:Emacs is special regarding UIs by athms on Saturday September 12, 2020 @01:30AM (#24450088)
MacOS has accessibility features for TouchBar including VoiceOver.
Re:Emacs is special regarding UIs by jcelerier on Thursday September 10, 2020 @05:56AM (#24430651)
> You have to look at your keyboard

no