An idea I can't get out of my brainmeats is that someone should combine multi-stage compilation (think Factor's compile word) with operations analysis solvers, so the system could adapt to available resources without manual intervention. Like, it could rebuild/relink itself to maximize battery life when unplugged. This also sounds like something enterprise database folks must have thought about, so maybe I should look into those.
Conversation
Notices
-
Csepp 🌢 (csepp@merveilles.town)'s status on Monday, 02-Jan-2023 10:39:10 JST Csepp 🌢 -
Csepp 🌢 (csepp@merveilles.town)'s status on Monday, 02-Jan-2023 10:39:08 JST Csepp 🌢 @mathew Guix is a better implementation of that idea IMHO, see the "tune" flag and related package transform.
But what I'm talking about requires cooperation from the runtime, the compiler, and the type system. It's not a distro. -
mathew (mathew@universeodon.com)'s status on Monday, 02-Jan-2023 10:39:09 JST mathew @csepp To a certain extent that's the appeal of Gentoo: You can have your entire OS compiled to optimize for performance, optimize for RAM usage, or somewhere in between. If you have a strange CPU variant (I once had a VIA C3 system) you can have the OS compiled to make best use of its particular features. What's lacking is having the adjustment happen automatically. I think in the battery life case, the plan would be largely ruined by how much battery would be used up recompiling the OS.
Adrian Cochrane repeated this.
-