I think it's a nice idea. I haven't heard of emscripten before, but I am going to take a look at it.
There are a couple of issues which we would have to tackle however:
First, we should see if klisp compiles (and works correctly!) with clang. I seem to remember to
have used a couple of gcc-isms, that may or may not be implemented in clang. Only some minor
stuff, like strucutre packing or alignment, but I would have to check.
The other is the speed factor. We won't know 'till we try, but klisp is slow as it is, I wonder how an
extra layer of interpretation (even if js JIT compilers have come a long way) would add to that.
I'll add it to my TODO for this summer (that's southern hemisphere summer, btw). I spent the entire
semester in a frenzy to finish my Bachelor Degree, and I wasn't been able to do much programming, but
I'll be back in the game soon, and we can expect some major additions to klisp over the coming months.
In the meantime, if anybody wants to try this, please report back on your experience. If this works out,
I'll be very happy to add it to the klisp page crediting whoever made it possible.
Regards,
Andrés Navarro