News for hackers. Stuff that matters.
Re:Opossum: Cross-platform web browser written in Golang, op... by pjmlp on Monday February 20, 2023 @11:46AM (#34869840)
Curious to see how they will get WebGL and WebGPU over file handles.
Re:Opossum: Cross-platform web browser written in Golang, op... by klodolph on Monday February 20, 2023 @12:27PM (#34870385)
Does Plan9 even have hardware OpenGL implementations to begin with?
Re:Opossum: Cross-platform web browser written in Golang, op... by pjmlp on Monday February 20, 2023 @12:37PM (#34870480)
No, and having a file based driver for graphics also doesn't help that much.

https://marc.info/?l=9fans&m=111558695515839&w=2

Re:Opossum: Cross-platform web browser written in Golang, op... by badsectoracula on Monday February 20, 2023 @04:42PM (#34873334)
OpenGL already has a client/server model (i remember a friend of mine once showing me running some OpenGL stuff from his SGI to his Linux machine... or the other way around, it has been years :-P) and i can't think of anything in WebGL that couldn't work in the same way (though i only used WebGL very little). Sending commands and data over a file handle fits this fine.

Note sure about WebGPU though.

Re:Opossum: Cross-platform web browser written in Golang, op... by pjmlp on Tuesday February 21, 2023 @02:17AM (#34877818)
Yes it did, if the only thing one cares about is OpenGL 1.x like performance.

X Windows did not come up with shared memory communication and hardware mapping extensions just for fun.

Re:Opossum: Cross-platform web browser written in Golang, op... by badsectoracula on Tuesday February 21, 2023 @05:12AM (#34879154)
You aren't going to be sending vertices through the pipe every frame.

You are going to be sending commands to create the vertex buffers and upload textures (with the relevant data) and then most of your commands will be referencing those. Which is basically exactly what discrete GPUs already do anyway.

IIRC, unlike OpenGL, WebGL doesn't even allow you to do things in another way.

What X Windows did isn't very relevant because the use is very different. It'd only be somewhat comparable if the WebGL programs would treat WebGL as a way to stream new frame data for every frame (e.g. video). Also all X Windows communication with clients is done via commands sent through unix sockets which have similar performance to pipes.

Re:Opossum: Cross-platform web browser written in Golang, op... by pjmlp on Tuesday February 21, 2023 @07:15AM (#34880225)
GPUs and game consoles use DMA with command buffers for transfers, and synchronization points, not file handles with IO APIs.
Re:Opossum: Cross-platform web browser written in Golang, op... by badsectoracula on Friday February 24, 2023 @01:41AM (#34921609)
Right but WebGL and OpenGL without vendor-specific extensions does not expose those so they are irrelevant here.
Re:Opossum: Cross-platform web browser written in Golang, op... by p9idf on Tuesday February 21, 2023 @02:11AM (#34877770)
Why do you believe it is impossible to display a web page of text on screen without a 3D graphics accelerator adapter card? Haven't you ever used a computer without a Nvidia in it before? A young kid like you might be surprised to learn that there was a time not so long ago when most computers didn't have 3D accelerator cards, and that they were still more than capable of rendering a page of information and driving their displays.
Re:Opossum: Cross-platform web browser written in Golang, op... by pjmlp on Tuesday February 21, 2023 @03:51AM (#34878522)
Sure it is possible to display the page with text, it is matter of what compatibility level one wants to achieve in regards to modern Web platform in pages that might have 3D and media content into them, which includes some forms of CSS styles as well.

Ultimately everything can be done via software rendering as well, depending on how much one is willing to wait.