Slashdot Mirror


Wayland 1.0 Released, Not Yet Ready To Replace X11

An anonymous reader writes "After being talked about for four years, Wayland 1.0 was released today. The Wayland 1.0 release doesn't mark it yet as being ready for Linux desktop usage but just being API/protocol stable for future expansion. Wayland will now maintain backwards compatibility going forward, but how much longer will it take to replace X11 on the Linux desktop? Quite a while seems likely."

81 of 455 comments (clear)

  1. Re:Hopefully another 25 years or more by Anonymous Coward · · Score: 4, Insightful

    I guess all of the X11 developers that are the ones developing Wayland don't understand X11 that well. You should send them a link to the classes you're teaching.

  2. Version numbering by Rennt · · Score: 2, Insightful

    Oh, we'll call it 1.0, but I'm sure distros won't start shipping it by default because we said it's not ready. Why are you pulling that face? Worked for KDE didn't it?

  3. what about xorg? by sayfawa · · Score: 3, Interesting

    I did, at least, skim the article, and I still don't know. Didn't X11 just (as in last few years) get replaced with x.org? This is another replacement already? Ok, before posting, I google and see this:

    What's different now is that a lot of infrastructure has moved from the X server into the kernel (memory management, command scheduling, mode setting) or libraries (cairo, pixman, freetype, fontconfig, pango etc) and there is very little left that has to happen in a central server process. ... [An X server has] a tremendous amount of functionality that you must support to claim to speak the X protocol, yet nobody will ever use this. ... This includes code tables, glyph rasterization and caching, XLFDs (seriously, XLFDs!) Also, the entire core rendering API that lets you draw stippled lines, polygons, wide arcs and many more state-of-the-1980s style graphics primitives. For many things we've been able to keep the X.org server modern by adding extension such as XRandR, XRender and COMPOSITE ... With Wayland we can move the X server and all its legacy technology to an optional code path. Getting to a point where the X server is a compatibility option instead of the core rendering system will take a while, but we'll never get there if [we] don't plan for it.

    which bored me to tears, so I'm no longer interested, but for those who are....

    --
    Free the Quark 3 from asymptotic confinement! Bring your charm! Don't get down! All colours and flavours welcome!
    1. Re:what about xorg? by damnbunni · · Score: 4, Informative

      x.org is not a replacement for X11. x.org is X11.

      It's an implementation of an X11 server.

      x.org split off from XFree86 over licensing arguments, if I recall properly.

    2. Re:what about xorg? by Smartcowboy · · Score: 2

      As I understand it, x.org replaced xfree86. Both are X11 implementation.

    3. Re:what about xorg? by bmo · · Score: 4, Informative

      The licensing thing was basically just the last straw in a long line of disagreements, especially the lack of innovation and communicating and coordinating with the rest of the community, like projects such as KDE and Gnome.

      If you think x.org's development is glacial, it's nothing like what XFree86's BS was.

      --
      BMO

    4. Re:what about xorg? by Anonymous Coward · · Score: 3, Interesting

      [An X server has] a tremendous amount of functionality

      X servers were working fine on resource-constrained Unix systems 20 years ago.

      The idea that they're somehow too bloated compared to a modern UI subsystem is complete and utter bullshit.

      It just makes me annoyed how everything becomes layer upon layer of yet more inefficient crap, yet we're supposed to worry about comparably simple "legacy protocols" possibly still having some features that could be gradually deprecated.

    5. Re:what about xorg? by Kjella · · Score: 4, Insightful

      x.org split off from XFree86 over licensing arguments, if I recall properly.

      That was the breaking point but there was very much tension between XFree86's Core Team and the other developers over the development model. Both the developers and distros rapidly abandoned XFree86 so their first release under the new license was essentially already dead and buried. It was something of an eye opener to see how quickly you could go from being president for XFree86, used in pretty much every form of *nix systems to having an empty title while all the people and all the work continued over at x.org. It really goes to show that open source projects are at the mercy of the grassroots, if you act like a dick or an idiot your project will be forked and dead like if someone pulled the rug out from under you.

      --
      Live today, because you never know what tomorrow brings
    6. Re:what about xorg? by tibit · · Score: 4, Informative

      The deal is that the way of rendering that both X11 and windows GDI support is 20 years behind the times. Nobody renders like that. The only way to reuse such an API to render modern UIs (without using GPU functionality) is to generate bitmaps using various modern rendering libraries and toolkits (like Qt does!) and push those to the screen. Thus, for a modern application, X11 and GDI are bitblt and input with lots of other junk nobody cares about. Yeah, X servers were working fine on resource constrained Unix systems 20 years ago, but then the UIs back then consisted of relatively simple primitives that the X server could actually draw. These days the X server doesn't support the primitives the application designers need, because to do so would mean reimplementing, for example, a path based compositing renderer.

      The legacy APIs are useless, they don't scale anymore. Back in times of X, any application that drew anything complex had to maintain its own scene graph of some sort and maintain its own space partitioning to choose what to redraw. This led to obscene duplication of effort, and various applications had their own glitches, shortcomings and inefficiencies because everyone was reimplementing what wasn't all that easy to implement correctly in the first place.

      Given the graphics hardware available today, those legacy APIs of GDI and X vintage expose a model that is so far detached from how the hardware processes the geometry, that applications that merely use the API can't leverage the available graphics horsepower. IOW, if you code to X or GDI APIs, your application will perform poorly and there's no way for something on the implementation side of the API to fix it for you.

      When designing an application of any sort, the graphics API needs to present primitives and abstractions that translate well into efficient uses of graphics hardware. I'm sure people who deal with accelerating modern frameworks like Qt will tell you all there's to know about how broken the legacy API is when faced with modern hardware.

      --
      A successful API design takes a mixture of software design and pedagogy.
    7. Re:what about xorg? by smash · · Score: 2, Interesting

      Requirements for a display server were different 20 years ago. They weren't pushing around true colour bitmaps over the wan, video, openGL, etc. They were (realstically) rendering a few xterms, simple static bitmaps and not a hell of a lot else.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    8. Re:what about xorg? by evilviper · · Score: 3, Insightful

      Remove the legacy libs and interface... Fix X11's network transparency, making it perform more like NX... Improve the insane xauth system... make sure GTK and QT still work on it... call it X12 and release it to the public.

      Just because maintaining 90% of the legacy code is unnecessary, doesn't mean you need to throw it all away, including the other 10% that works well and 99% of the compatible applications use.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    9. Re:what about xorg? by Anonymous Coward · · Score: 2, Interesting

      I didn't see a whole lot of new hardware being added, but the code bloat was HUGE. like 3-5x the old sizes and still growing. X 3.3.3 was like sub 10 megs of archives, and it's now up to like 100(!)

      OH MY GOD, NOT, LIKE, 100 MEGS, WHAT WILL WE DO?

    10. Re:what about xorg? by evilviper · · Score: 3, Informative

      I don't know - isn't this basically what Wayland is doing?

      No, Wayland is throwing out ALL X11 compatibility, and removing network transparency, and all the programs that are designed to support it.

      I'm not sure anyone writes applications that directly speak X anymore.

      Fluxbox?

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    11. Re:what about xorg? by Arrepiadd · · Score: 2

      I remember in `99 I compiled XFree86 at home and it took 3 days to compile. Later when I first heard about X.org people were saying, they are modernizing the code. And sure enough, I tried it and it compiled in just a few hours.

      Well, if we consider that the initial version of X.org came out in 2004 (5 years after your XFree86 adventure) and we take into account Moore's Law (and other advancements) I'd say 98% of the speed improvement you observed is due to the computer you were compiling it in.

    12. Re:what about xorg? by serviscope_minor · · Score: 5, Informative

      The deal is that the way of rendering that both X11 and windows GDI support is 20 years behind the times.

      So?

      I hear this a lot. The thing is, the code might have been large and complex 25 years ago when X11 was new. The code hasn't grown. By modern standards it's small and simple. And if it's rarely used, then it will sit on disk un-paged and never getting in the way. Actually with the removal of many things which used to be but no longer are optimizations it's shrunk.

      Rarely used code does not affect performance.

      Nobody renders like that.

      I'm going to keep using xterm thanks. And I'd appreciate if you didn't make false claims about me.

      These days the X server doesn't support the primitives the application designers need, because to do so would mean reimplementing, for example, a path based compositing renderer.

      Firstly, X11 does support basic compositing now, and has for a while. Secondly, what's with the claim about "reimplementing"? One could easily make a cairo-x11 extension. In fact there used to be a x11-DPS extension so it's clearly possible.

      The legacy APIs are useless, they don't scale anymore.

      [citation needed]

      Anyway WHO CARES? Modern toolkits don't use the "legacy" APIs and old programs aren't big. So it's all happy and nice.

      IOW, if you code to X or GDI APIs, your application will perform poorly and there's no way for something on the implementation side of the API to fix it for you.

      Your claim is something like 20 years out of date. X11 has had a standardised interface to hardware accelerated OpenGL since before PCs even had 3D cards. Most people don't and didn't use it because even the "poorly performing" "legacy" APIs are entirely fine for almost all programs which sit there doing nothing until a key is pressed.

      When designing an application of any sort, the graphics API needs to present primitives and abstractions that translate well into efficient uses of graphics hardware. I'm sure people who deal with accelerating modern frameworks like Qt will tell you all there's to know about how broken the legacy API is when faced with modern hardware.

      Well, yes, but then again. they probably don't use "legacy" APIs, prefering to use things like XComposite, XFixes and so on and so forth.

      Basically, the X11 prorocol is really well designed, upgradeable and does a lot of things very well. One part of it (the original drawing protocol) was basically due for a major upgrade. That partly happened with XComposite and off-screen rendering. It could (and probably should) be continued with a higher level (e.g. SVG) drawing protocol.

      Other parts of the X11 protocol have aged very gracefully, and are still very good.

      --
      SJW n. One who posts facts.
    13. Re:what about xorg? by Kjella · · Score: 2

      I remember in `99 I compiled XFree86 at home and it took 3 days to compile. Later when I first heard about X.org people were saying, they are modernizing the code. And sure enough, I tried it and it compiled in just a few hours.

      If I recall correctly one of the first orders of business for x.org was splitting it up into modules rather than one gigantic monolithic project. Compiling the whole stack was not significantly faster, so most likely you're comparing compiling the core server to compiling everything including the kitchen sink but it allowed developers to work more independently and spend less time waiting for compiles.

      --
      Live today, because you never know what tomorrow brings
  4. Re:Hopefully another 25 years or more by colin_faber · · Score: 3, Insightful

    Actually it sort of does. Theres so much legacy garbage in the current X protocol that just wastes resources and makes it nearly impossible to maintain.

    As I don't actively maintain X I have no stake in this, but if it helps to motivate new generations of developers to dive into thats great.

    I can also note that I think the model Wayland is employing seems more sane, given what we've learned over the years of model and X driver development (DRI anyone?).

  5. Re:Hopefully another 25 years or more by Anonymous Coward · · Score: 2, Insightful

    Not you again. Wayland is being built by X developers, and several other prominent X developers have said it is a good thing.

    Would you say that you understand X11 A) better, or B) worse, than the people who actually write code for Xorg?

  6. Increased performance? by Smartcowboy · · Score: 3, Interesting

    Imagine recreating xlib so it doesn't communicate with an X server but directly draws things on the local screen, maybe in a multithreaded fashion. In such a scenario, the ability to share a display between many programs would be lost or alternatively a badly behaviored program could disrupt the other's windows. What kind of increased performance would be obtained (if any) by replacing IPC, as used in X11 (and in wayland too?) for drawing and use in process fonctions instead?

  7. How long? by whoever57 · · Score: 4, Interesting

    but how much longer will it take to replace X11 on the Linux desktop? Quite a while seems likely."

    Try never. Yes, I know that it should be possible to write a Wayland client that provides X11 server capability, but in that case, it is the Wayland client that is replacing X11, not Wayland.

    Seriously, though, the Wayland effort appears to be throwing out every advantage the X11 display had over the Windows display for a replacement that will probably never be quite as good as a Windows. I just hope that developers of programs which currently support X11 continue to support X11, or my life will get much more difficult. In fact, for much of what I do, without X11 support (and only Wayland display supported), I would probably be better off with a Windows desktop instead of a Linux desktop.

    --
    The real "Libtards" are the Libertarians!
    1. Re:How long? by MBCook · · Score: 4, Insightful

      Seriously, though, the Wayland effort appears to be throwing out every advantage the X11 display had over the Windows display for a replacement that will probably never be quite as good as a Windows.

      Emphasis is mine. Other than network transparency, what advantages did X11 have that Wayland doesn't? What other advantages did X11 have period?

      Losing network transparency will effect some people, but there are some solutions to that. I'd wager the majority of linux GUIs deployed in the world don't use that feature (between embedded stuff like TiVos, normal desktops, TVs running Linux, etc). But I can tell you from more than 10 years of following Linux development that no one seems to actually like X11. From what I've read the various GUI developers seem to love Wayland compared X and can't wait for it to take over. X seems to be a giant ball of mud that's always getting in peoples way, hampering performance, and a pain in the ass to configure. The fact that it handles hardware setup, drawing, input, network transparency, fonts, 3D, and so much more it's clearly not following the unix philosophy of small tools doing one job.

      Every time Wayland comes up, people come out of the woodwork to declare it a failure because it won't run over a network, but that's the only real gripe I've seen. You say there are others, I'm curious to know what they are.

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    2. Re:How long? by whoever57 · · Score: 5, Insightful

      Every time Wayland comes up, people come out of the woodwork to declare it a failure because it won't run over a network, but that's the only real gripe I've seen. You say there are others, I'm curious to know what they are.

      Network transparency is very useful for administering servers. It is very useful to run the various GUI programs that I run on various servers on our office network. Wayland supporters have suggested using VNC for that, but it misses the point, since that implies one VNC session per remote machine, which means multiple VNC sessions, each with its own window manager, issues with copying and pasting, etc..

      The other key advantage that X11 has: if the application is mis-behaving the application's window can still be controlled by the window manager. Ever seen windows on a Windows desktop that cannot be minimized? Wayland is bringing that to Linux.

      --
      The real "Libtards" are the Libertarians!
    3. Re:How long? by RightwingNutjob · · Score: 2, Funny

      Every time Wayland comes up, people come out of the woodwork to declare it a failure because it won't run over a network, but that's the only real gripe I've seen. You say there are others, I'm curious to know what they are.

      Every time the electric car comes up, people come out of the woodwork to declare it a failure because it won't go more than 100 miles without a long recharge, but that's the only real gripe I've seen. You say there are others, I'm curious to know what they are. Every time the web appliance comes up, people come out of the woodwork to declare it a failure because it won't do anything besides surf the web, but that's the only real gripe I've seen. You say there are others, I'm curious to know what they are. Every time the Segway comes up, people come out of the woodwork to declare it a failure because it's too expensive and can't actually live up to the promises of changing urban design, but that's the only real gripe I've seen. You say there are others, I'm curious to know what they are. Do the words "deal-breaking deficiency" mean anything?

    4. Re:How long? by smash · · Score: 2, Informative

      I think you'll find there are far more people doing this via RDP, ICA or VNC, quite happily than there are via X11.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    5. Re:How long? by whoever57 · · Score: 2

      I think you'll find there are far more people doing this via RDP, ICA or VNC, quite happily than there are via X11.

      RDP on a Linux server? I don't think so.

      As I pointed out, VNC is a solution to admin a single server, as soon as you have more than one, then you need multiple VNC sessions, which is ugly.

      What I typically use is a single VNC session on one machine in the LAN, from which I run lots of X11 programs on various different systems (sending their displays to the VNC session). Then I can access the VNC session from home or work, giving me persistent sessions, reasonably fast WAN access, all my admin programs grouped together in one set (the VNC session) all without having to deal with multiple VNC sessions.

      --
      The real "Libtards" are the Libertarians!
    6. Re:How long? by phantomfive · · Score: 2

      They didn't.

      --
      "First they came for the slanderers and i said nothing."
    7. Re:How long? by JDG1980 · · Score: 2

      Network transparency is very useful for administering servers

      Which is fine if you want Linux to be purely a server OS. If you want Linux to have any success in other markets, then having a smooth graphical user experience is almost always more important than remote GUI admin capabilities.

      What's wrong with retaining X11 for servers only, and switching to something more appropriate for other Linux installations?

    8. Re:How long? by Tailhook · · Score: 3, Informative

      Network transparency is very useful for administering servers

      You're in luck then because Wayland will provide exactly the sort of efficient remote display necessary for this and most other use cases. Here is the man himself, Kristian Høgsberg, demonstrating a prototype of this. Watch and learn and try to make allowance for the fact that this stuff has probably never run beyond any anything other than Kristian's development machine.

      Wayland supporters have suggested using VNC for that

      The blind leading the blind. Wayland, by its nature, has precise information about what it composites. Kristian explains how this can will be used to make efficient, round-trip-free remote displays work.

      Eventually Wayland will provide a better remote desktop experience than X. Please know of what you speak before you condemn it.

      --
      Maw! Fire up the karma burner!
    9. Re:How long? by jabuzz · · Score: 2

      Really, perhaps you might try using a search engine. The xrdp and x11rdp combination provide an X11 server than spits out RDP and the necessary middleware. More than five years old...

  8. Re:Good enough for Ubuntu by socceroos · · Score: 4, Interesting

    Yep, the issue with constantly pushing forwards and looking for the next new thing means that you can periodically make a bad choice. Shuttleworth, while some of his descisions haven't been the best, has been instrumental in pushing the Linux desktop to where it is today. Linux has never enjoyed so many desktop users. That brings good and bad, but its still an overall positive.

  9. Re:Why are graphics awesome on Android? by NotQuiteReal · · Score: 2

    ...or... they have google money to hire artists.

    I, for one, am a nerd who appreciates what artists, managers, and, yes, even sales folks do to sell what I make.

    Usually you get what you pay for. Sometimes you get less, sometimes you get more.

    --
    This issue is a bit more complicated than you think.
  10. Re:Hopefully another 25 years or more by Anonymous Coward · · Score: 5, Insightful

    Unfortunately, developers are the second worst group for understanding what users need. The only part of X11 that people need is network transparent remote display, but that's the one part that the developers are absolutely hell bent on removing.

  11. Re:Why are graphics awesome on Android? by Andy+Prough · · Score: 3, Interesting

    I agree that the artwork is much better, but the responsiveness under Android is also clearly better, fonts are much nicer, videos and games play smoothly and flawlessly. Hell - my Android phone puts my Linux workstation with its $200 nVidia graphics card to shame.

  12. Application and Screen on Different Machines by billstewart · · Score: 5, Interesting

    The important feature about X Windows was Network Transparency - You could run an application on one computer with its screen output and keyboard and mouse input on a different computer. Sure, there are other ways to do it - lots of ssh sessions, or web browsing (especially with AJAX etc.), or competing window systems like NeWS, or screen emulators like VNC and Windows Remote Desktop - but fundamentally it's a lot cleaner to have some kind of network-transparent window system than to have an application need to drive a "screen" on its own machine.

    25 years later, do we still need this? Yes! Virtual machines are taking over the computer business, so you can't expect the application to be running on your desktop (even if it _is_ running in a VM on top of your desktop), screens are a wide range of different sizes and capabilities (laptops, tablets, big monitors, etc., which often don't resemble the machine the app is running on), web browsers are getting used in increasingly complex ways because Windows didn't have a convenient X interface, and there's more and more ugliness around, and more waste of resources trying to emulate things that X did adequately well.

    There are lots of good reasons to replace X, but Network Transparency is still the core feature, even if you want the application to have more control over the screen and its associated hardware than we had back in the 1980s, or if you want to move processing functions to different points between the client and the server (e.g. NeWS and NeXT's Display Postscript did some things differently, and Plan 9 and its successors had their own opinions about how to implement everything), but if Wayland doesn't offer Network Transparency yet, it's not an adequate X replacement.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:Application and Screen on Different Machines by mellon · · Score: 4, Insightful

      Nobody ever uses network transparency. Well, okay, perhaps a few thousand people do, but rounded to the nearest 1% of the total number of Windows or Mac users, _zero_ people use it. Network transparency should be a layer on top of the window system for those who need it, not something that's present and causing breakage by default.

    2. Re:Application and Screen on Different Machines by Anonymous Coward · · Score: 5, Interesting

      Speak for yourself. I was just using the 'network transparency' features of X the other day, as well as NAS (Network Audio System) and going 'thank god this made it so easy!'

      Literally all you had to do was have the nasd daemon running on the client and fire up the app on the server. Same deal with X. I was able to spit out my app with full audio across the network. I wouldn't want to try Quake or something over it, but I'm sure that given some work on X11 and 10G ethernet I could probably do that as well.

      Honestly my problems at the moment are less with Wayland and more with them constantly fucking things up on the X11 front with the incessant streams of changes and deprecated features. In order to run MESA now you have to have a c++ compiler, and can't use any hardware other than Intel, AMD, or Nvidia (via nouveau) since all have been deprecated due to the removal of DRI1. Additionally despite YEARS of opportunity, there's still no inline way to have apps change display resolutions, so for those of us with 8/16 bit games we can't just fire them up, we have to run them in a dedicated 8 or 16 bit color X server, which oh by the way the latter doesn't work on any supported 3d hardware (MAYBE MAYBE R100/R200, although bother of those drivers are somewhat unreliable nowadays), and oh by the way we broke 8 bit palette support, so the former is in greyscale even on color displays (I ran into this after upgrading X on one of my laptops with an IGP345 on it. Horribly slow at 16/32 bit color, but with lots of 8 bit apps that'll run smooth).

      It's not wayland that's FUBAR, it's how they've been handling X for the past however many years that is. They keep talking about 'improving' on X, but they can't even keep X displaying the same features it had 10 years ago due to inadequate testing, so what do you expect them to do in another 5 years when wayland is really 'mature'? Break more shit because it didn't matter to them and tack on new crap you don't care about.

      That's just my 2c as an X user since the late 90s, having followed Utah-GLX, the starting of Mesa, The XF86/Xorg schism, and all the BS since.

    3. Re:Application and Screen on Different Machines by tibit · · Score: 4, Interesting

      It goes the other way: unless you design for network transparency from day one, you're not going to get it and have it perform well. There's no way to decently get network transparency as a layer on top of the window system. VNC and RDP are horrible kludges and perform like crap.

      --
      A successful API design takes a mixture of software design and pedagogy.
    4. Re:Application and Screen on Different Machines by 10101001+10101001 · · Score: 3, Insightful

      And yet, Network Transparency is one of X's biggest weaknesses as well. The truth is, X's chief purpose in providing Network Transparency was in providing thin client/mainframe/whatever support over a LAN/WAN. This is incredibly transparent in a few ways: (1) there isn't a lot of heavy effort put into minimizing the data stream, (2) nearly any sort of network hiccup will kill a connection and hence the client--something almost assured on the internet for programs running long enough--, and (3) you can't move a client from one server to another. To speak of your VM example, in a more idealized version of Network Transparency, the VM(s) hosting MS Office could be moved from one machine to another and users would at most notice a pause during the checkpoint/transfer/client address update. That's something entirely out of the reach of X. Meanwhile, I think people are more interested in things like (a) starting a program at home on their desktop, (b) continuing to use it on their smartphone, and (c) finally moving to a desktop at their destination. Conceivably, the desktop itself would not be running most the programs but simply be a nexus of links to clients on the phone, on the desktop, and online; ie, the point of the desktop would be more to coordinate what is being run as it has more capacity to checkpoint/maintain/log.

      In short, I don't think X really lived much up to the network transparency ideal. Sure, it can fool you for a while, but the times it fails it fails pretty catastrophically. X was really conceived of in another time which ironically presumed higher reliability. I certainly agree that Wayland stepping further away from network transparency is the wrong path. It just seems clear that pointing at X isn't really that useful considering how many things it gets wrong for today's environment.

      --
      Eurohacker European paranoia, gun rights, and h
    5. Re:Application and Screen on Different Machines by oursland · · Score: 5, Informative

      Hi Bill,

      You have a good point, but unfortunately the X system is fundamentally flawed at the technical level for the purpose you describe. When X was originally developed, graphics were simple aliased lines and bitmapped fonts. In the modern computer environment, this has presented itself as a grave hindrance to the usability of X.

      Modern applications depend on graphics toolkits, such as GTK and Qt, which render in to X pixbufs and finally those are rendered on the display. The process by which this happens depends upon copying these toolkit-rendered images from buffer to buffer several times, quite needlessly to fit within the X framework. This is moreso true over a network connection. The very nature of modern programs has progressed way beyond what X was intended and optimized for. It is like trying to use a MUD infrastructure designed for textual interaction as the basis of a modern GUI framework, it simply isn't the right tool for the job.

      An anecdote, this weekend I decided I was going to work from home. So I ssh into my work computer (6 miles, 20+ Mbps connection), and fire up an X forwarded my graphical editor session. Things were slow, but not unusable until I did something that caused a series of tooltips to be rendered. The session locked up for 2 minutes before I killed it. I then fired up a terminal-based text editor and got to work. X's network transparency was not beneficial. But there are many network protocols that have been designed for the purpose of remotely operating modern GUI applications such as VNC and RDP. These have been designed from the ground up to provide the functionality we expect on today's systems.

      And before I finish my tirade, I, too, was a die-hard X fan until I decided to see what the Xorg folks had to say. Keith Packard (a lead developer on Xorg, inventor of Cairo and much more that you depend on when you fire up your workstation), has been a hard proponent of Wayland. He's given many talks outlining the design failings of X and how Wayland resolves them. I recommend you google "Keith Packard Wayland" and see what you find.

      Regards,
      oursland

    6. Re:Application and Screen on Different Machines by smash · · Score: 3, Insightful

      X11 "network transparency" sucks. VNC is better. RDP is better, ICA is better. And network transparency can be provided in X11 compatibility mode with a daemon if required - like it is on OS X and Windows.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    7. Re:Application and Screen on Different Machines by complete+loony · · Score: 3, Interesting

      Ok, so X11 sucks for local display, and it's not very good for remote display either.

      I believe the plan going forward for local rendering with Wayland, is for the toolkit to render directly. I imagine that each toolkit might end up writing their own network transport for remote access, to give a better experience than just falling back to X11.

      So what I think we need, is for the core team for each major toolkit to sit in a room and try to design an extensible network transport that they can all agree to use. With a core set of features, and perhaps some toolkit specific extensions. Perhaps ending up with a process similar to the way HTML has evolved over time.

      --
      09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
    8. Re:Application and Screen on Different Machines by Aighearach · · Score: 2

      I can't for the life of me imagine that it's actually efficient to have a bunch of fancy animations and shadows and transparency and 3D effects, or why people who care about network transparency would be impressed by those sorts of doodads.

    9. Re:Application and Screen on Different Machines by Aighearach · · Score: 4, Informative

      Note that the X.org developers are not the original X11 developers, they are just the developers of a replacement implementation that copied the old *nix code using modern techniques. They did a good job and I appreciate their work, but they aren't the reason X11 was in use when they started X.org and it really says nothing about their understanding of why the X11 features are there, or what the needs of other developers are. They know about their own code, and they features they use in their own clients.

      You mention the bandwidth of your connection, but it is actually the latency that you should be measuring when you're doing remote GUI stuff. Even running GIMP remotely in like... 2000, on a 53.3 modem, it was the latency that would make it suck rather than the bandwidth.

    10. Re:Application and Screen on Different Machines by aaron552 · · Score: 3, Informative

      X11 doesn't "push push bitmaps around" unless you direct it to do so.

      And it pretty much always does so nowadays given that's how most modern window managers and toolkits interact with X (all rendering is done offscreen and X is simply asked to draw the resulting pixmap)

      --
      I had a sig once. It was lost in the great storm of '09.
    11. Re:Application and Screen on Different Machines by spitzak · · Score: 3, Informative

      Wayland does exactly that and should be very good at network transparency.

      Yes it sends images of the windows. This is a win because it is much much simpler than any scene description and it will not be obsolete 1 year from now. It does seem like it is more data, but for modern GUI that is in fact the most efficient way to represent the picture being drawn. You are aware that many modern apis draw MORE than one polygon per pixel?

      Advantages over how X11 does images is that it avoids round trips and does not require perfect end result images, allowing compression. It also has the necessary calls to do incremental update (ie the client can say what part of the window has changed since last time, something missing from X11 images).

    12. Re:Application and Screen on Different Machines by LordLimecat · · Score: 3, Insightful

      VNC and RDP are horrible kludges and perform like crap.

      I get the feeling youve never used RDP.

      And if X11 is so great for network transparency, why does Citrix base all of its terminal stuff on ICA (which RDP is based off IIRC) rather than just using X11's native abilities?

    13. Re:Application and Screen on Different Machines by oursland · · Score: 4, Insightful

      Keith Packard has been working on X terminals since 1983 and worked on the original X reference implementation . Since Keith has been there since basically the beginning of the project, you're completely off base with your accusations of a lack of understanding. I don't care who wrote line 1 of XFree86; I trust this man more about the operation of X and its shortcomings.

      Bandwidth is very much a concern as well. All the toolkits render locally to X pixbufs and transmit them across the line. In particularly graphics heavy systems, such as GIMP, these pixbufs won't compress as well, so line compression won't help as much to cut down on bandwidth concerns.

  13. Re:Might be faster than you think by Anonymous Coward · · Score: 2, Informative

    Wayland is not compatible with X11. You can recompile a GTK program so it runs on Wayland, but existing X11 apps do not run on Wayland (they are working a crappy-ass Mac OS X like shim).

  14. Re:Hopefully another 25 years or more by Anonymous Coward · · Score: 2, Insightful

    I can also note that I think the model Wayland is employing seems more sane, given what we've learned over the years of model and X driver development

    Well I can note that I think client-side decorations is so much bollocks.
    Wayland seems to abdicate responsibility on a lot of stuff that really needs to work across the desktop consistently, and that X was solving commendably.

  15. Re:Hopefully another 25 years or more by RightwingNutjob · · Score: 2

    It's native to the windowing system on both the local and remote machine and there is absolutely nothing I need to do to either system to pop up a remote display other than insert a 'DISPLAY=remote-host:0.0' in front of the command line.

  16. Re:Why are graphics awesome on Android? by ADRA · · Score: 4, Interesting

    Google invested a lot of money to get their Application client stacks to work very well with a sane OpenGL implementation, and OEM's shipping Android make sure that there are sane OpenGL implementations on Linux. The later cannot be said for any of the desktop players that have dropped the ball due to lack of interest for well over a decade.

    Android proves that graphics on Linux can be quite successful functional, but it also proves at how little interest existing industry heavy weights have at supporting Linux in general. The question now looms, can AMD, Nvidia, Intel, and co continually give half hearted attempts at supporting Linux when their markets are now in more danger than they ever have before? Can they continually look a blind eye to one of the fastest growing consumer electronics segments in a long while? Time will tell, and the drivers (and standards bodies) will be the tell tale sign that they can truely embrase a world outside Windows PC's.

    --
    Bye!
  17. Re:Hopefully another 25 years or more by tqk · · Score: 5, Insightful

    I guess all of the X11 developers that are the ones developing Wayland don't understand X11 that well.

    "Don't understand X11 that well", I don't know (though I'd doubt they don't understand X). As for whether X11 needs replacing; not here, no.

    I do worry that they're ignoring the ideals of X, and focusing too much on cellphone/*pad interfaces, as opposed to the original X ideal (any device *should* be able to handle it, regardless of what your particular prejudices might be).

    Does Fluxbox run on Wayland? If so, I'll try it.

    --
    "Tongue tied and twisted, just an Earth bound misfit ..." -- Pink Floyd.
  18. Solution searching for a problem? by Lawrence_Bird · · Score: 2, Insightful

    So.. X11 needs to be replaced with something shiny because of...? Seems the response most often stated is the code base is a mess. Why not just clean that up instead? And has others have noted here, remote usage is still important and no, VNC is not the same thing.

  19. Re:Why are graphics awesome on Android? by Andy+Prough · · Score: 3, Informative

    You are absolutely correct on all points. Its a shame that graphics support for Linux has been treated so poorly by so many companies for such a long time. Once again, it points to the clear need for a Desktop version of Android -- with the superior graphics performance and the enormous number of apps, it would be an instant game-changer in the PC market.

  20. Re:Might be faster than you think by tibit · · Score: 2, Insightful

    Existing X11 apps? Pray tell, what would those be? Does anyone care about xeyes anymore? I mean, I'd have thought that everything of note uses a framework/library of some sort that abstracts X11 away? Sure you need to port the framework, but the applications won't even know anything changed...

    --
    A successful API design takes a mixture of software design and pedagogy.
  21. Re:Why are graphics awesome on Android? by Enderandrew · · Score: 2

    Vista was released 5 years ago. The very first release of Compiz had that problem, but Compiz was handling 3D desktops and openGL at the same time just fine 5 years ago.

    --
    http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
  22. Sometime around 2000-2002 Windows and OSX added by Burz · · Score: 4, Insightful

    ...network abstraction layers to their GUIs, specifically to enable people to mirror and share their desktops efficiently.

    The mundane, non-vertically integrated *nix world still doesn't have this ability after all these years. X11 can't mirror/share, its also laggy over broadband connections, VNC is primitive and slow, etc. The NoMachine people have claimed they can support screen sharing in NX, but I haven't seen a working example yet (and those features are in the proprietary version anyway); otherwise they did a good job of making X11 usably network transparent for use cases not contained within a single LAN (i.e. most situations).

    Personally, I'm tired of seeing all the hand-waving about X11's network transparency. It doesn't help in the vast majority of instances where people want to share an app or screen during a teleconference. X11 is not advanced in this respect -- just sadly out of touch. It mainly addresses the rather outdated use case where you have a handful of engineer types who open a CLI and type an ssh command, possibly fiddle with the display variable, then type in the desired app as a command so they can run one expensive, customized app on a server in a specially cooled room 3 floors down.

    1. Re:Sometime around 2000-2002 Windows and OSX added by Electricity+Likes+Me · · Score: 2

      Also because *nix in a lot of cases feels behind Windows in this. The Windows RDP implementation does a lot of things very right - it's quick enough to use over the web, it lets you take over the local console session (and lock out the local console but also restore it - seriously, try getting this to work on any Linux distro) and it can also support multiple remote users.

      Linux distros can "kind of" do this, but no one's really made it work right yet, and as I understand it an "X screen" type function simply doesn't work right yet (I can't teleport an app on my desktop to a remote server, nor bring it back, and if I open a remote X desktop I can't easily get it to run on the local screen). x2go comes closest, but it's still not entirely there yet.

  23. Re:Hopefully another 25 years or more by Anonymous Coward · · Score: 3, Interesting

    Or, we could just keep X. Much better.

  24. Re:Hopefully another 25 years or more by anomaly256 · · Score: 3, Insightful

    Remote vanilla X11 over even today's internet is fucking slow as balls and about as painful as being kicked in them. Even on a lan it can be pain if your client is generating too many unneeded events (try eclipse over ssh x11 forwarding some time). X11 does facilitate the use of, say, NX and VNC though to mitigate the problem. Does Wayland? If so then bring it on I say. As long as the end result is the same or better, how is it a bad thing?

  25. Re:vnc is faster by Electricity+Likes+Me · · Score: 2

    Which is why we have nxproxy which optimizes those things away.

    If we wanted to do something new to X11, the best thing would be to get the NX modifications rolled in as a supported capability so Remote X would just work with them.

  26. Re:Hopefully another 25 years or more by Anonymous Coward · · Score: 2, Interesting

    Unfortunately, this is not what people are objecting to. The problem is not that you cannot map X11 on-top of Wayland windows and run remote applications displaying on Wayland, the problem is that you cannot transparently display Wayland-windows on another machine.

    On OS X and on Windows, it is not possible to display the native apps on a remote machine using X11.

    The lack of network transparency will lead to every developer needing to ship two different applications, one linked to Wayland and the other to X11, then everyone need to download the correct app and install the one depending on their machine, i.e. on the machine that will be accessed remotely, install the X11 version on others install the Wayland version. Sure, we all know that you usually use GTK/Qt for applications, and while some of the issues could be solved by the GTK and Qt developers by cleaver dynamic linking to the display manager, often this works so-so and some apps will not be compatible with this, so you still need to run double testing for all your applications.

    They should have started with defining the Wayland system in a way that was network-transparent, they could even have updated the protocols and made it more suitable for modern applications (i.e instead of sending delta-bitmaps, send the scenegraph updates for the window instead).

  27. Re:Why are graphics awesome on Android? by caseih · · Score: 4, Insightful

    I looked through the other replies to see if I could mod someone up, but unfortunately no one answered your question and most posts missed the point.

    The difference has nothing to do with the kernel. The difference in in the graphics architecture and how the subsystem works with the hardware.

    First, Android's graphic subsystem is probably closer to Wayland than X11. The reason X11 is slow (or rather seems slow) is because X11 is an asynchronous API. That means things like window resizing and widget redrawing are all done without any synchronization, at roughly the same time, but not in any particular order. This means that you often get stuttering and tearing. So oddly enough if you use a compositing manager on Linux (any modern desktop), moving windows around is very snappy. Resizing windows is much better than it used to be because the widget toolkits have gotten much better at things like event compression, and even using synchronization extensions to X11 to time redraws to coincide with refresh rates. Also the API involves a lot of round-trips to the server, so over the network it's extremely chatty and subject to latency.

    As allude to, X11 is a client/server architecture, which is a very powerful concept, but also causes some problems in making things appear smooth and fast (the asynchronous issue I just mentioned). X11's most powerful feature, is network transparency. I can remote log into any number of machines, and run individual apps and interact with them all on my desktop. Sure vnc or rdp can do this sort of thing, but not at an app (really per window) basis. I run remote apps as if they were local. I use this feature every day. It's not perfect; doesn't connect my local drive to the remote app, and it doesn't do sound. And if you're not on a LAN, it's better to use FreeNX.

    Android is pretty much just OpenGL compositing onto a frame buffer screen. This can be very fast and smooth, and Wayland will likely be as fast and smooth. But it lacks the remote network transparency of X11.

  28. Re:Hopefully another 25 years or more by anomaly256 · · Score: 4, Insightful

    Never say never :)

    I hear you, honestly, but do keep in mind that sometimes change can be a good thing too. If they do it right, and it works everywhere, and gives you everything you had before but more.. why hold back? Sure, stay with what works for you for now but don't write off your options forever-more just because they're not there yet. I remember a time when I wouldn't own any phone but a Nokia, and wouldn't use a laptop because they were too underpowered and the screens were terrible. I wouldn't use anything that wasn't x86 and 32bit due to compatibility and stability. I wouldn't use wifi when ethernet was available because it was way slower and unreliable. I wouldn't consider using the internet on a phone due to cost and performance. All that's changed now and I couldn't be happier that it has

  29. Network transparency is VERY important by coder111 · · Score: 2

    To anyone who complains about not using network transparency of X server, I do use all the time and I do need it. And so do thousands of system administrators and power users.

    I hope Wayland has some kind of network transparency support. It doesn't have to be X protocol, it could be something new and improved, but there must be a network transparency support.

    --Coder

  30. Re:Hopefully another 25 years or more by aaron552 · · Score: 2

    It's native to the windowing system on both the local and remote machine

    I thought that modern linux toolkits (GTK and Qt) and windows managers (eg. kwin and metacity) render windows entirely offscreen and just tell X to draw the resulting pixmap. Remote X just sends that bitmap over the network to the remote host. There seem to be little efficiency to be gained by using remote X over VNC in this case

    there is absolutely nothing I need to do to either system to pop up a remote display other than insert a 'DISPLAY=remote-host:0.0' in front of the command line.

    You need to have a command line to start with. If you're starting from nothing, opening a VNC session is not really harder than opening an SSH session.

    --
    I had a sig once. It was lost in the great storm of '09.
  31. Re:Hopefully another 25 years or more by Yomers · · Score: 2

    In my experience this network transparency of X11 is not really usable over the internet anyways - it's just too slow. I'm using x2go for linux remote desktop. Maybe it's useful over LAN, but is there many people who use it? Do you use it yourself?

  32. Re:Hopefully another 25 years or more by sjames · · Score: 2

    For one thing, I get just the application window, not a whole extra desktop in a window. I can freely cut and paste between the remote application's UI and a local one.

  33. Re:vnc is faster by ls671 · · Score: 2

    Factor in the risk to get disconnected from the remote running application depending on the type of link that you have. With VNC, one can just reconnect to the VNC server.

    A little details on X just for the ones who might still wonder:
    Remote X:
    Your Desktop runs the X server and you run client applications or even a window manager on remote machines. When the link goes down, remote applications have no longer a DISPLAY and usually crash.

    VNC:
    Your Desktop runs a VNC client to connect to a remote machine running X in a virtual buffer. The client applications display in a virtual X server on the remote machine. If the link goes down, just reconnect to VNC server and your applications are still running in that remote X virtual server.

    --
    Everything I write is lies, read between the lines.
  34. All losing the point via narrow focus by dbIII · · Score: 3, Insightful

    There seem to be little efficiency to be gained by using remote X over VNC in this case

    VNC is one to one, but with X you can have a pile of windows open from a pile of hosts. It may not be important to many here but it's the entire reason why my workplace has linux on the desktop machines and why the MS windows machines all have X as well.
    The funny thing is despite all the "cloud" hype people are forgetting one of the major advantages of being able to use the resources of more than one computer via networking. VNC is the dumb terminal approach, which is fine for many tasks, but it has limitations.

  35. Re:Hopefully another 25 years or more by Yomers · · Score: 2

    But yeah, it would be great if they would keep network transparency in Wayland but made a new protocol for it, fast enough for normal usage over the internet, supporting adjustable lossy compression, making coffee, BJ on demand and add a few other useful futures. Just wait, let me raise my army of Atomic Mutant Coders, it will be their second task.

  36. Re:Hopefully another 25 years or more by Dr_Barnowl · · Score: 2

    Agreed ; it's slow, even over a LAN. It's fine as a stop-gap measure (like for VirtualBox, where the GUI VM configurator is is much easier to use than the command line), but it chugs.

    For serious remote desktop usage on Linux, the only thing I've tried that's actually any good is NX, although that is the only thing I've tried. Microsoft's RDP protocol is excellent. NX is the only thing that comes close to it.

    I suppose I might be making some mistake with how I've got it set up, but I've never seen applications run over ssh -X perform any other way but clunky and slow.

  37. Re:Might be faster than you think by serviscope_minor · · Score: 4, Insightful

    Existing X11 apps?

    Yes.

    Pray tell, what would those be?

    Well, all the good window managers for a start. One of the HUGE advantages of X11 is that any user can freely replace the window manager. The move to Wayland would involve client side decorations (nothing inhernet in wayland, but the collective insanity of the Wayland developers seems to be pushing this policy), which massively limit what the compositor could realistically do.

    X11 allows GUIs as diverse as Unity and ratpoison. I sit in a happy medium with FVWM, and I like it very much. That I would lose with Wayland.

    And I still use xterm (I prefer it to any of the more modern terminals), xfig (still has some must have features) and xv (seriously? this program wasn't new in 1994! why do all subsequent views suck compared to it). I also have the odd hacked up thing using raw X11 because I find it very simple to use.

    (Oh yeah and network transparency.)

    <rant>

    At this point a whole bunch of people ususally come out of the woodwork and tell me how only 1% of users or whatever use that feature and most users don't care and blah blah blah.

    Well guess what Linux is never going to "win" the desktop. It is forever going to be used by people like me who take the effort to seek out something different. It used to be hacker friendly, letting you do stuff because you could, not blocking it because only 1% would use it or some other bullshit reason.

    Hobbling Linux in a misguided attempt to capture some "market" that it will never capture will only wreck it for the rest of us who actually like it for what it is aren't using it because we're too cheap to buy a Mac or Windows or whatever. I love it because I find I do weird 1% stuff all the time. If I want OSX I know where to get it, and I really, really don't want it.

    This is also the reason behind why firefox and gnome seriously break if you try to use (for instance) NFS mounted home directories. Because only 1% of users want it and so it is no longer well supported (and gives really idiotic error messages).

    --
    SJW n. One who posts facts.
  38. Re:Hopefully another 25 years or more by Anonymous Coward · · Score: 2, Informative

    Warning, sliders spotted! In WHICH universe is xterm fast? Try "time cat " on xterm and something sane like Konsole and you'll see for yourself that xterm is multiple times slower.

  39. No kidding by Sycraft-fu · · Score: 2

    For all the crowing about network transparency, it is not the killer feature to most. In terms of network management MS's RDP easily wins out. Reason is that it works well and supports low bandwidth situations very well since it isn't just a pixel-based protocol. However for ease of use and cross platform goodness, nothing beats VNC. That's what our Linux guru uses, in the situations where a command line isn't enough, not remote X.

    Frankly, given the difference between local interconnects and network speed, I don't think network transparency is the kind of thing to worry about. Rather, make a good local display system, and then add the ability to serve it out over the network through whatever means are appropriate, much like Windows does with RDP. The focus should be on good local display, as that is really what matters.

  40. Re:Hopefully another 25 years or more by DrXym · · Score: 3, Insightful
    X11 absolutely needs replacing. It was designed for the time when a desktop consisted of 2D rectangles controlled by a damage model, where fonts were raster graphics and apps were content to draw graphics with simple primitives. It's simply not suited to for a modern compositing desktop. Much of it isn't even used any more - GTK and QT render their stuff to surfaces, and use GL extensions to recompose the display. X11 is just the arcane glue that holds all this together and imposes its own overheads through extra context switches. It should be done away with.

    It doesn't stop X11 from running as a client over Wayland for those who need a remote app and working in practically the same way as it does now. But it does mean the vast majority of people do not need to run it and do not incur the performance penalties from doing so.

  41. Missunderstanding the issues by Trevelyan · · Score: 5, Informative

    The two main complaints I see discussed here appear to derive from some fundamental misunderstandings about what Wayland is.

    Wayland is a Protocol and an optional helper library to implementing that protocol. This protocol says nothing about net work transparency, in both the sense of enabling or prohibiting it. It also says nothing about client decorations. The key points here is not to make a decision for or against any particular technology or methodology and then be stuck with that decision for the next 20 years, like we are with X.

    How or if, either of these work is all down to the compositor. The reference compositor 'Weston' does not do network transparency and leaves window decoration to the client or its toolkit. However none of the big desktops, i.e end users, will be using this compositor. For example KDE will continue to use Kwin as their wayland compositor, and KDE have already clearly said that Kwin will be decorating their windows and not the clients!

    As to network transparency, all windows are drawn to their own back buffers, and where these buffers will be eventually displayed is also the choice of the compositor, and it might well just decided to send them over a network connection. e.g. like what VNC does.

    I think if you base your opinion on what other people say, including me, then maybe you shouldn't comment? All of this is discussed first hand on the Wayland web site and/or mailing list.

    Unfortunately since I've posted a bit late, I doubt many will read this...

  42. Re:Hopefully another 25 years or more by delt0r · · Score: 2

    I use it all the time over LAN and yes even the internet. I don't find it slow. But then i am not trying to play quake or anything like that.

    --
    If information wants to be free, why does my internet connection cost so much?
  43. Re:Hopefully another 25 years or more by Hatta · · Score: 2

    We ran X on terminals far weaker than the average cell phone in the 90s.

    --
    Give me Classic Slashdot or give me death!
  44. Re:Why are graphics awesome on Android? by LordLimecat · · Score: 2

    Maybe my memory is faulty, but for all the faults Vista had "Aero CPU usage" is not one I recall-- since the ENTIRE POINT was that the desktop was graphics accelerated (hence, no cpu usage).

  45. Only sort of mostly, but not always. by billstewart · · Score: 2

    So just this morning I had to reboot my Win7 machine, because I had an RDP session that wouldn't die. Was it because I hibernated the machine to bring it in to the office, disconnecting the VPN in the process? I don't know, but the "Are you sure you really want to close the window, we'll save the session for you, is that ok?" dialog box wouldn't go away and wanted to be on top.

    Win7 really is a lot better than XP, and XP was a lot better than 95/SE/ME were, but I still have to reboot it a couple of times a month. And stuff doesn't die for no good reason anywhere near as often as it used to (except Firefox, but our work IT department insists on using older versions with long-term support :-) (And at least Firefox saves its sessions relatively cleanly when it dies, unlike IE8.) And since I'm sometimes using an external monitor as well as the laptop screen, when I'm just on the laptop, sometimes there will be windows I can't open because they're on the Other Screen. If I were using X, these things wouldn't be problems.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks