Frame – the first Linux Assembly X server
29 points
2 hours ago
| 6 comments
| isene.org
| HN
ToyKeeper
13 minutes ago
[-]
It's funny to see someone using a LLM as a compiler, making it convert higher-level operations into assembly, instead of just using a compiler.
reply
yjftsjthsd-h
38 minutes ago
[-]
I am loving the shift from 'X11 is too big and messy to ever reimplement' to 'there are multiple wildly different X servers being built from scratch'.

Also, has anyone run it successfully? I got as far as building and running with --display and then running `DISPLAY=:7 dwm` and `DISPLAY=:7 alacritty`, but I can't seem to focus the window to actually type. Given that the author posted a picture of the thing actually running a live environment and claims to actually be using it, I'm pretty sure this is a me problem but I haven't been able to figure out where it is. Mouse works, too.

reply
mintflow
1 hour ago
[-]
this is impressive, even with claude i think the guy have enough deep understanding of the OS and the varioius topic make it works

recently i also rewrite most of the app's underlying core function to rust, just like the guy do for the phone

perhaps i should also do more stuffs given codex reset too quickly

reply
system7rocks
55 minutes ago
[-]
Interesting.

I've never quite found that Linux is more optimized on battery-powered machines for energy savings, even though supposedly there is a lot of room to tweak and optimize settings -- from selecting a low resource window manager/DE to turning off various services to switching up power management utilities. But this does seem like an approach that might produce that kind of fruit?

reply
cogman10
11 minutes ago
[-]
The really unfortunate thing about linux is the defaults tend to be not battery friendly.

For example, I recently got another 1 hour out of my old laptop's battery because I didn't realize for the intel video card driver I needed to add some modprobe flags to get it to load up a firmware binary blob. Doing that enabled hardware video decoding, faster performance, and lower power usage.

There's a bunch of setting like this that you need to make sure are turned on to get the best battery performance. Some OSes are better about toggling them than others and mine (gentoo) let's you discover later that you forgot to turn them on :).

reply
c0balt
33 minutes ago
[-]
You might want to take a look at TLP[0]. It, among other things, backs the power mode/profile panels in Gnome/KDE.

Many distros already try to push good defaults, but you can do a whole lot when optimizing for a mobile experience. You can also do some fun stuff with it, like running a script[1] when going from ac->bat power to, e.g., turn of a service, lower refresh rate or reduce brightness.

[0]: https://linrunner.de/tlp/index.html [1]: https://linrunner.de/tlp/usage/run-on.html#run-on-ac-run-on-...

reply
Tiberium
49 minutes ago
[-]
Was there a reason to add an AI-generated image to the top of the article? :(
reply
stonogo
40 minutes ago
[-]
The article about an AI-generated X11 server? Why not?
reply
mikepavone
17 minutes ago
[-]
Article reads like it was AI-generated too
reply
vinceguidry
55 minutes ago
[-]
Vidar wrote one in pure Ruby.

https://github.com/vidarh/ruby-x11

reply
yjftsjthsd-h
42 minutes ago
[-]
At a glance, that looks like an X client library, not an X server?
reply
vinceguidry
27 minutes ago
[-]
Ah! You're right, I had read somewhere that he'd implemented his own X windows but I suppose I was mistaken.
reply