News for hackers. Stuff that matters.
Re:The Broadway Windowing System by nsonha on Tuesday January 30, 2024 @07:19PM (#39197975)
Wait, does this mean I can use any spare tablet, laptop or smart TV as second monitor for, say M1 running Asahi? Wonder what's the performance for non-game usage?
Re:The Broadway Windowing System by ivanjermakov on Tuesday January 30, 2024 @10:12PM (#39199337)
Re:The Broadway Windowing System by nsonha on Tuesday January 30, 2024 @10:48PM (#39199612)
can a VNC client acts as an additional display?
Re:The Broadway Windowing System by zamadatix on Wednesday January 31, 2024 @12:54AM (#39200462)
The VNC client can display whatever the server sends it. Doesn't even have to actually be images of a desktop at all.
Re:The Broadway Windowing System by nsonha on Wednesday January 31, 2024 @02:24AM (#39201024)
The question should've been "can a vnc SERVER serves as a virtual display?".

On that, I found https://github.com/kbumsik/VirtScreen

Re:The Broadway Windowing System by zamadatix on Wednesday January 31, 2024 @12:23PM (#39206546)
Many environments also include native virtual display support so you don't even always need a special VNC server. On Linux projects like that tend to just automate it but sometimes it's pretty easily to do manually. E.g. on Sway you just define the virtual display the exact same manner as you do a physical display and then VNC in to only that display. On other operating systems like if it was running native macOS projects tend to do more of the heavy lifting around making the virtual displays actually happen.
Re:The Broadway Windowing System by em3rgent0rdr on Tuesday January 30, 2024 @07:25PM (#39198026)
Apparently was around back in 1997 (but via a browser plug-in): https://web.archive.org/web/19970707154444/http://www.opengr...
Re:The Broadway Windowing System by HeckFeck on Wednesday January 31, 2024 @05:35AM (#39202175)
> X11R6.3 just may be the most powerful innovation ever introduced to the World Wide Web.

Now there's a quote for the ages.

Re:The Broadway Windowing System by lizknope on Wednesday January 31, 2024 @09:06AM (#39203922)
That's immediately what I thought of too
Re:The Broadway Windowing System by alnvdl on Tuesday January 30, 2024 @07:55PM (#39198278)
I've used this to develop GTK applications in the browser using VS Code + GitHub Codespaces. It works quite well:

https://alnvdl.github.io/2023/11/18/a-cloud-based-vs-code-wo...

Re:The Broadway Windowing System by lxe on Tuesday January 30, 2024 @08:08PM (#39198387)
This is very cool! Gonna give this a shot.
Re:The Broadway Windowing System by sho_hn on Tuesday January 30, 2024 @08:37PM (#39198617)
Qt supports this too:

https://doc.qt.io/qt-5/webgl.html

I've used this to let friends on IRC paint on my LED shelf (https://github.com/eikehein/hyelicht), which has a Qt-based embedded and phone app GUI, over the internet. Cheap fun!

Re:The Broadway Windowing System by kelnos on Wednesday January 31, 2024 @12:37AM (#39200370)
I think Qt's is "better", in that GTK's just streams pixel data to a HTML canvas. Looks like Qt actually streams the WebGL drawing commands to the browser, which does the rendering itself. Certainly that's still not super fast, as the drawing commands are sent over a socket, vs. directly to the GPU's GL driver... but presumably more performant than rendering in the app (even if using the GPU to do so), and then copying the pixel data into network buffers.

Either way, it's a cool feature in both toolkits. (Not trying to belittle GTK here.)

Re:The Broadway Windowing System by jabl on Wednesday January 31, 2024 @12:46AM (#39200414)
AFAIU for 'heavy' 3D applications like AAA games the BW over the PCIe bus to the GPU can be a lot higher than what comes out of the cable to the screen. So just sending (compressed) pixels is not necessarily a bad remoting strategy.

Though for something simple like just rendering GUI widgets the opposite may very well be true.

[dead]
Re:The Broadway Windowing System by marginalia_nu on Tuesday January 30, 2024 @08:46PM (#39198684)
It's like trying to photograph a mirror. It looks like the application you build with it.
Re:The Broadway Windowing System by Waterluvian on Tuesday January 30, 2024 @10:07PM (#39199312)
Is this sending rendered images as binary over websocket and then into a HTML5 canvas? Or is there something especially clever going on?
Re:The Broadway Windowing System by j16sdiz on Tuesday January 30, 2024 @10:14PM (#39199354)
Re:The Broadway Windowing System by purpleidea on Tuesday January 30, 2024 @10:40PM (#39199550)
I remember when Alex Larsson announced this as a POC. I tried it out, it was pretty neat and worked well. I was always sad it kind of languished or didn't get any attention after that.

So I'm curious, is it back with a vengeance? Are people working on this?

See here from 2010: https://blogs.gnome.org/alexl/2010/11/23/gtk3-vs-html5/ More here in GTK4: https://blogs.gnome.org/alexl/2019/03/29/broadway-adventures...

Re:The Broadway Windowing System by boomskats on Tuesday January 30, 2024 @11:51PM (#39200082)
I'd be interested to know this too but I'm not hopeful. I imagine it's up here because it was mentioned in the discussion on the New renderers for GTK[0] post a couple of days ago.

[0]: https://news.ycombinator.com/item?id=39172377

Re:The Broadway Windowing System by pests on Wednesday January 31, 2024 @01:36AM (#39200707)
Around and around we go.
Re:The Broadway Windowing System by hollerith on Wednesday January 31, 2024 @01:32AM (#39200686)
When I tried it, I couldn't figure out how to make it non-blurry.
Re:The Broadway Windowing System by extraduder_ire on Wednesday January 31, 2024 @07:57AM (#39203199)
Make sure the resolutions match, maybe. Either by fullscreening the browser window, or resizing it down to match the resolution that's getting sent.

It might be bugged and change the sent resolution when you do this though. (based on my limited experience with x11 forwarding)

Re:The Broadway Windowing System by junon on Wednesday January 31, 2024 @04:05AM (#39201628)
Love Broadway, use it on WSL1 with QEMU.
Re:The Broadway Windowing System by prmoustache on Wednesday January 31, 2024 @06:14AM (#39202438)
Can you recursively run gnome web / epiphany on itself using broadway until you run out of port numbers or memory?
Re:The Broadway Windowing System by prmoustache on Wednesday January 31, 2024 @06:20AM (#39202476)
replying to myself. Nope, because broadway doesn't support OpenGL apparently:

* (epiphany:13774): WARNING *: 12:18:59.172: Disabled hardware acceleration because GTK failed to initialize GL: The current backend does not support OpenGL.

Re:The Broadway Windowing System by worksonmine on Wednesday January 31, 2024 @07:22AM (#39202914)
We've come full circle. Web apps wrapped in Electron as native apps and native apps run in the browser.
Re:The Broadway Windowing System by mozball on Wednesday January 31, 2024 @11:03AM (#39205395)
It says "using HTML5 and web sockets." Does this mean the application freezes if the connection to server is disrupted?

Could developers use this to make web-based apps along-side desktop clients? If so , Desktop frameworks like GTK and Qt should focus on this idea more to reclaim the desktop from the monstrosity that is Electron.

Re:The Broadway Windowing System by lern_too_spel on Wednesday January 31, 2024 @11:54AM (#39206053)
I'm not sure how this could reclaim the desktop from Electron. If anything, this gives Electron developers another option by running a local server in the app and rendering it in Electron.