I read about Exwm, which compiles the declarative XML spec into Emacs Lisp socket calls in order to build a window manager. At first it sounded like a neat idea that was way too crazy to actually work.
I ended up giving it a shot on a whim, and imagine my surprise when it actually ended up working flawlessly.