On 2017-02-18 02:24, John Siegrist wrote:
> Hello All,
> Being fairly new to Idris, I was wondering if anyone has considered
> compiling Idris down to the fairly new WebAssembly? The WebAssembly
project
> has decided to target for C/C++ code as its first language so adapting
> Idris should be a matter of emitting the intermediate C code from the
Idris
> compiler and running it through the WebAssembly C/C++ compiler.
I don't think it's quite as simple as that. The runtime also needs to be
compatible with WebAssembly. I believe that means (among other things)
no threads -- at least for the time being.
(I have no idea whether Idris actually requires such support in the
emitted "backend" language. Given that there's a JS backend, perhaps
not? Either way, it's probably a little more complicated than it sounds
to provide a WebAssembly backend.)
> Does this sound like an idea worth pursuing? Having a choice like Idris
> as an alternative to JavaScript/NodeJS as the single full-stack seems
> like it would be a good outcome.
Certainly -- it would be amazing to have WebAssembly backends for all
the things.
Regards,