This is a really cool project. I'm currently working on a tutorial on how to use it with Buildroot Linux and Tiny C Compiler, where I now have tcc in the browser. v86 is unable to debug with gdb (v8, 10.2, 11.2) (though it works if you use gdb to intercept gdbserver from another device), so I'm experimenting with strace, and have written a basic streaming parser for read/writev syscalls. What strace does is intercept printf/puts/gets/readline etc and by parsing its output, one can create a simple but highly stylable "console" in html that prints and reads text input. No support for TUI's, this is where xterm.js shines.<p>Compilation in tcc with a file of ~300 lines of code, linking to a library, takes roughly 50 ms. Compiling the entire libharu library takes 23 s. It's ~120.000 SLOC but where most is long arrays of encoding data.<p>I have used musl as toolchain, but will look into uclibc because of a weird problem: printf without \n in the end doesn't display the text before something creates a newline. And that could be readline, in which case you'd get:<p><pre><code> Pizza
What's your favourite food?
</code></pre>
At least I think this is because of musl where there's a problem with the syscall writev: <a href="https://www.openwall.com/lists/musl/2013/05/05/9" rel="nofollow">https://www.openwall.com/lists/musl/2013/05/05/9</a>.<p>Really looking forward to get the tutorial out and I hope it'll be with the strace based console!