185 points · by acrazyloglad · 10y ago · 46 comments
A simple overview and link to Github makes a good pitch.
Curious how it compares to [1] bspwm and [2] sxchd? Which offers a minimal tiling window manager and daemon controlling keyboard shortcuts. Each has a small C codebase that's simple and easy to understand, unlike most other tiling WM.
The config is excellent too and integrates well with [3] xmobar for a very clean and lightweight desktop, well suited for ArchLinux.
[1] https://github.com/baskerville/bspwm
For durden alone, it's a bit hard to invite the comparison on a level other than feature, since I have to cover the bases that xrandr, xset and a whole lot of other x* tools provide - but current and planned features is tracked in the checklist if you scroll down in the readme at [2]
[1] https://www.youtube.com/playlist?list=PLGqpKIeZOSp6quf6CmMOr... [2] https://github.com/letoram/durden
I guess I'm missing the positioning inside the existing linux-ecosystem.
Feedback: Having to whitelist applications in a database before being able to launch it sounds like a pain in the ass, and I predict that would be a feature that will absolutely prevent adoption.
The actual setup is a bit hairy on most distributions because everything brings in X as a dependency, but I have both Alpine Linux and Ubuntu16.04 running it here without X (or dbus or pulseaudio or systemd or ...) Here [1] is some proof and [2] are my rough notes on how I did that.
The whitelist part is entirely optional, it's only there for really security paranoid stuff later on (sandboxing policies and chain-of-trust starting). ARCAN_CONNPATH=durden /some/bin style 'launching' is entirely possible.
The second to last slide goes into the relation with Wayland, but there will be support for connecting applications that speak wayland, and other protocols for that matter.
[1] http://cubeupload.com/im/lmBeMk.png [2] https://github.com/letoram/arcan/wiki/linux-egl
Amusingly enough, the reason we've been stuck with X.org/Xfree86 all these years is the hard coupling between the graphics drivers and the server implementation - and while different, of course, it is very much like that in Android land too, lower level GPU interfaces act as a very good control and lockin mechanism.
Hidden in white text at the end there. Sounds fun!
But when you need to add those last 10% of features back do you realize how the crufty bloated code you tried to avoid became that way.
You run into the overflowingly crufty "last 90%" work mainly because your new thing still has to plug into an ecosystem of other components that are, themselves, old and crufty. If, however, you've defined your rewrite-project boundary to contain the entire ecosystem of those components, such that you get to redraw all the component boundaries and protocols with fewer redundancies and smaller surfaces, then you really can keep your 10% code—at the cost of having to write that 10% of the code for at least ~9x the number of codebases you were intending to.
This is what Plan9 managed to do: draw the correct boundary to simplify Unix, by putting all of Unix in scope for rethinking, eschewing the last 10% of the functionality because the other, redefined components now support the same thing in simpler ways. (See, for example, the way the Acme editor does menu commands.)
It's also—whatever you think of it—what systemd is doing, sort of consuming components of the Linux userland and leaving cleaner service boundaries in its wake. The sheer scope of that effort can make the project look bloated—but people forget to compare the codebase with the combined codebases of all the projects it took to have equivalent functionality before.
The tricky part is that "actually worth rewriting" is a higher bar than you would think. And even when you clear that, finding the sweet spot between "you ain't gonna need it" and "you ain't gonna need it until the rewrite is 95% done" isn't easy.
https://tronche.com/gui/x/xlib/utilities/XRotateBuffers.html
Mechanism, not policy, huh?
Personally I hope that when people get past the new-old 'sandboxing will solve security' trend going on, there'll be more people looking at the HCI connection instead of just saying "well its a user problem".
Some parts of its novely actually give me sort of a TempleOS feel, I suppose because it feels/looks so "different". I really loved watching the Senseye video (https://www.youtube.com/watch?time_continue=294&v=WBsv9IJpkD...), though it's something that I suppose could be made in other environments as well. The translators reminded me of edlib by Neil Brown: http://blog.neil.brown.name/2015/07/edlib-because-one-more-e... (http://blog.neil.brown.name/), there's a cool video of edlib somewhere as well. Although the concept of separate views on the same underlying data is not novel, it's a shame such things aren't widely available (or in use) that I know of.
Despite being a fan of statically typed languages, of all scripting languages I like Lua the best. The language is lean but powerful and LuaJIT is a coders' dream. I don't understand whether one would be forced to create all "apps" (appls?) in Lua.
Arcan is definitely written to be used without the Lua parts as well, and on the project timeline the final pieces of the puzzle is libifying the engine. The reason why it is not like that right now is just that the internal engine interfaces are not in a stage where I would 'commit' (and document and test) an interface that others might end up relying on.
I also much prefer statically typed languages, I consider Lua somewhat "the best among the worst". One nice thing with its VM integration API is that it lends itself to be swapped for another VM without too much work rediscovering a type model. If I would have the luxury of more time, binding the engine to Haskell would be high on the list.
"Background-wise, it is losely mentioned in a rather confusing article I wrote a few years back (search around for Retooling and Securing Systemic Debugging) as part of some thesis work, and later influenced on ideas presented in Voyage of the reverser by Sergey Bratus and Greg Conti, and on Christopher Domas work on Cantor Dust which also takes inspiration from Aldo Cortesis visualization works."
I was just browsing yesterday for some sci-fi desktop interfaces [0, 1].
And I would describe Arcan et. al. as a whole as curiously interesting. The only thing I know of like it is PicoGUI, a 2000-era display manager that could go as low as 1bpp on a ~20MHz 68k running uClinux (specifically this: https://www.flickr.com/photos/micahdowty/albums/721576270325...), while also being able to handle 24bpp and even some bits of OpenGL. It was abandoned in 2003, and the author did a writeup of the worst of the design fails (some were... notable) at http://picogui.org/papers/ghost-of-picogui-past.html.
While I would firmly categorize PGUI as a subset of your work, I thought I'd mention it because I think it tried to reach similar goals to what you've done, and you may potentially find the source code vaguely interesting to scavenge through on a rainy day (although it might take eg a Debian 4 VM to build cleanly without fuss). http://svn.navi.cx/picogui/trunk/ https://sourceforge.net/projects/pgui/files/picogui/ https://sourceforge.net/projects/pgui/files/OldFiles/ (hidden directory I found?)
I have no idea if this will be interesting, I figured I'd mention it just in case.
On-topic - definitely a cool project and one that I haven't heard about actually, added to my queue of weekly source-code readings.
I'd also consider DirectFB similar, and another project that I just have in my vaguest of memories (think they used a project-name like Cairo that got google-CVed out of existence from the more recent one) from the 2001-02ish era. They tried to attack X back then, but fell victims to the driver situation (but they had arbitrarily rotated windows!).
One of my stronger personal influences is BeOS though - Compare https://www.youtube.com/watch?v=BsVydyC8ZGQ to https://www.youtube.com/watch?v=3O40cPUqLbU&feature=youtu.be... :)
If you mention your project for persons with disabilities, couldn't you get funds or something?
Just saying this because on the last slide you mentioned lack of resources, time and motivation.. :)
PS. Any reason for 2 accounts? Acrazyloglad for posting and crazyloglad for comments
The posting account was simply because I throw away VMs with browsers immediately after use and I chose a hard to remember password without an email :)
I'm very curious what you meant by this, if you can elaborate. The first thing I thought of was skydiving, incidentally. :D
Also, just to clarify, you browse exclusively inside VMs that you then immediately destroy? That's neat, although it sounds like a lot of work.
Not that much work, I got a victim machine that is just some scripts, qemu and VNC. It boils down to a keypress to get a new instance activated and when the VNC connection terminates the image is killed. I still place too much trust in the browser..