Hacker News new | ask | show | jobs
by wahern 3 days ago
The X protocol is semantic[1] and when used as originally intended is very fast even on 1990s networks. But GUI toolkits ended up heavily relying on local rendering and shipping bitmaps over the wire, which is why Wayland advocates argued bitmaps are good enough.

It's kinda like the way PostScript evolved into early PDF which evolved into modern PDF, where pages are basically assemblies of prerendered images. The original, semantic aspects are still there, just not used, or rather abused to dumb it down.

[1] At least in the way you mean. Semantic like SVG, which is still literal, just abstract.

5 comments

I remember running the original Citrix client for Windows over a 14k modem.

It worked remarkably well, the only real nut was the typical “splash page” on launch, which was typically a large bitmap. Those stalled pretty hard, but once you got past that and up and running, apps were quite smooth over the crummy bandwidth.

> It's kinda like the way PostScript evolved into early PDF which evolved into modern PDF, where pages are basically assemblies of prerendered images. The original, semantic aspects are still there, just not used, or rather abused to dumb it down.

that is definitely not the case for any sensible use case. PDF that's just bitmaps is a shitty hard to use one

SVG is also semantic; you can write (and even read!) SVG in a text editor just fine. Not every SVG is semantic though; many of them are just a single <path>.
Yeah, my biggest pain with inkscape. Editing and saving a clear handwritten SVG there meant no more semantic SVG afterwards.
"you can write it in a text editor" is not the definition of "semantic", you can also write PPM bitmaps in a text editor
You can also write AVI videos, there's even a webcam package for emacs.
The X protocol has some semantic drawing primitives, but modern applications rarely use them. Partly because they don't look very good, and partly because it is often easier to draw bitmaps, and the X primitives can't make use of the GPU.
I am pretty sure many primitives are hardware accelerated.
Modern GPUs don't do 2D acceleration, there isn't any hardware to map those primitives to. Layers such as Gallium map the old primitives onto software routines running on the GPU.

Some SoCs such as those from Rockchip and Allwinner do have 2D acceleration provided by their display controllers separate from the GPU but there isn't much software support for them.

I think you meant Glamor, which implements X11 acceleration through OpenGL, replacing hardware-specific DDX drivers; Gallium is the abstraction layer between Mesa drivers and graphics APIs. Don't confuse with Glamo, which was the Neo Freerunner's GPU and had its own DDX driver :)
Time to bring back https://en.wikipedia.org/wiki/Display_PostScript ?

I remember seeing a DPS terminal around 1988 or so. It was pretty.