Not necessarily recomending this approach to solve your problem, but there was this interesting experiment in writing a completely custom vdom on top of Elm, without hacking the compiler or kernel modules: