[HN Gopher] Project Wayfield - The JDK Wayland Desktop on Linux ...
       ___________________________________________________________________
        
       Project Wayfield - The JDK Wayland Desktop on Linux [video]
        
       Author : Tomte
       Score  : 37 points
       Date   : 2024-03-29 20:31 UTC (2 hours ago)
        
 (HTM) web link (inside.java)
 (TXT) w3m dump (inside.java)
        
       | zamalek wrote:
       | I'm using Rider with this. There's a Nix flake in the Wayland
       | testing issue in the jbr repo for those interested. It's looking
       | really good so far, I'm very much enjoying the reduction in
       | latency.
        
       | exabrial wrote:
       | TIL Wayland had an X11 compatibility layer... bless ya'll's
       | hearts! That could not be easy.
        
         | chungy wrote:
         | The X server is fairly portable, and XWayland is built directly
         | from the X.Org sources.
         | 
         | It also has ports to Windows and Mac OS X ...
        
           | Quekid5 wrote:
           | Plus... Wayland is literally the work of many of the original
           | X.org devs.
        
           | Arnavion wrote:
           | There are lots of xwayland-specific bits needed to handle it
           | running under a compositor but still acting as a privileged
           | client compared to regular Wayland clients.
        
         | maxhille wrote:
         | And AFAIK the only part of Xorg where development happens in
         | the recent years.
        
         | kelnos wrote:
         | It's probably not as difficult as you'd think. Embedded X
         | servers have existed for a long time (that is, running an X
         | server as a client of another X server), and running them
         | rootless (without displaying a "desktop" of their own) is also
         | nothing new.
         | 
         | From there it's just a matter of writing the code to allow it
         | to be a wayland client, which isn't that hard, and then doing
         | translation between the wayland event callbacks and X events.
         | 
         | That will at least get you something basic working. There's a
         | bit more to it, of course, and those details are why it's still
         | actively maintained and worked on, but it's not too crazy.
         | 
         | The wayland compositor itself does need to special-case
         | Xwayland, which brings some complexity.
        
       | yjftsjthsd-h wrote:
       | Based on the title, I thought this was going to be a wayland
       | compositor on the JDK; it's not, it's work to make java (swing?)
       | render to wayland without xwayland. Which is definitely a good
       | thing, just not what I expected:)
        
       | sgt wrote:
       | Demos remind me of something from 2003 though.
        
         | pron wrote:
         | You're not too far off the mark. That demo, SwingSet2, was
         | written in 2007 (and possibly still uses the look & feel of
         | that time, I think), but you can run it, unchanged and probably
         | without recompilation on JDK 22 as well as the Wakefield build
         | (native Wayland) it seems.
        
         | paltaie wrote:
         | That would be because that demo (SwingSet2) is probably that
         | old!
         | https://docs.oracle.com/javase%2Ftutorial%2Fuiswing%2F%2F/lo...
         | 
         | Edit: close enough, 2007
        
       | znpy wrote:
       | From the title it seemed to me it was something of a revival of
       | that old thing, Project Looking Glass 3D
       | (https://en.wikipedia.org/wiki/Project_Looking_Glass).
        
       ___________________________________________________________________
       (page generated 2024-03-29 23:00 UTC)