points by DonHopkins 2 years ago

> they're expecting all software to be rewritten.

ALL software was ALREADY rewritten for the web, so just use a web browser running directly on the hardware instead of bothering with X11 or Wayland or some hypothetical replacement like X12. That's just an extra useless layer that nobody needs.

A web browser is totally extensible and scriptable in JavaScript and WASM. Standards based. Excellent networking support. Streaming video. Secure sandboxing. Remote accelerated 2D and 3D graphics and GPU programming and WASM engine. Not rocket science. Off-the-shelf, well tested, open standards based solution. Problem already solved.

Why this is not the most obvious thing in the world since the Effrafax painted a mountain pink, and hasn't already been done, totally baffles me. It's as if the Linux community would much rather bicker and squabble about X11 -vs- Wayland for another 30 years than solve the problem once and for all and permanently and perfectly.

https://en.wikipedia.org/wiki/Somebody_else%27s_problem

>An SEP is something we can't see, or don't see, or our brain doesn't let us see, because we think that it's somebody else's problem. That’s what SEP means. Somebody Else’s Problem. The brain just edits it out, it's like a blind spot.

>The Somebody Else's Problem field... relies on people's natural predisposition not to see anything they don't want to, weren't expecting, or can't explain. If Effrafax had painted the mountain pink and erected a cheap and simple Somebody Else’s Problem field on it, then people would have walked past the mountain, round it, even over it, and simply never have noticed that the thing was there.

https://news.ycombinator.com/item?id=38442601

https://news.ycombinator.com/item?id=38442660

https://news.ycombinator.com/item?id=38445174

https://news.ycombinator.com/item?id=31988890

https://news.ycombinator.com/item?id=29094938

https://news.ycombinator.com/item?id=29097030

https://news.ycombinator.com/item?id=20182294

https://news.ycombinator.com/item?id=11484148

https://news.ycombinator.com/item?id=5844345

marrs 2 years ago

I write software for web browsers for a living and I shudder at the thought of having all of my apps trapped in some bloaty, slow sandbox that's different enough from all the other bloaty and slow sandboxes to not actually support all the software it needs to run.

If I have to live on your world, I'll probably just chuck it all in and work with my hands for a living instead.

  • DonHopkins 2 years ago

    So you'd rather have TWO different bloaty slow sandboxes layered on top of each other, instead of one bloaty slow sandbox. Right.

    • marrs 2 years ago

      I don't know what this means

      • hedora 2 years ago

        The web browser is a sandbox, and it runs as an OS process, which is a sandbox.

        I think their comment means you’d be better off targeting an OS level sandbox (maybe based on OCI(?), which means a different container for each OS kernel or breaking kernel change — new docker doesn’t run on old linux as it is).

        If you chose the OS level sandbox correctly, that would probably be more cpu-efficient than the web browser.

        However, that’s a big “if”, since most of the linux sandbox thingies take multiple seconds to spawn a process, and multiply memory usage by 10-100x.

        • DonHopkins 2 years ago

          No, I mean the other way around.

          X11 sucks. Wayland sucks. Get rid of them both! But the browser's not going away, and it's open standards based and cross platform, and there's a huge amount of collaborative work and money and talent going into making it better and more powerful and more efficient and more secure across the entire industry and all platforms, unlike X11 and Wayland (which nobody gives a shit about outside of a few fanatical Linux desktop users), or even the Windows and Mac desktops and Android and iOS interfaces (which billions of people use every day, but are stagnant terribly designed dead-ends).

          The browser is a sandbox, so why run it on top of another leaky inflexible insufficient outdated sandbox full of clumps of dehydrated urine and cat turds like X11 or Wayland, instead of directly on the hardware?

          No modern desktop environment is complete without a browser, so since you're stuck with it, why not just use the browser itself as the desktop environment (or whatever user interface paradigm you choose to use), since you're never getting rid of the browser, and modern non-browser desktops aren't as flexible or powerful or extensible as a browser, and most useful applications have been ported to run in the web browser environment anyway, so they can run across many different platforms, and be easily distributed and efficiently used over the network (unlike Wayland or "modern" X11 apps).

          I'm just surprised this seems to be so hard for some people to understand, in spite of the fact that I've been making the same argument for more than a decade, and provided many links to those arguments, because it seems extremely obvious and straightforward to me, and the technology is finally mature enough to pull it off.

          • marrs 2 years ago

            X11 isn't a sandbox and that's fine by me. I'm not particularly interested in zero trust computing. I'm not strongly opposed to it, but in general I'm going to choose a lightweight app over a resource hog. However bad X11 is, it runs the software I want to use. That's literally my only motivation for sticking with it. Sorry if you find all this offensive.

            > No modern desktop environment is complete without a browser, so since you're stuck with it, why not just use the browser itself as the desktop environment..?

            Because I want to use my desktop environment as my desktop environment. I've invested time and energy optimising it for my workflow and I'd like to continue to benefit from using it.

            > non-browser desktops aren't as flexible or powerful or extensible as a browser

            Again, I don't know what this means. My desktop is literally programmable. As in, I can edit and recompile the source code directly. Please tell me what's more powerful than that.

            > they can run across many different platforms,...

            I only need my apps to run on one platform

            > ...and be easily distributed and efficiently used over the network (unlike Wayland or "modern" X11 apps).

            `apt install my-x11-app my-wayland-app` `#include <sys/socket.h>`

        • marrs 2 years ago

          I guess the term "sandbox" can become overloaded. I'm not thinking of OS processes as sandboxes in this context.

          > However, that’s a big “if”, since most of the linux sandbox thingies take multiple seconds to spawn a process, and multiply memory usage by 10-100x.

          And this is the thing I'm not willing to accept. Well, I can tolerate excessive memory consumption depending on what I'm doing, but I refuse to entertain long boot times. It's the main reason I avoid Java apps, Flatpacks, and so on.

      • DonHopkins 2 years ago

        I included a lot of links to my previous posts over ten years explaining what it means in lots of detail with many different words and numerous examples and citations.

        Did you read any of them? Did you read my other explanation below that I just wrote personally for your benefit? Does it make any sense to you?

        Do you understand what I mean now, or do you need me to give you some more citations of other times I've written the same thing, because there are more. What was unclear, and did I leave anything out?

        Do you have any more questions I haven't answered time and again and already gave you links to but you just didn't bother reading?

        It's exasperating and insulting that you blithely dismiss what I wrote without saying what you disagree with or can't understand, but I promise you, it really is easy to understand and extremely obvious on its face, if you will just take the time to read what I wrote, before complaining you don't know what it means.

        If you have time to complain, then you have time to read what I wrote and linked to, before complaining you don't know what it means.

        If you're too busy to read, then please don't waste your and my time complaining you don't understand what you didn't bother to read.

        • marrs 2 years ago

          I forgot about those links. No, I didn't look at them. I've taken a quick look now. They seem to be about X and everything that's wrong with it, which is fine, but I don't see much about browsers, and that's what I was responding to your comment about.

          My experience with making an app work consistently across browsers is that it's hard work. Making it also work consistently with each OS it runs on is considerably harder. You want to guess how many times I've been asked to even consider either of those two things by a manager, let alone make them a priority? Never.

          And going by my experience as a user of browser-based software, I'd say that's pretty normal across the industry.

          And that's to say nothing of the fact that these apps are typically slow, cumbersome (by which I mean they throttle my CPU and drain my laptop battery), and crash no less frequently than unsafe apps written in unsafe languages like C (despite the fact that that's supposed to be impossible).

          It seems to me that you want to rewrite the world in the browser. That doesn't seem very different to me from rewriting the world in Wayland. Whatever the differences between the two, they are insignificant besides the fallacy of rewriting the world.

          As for the rest of your reply, I have no idea why you think I owe you however much time it would take me to read however many links you posted above. If you have something relevant to say, say it in the thread. Don't presume to leave it for me as a homework assignment.