@dotheda:

> Also, I would do WebAssembly but the process seems a lot more complicated, so 
> I'll wait until it gets proper support, official or not. Any news on that?

I don't know about official support, but it has been done often enough, even by 
@Araq, although many users are on Linux and there is a bit of a twist required 
for use on Windows. As I am on Windows, I explored this, with the results [as 
per my forum post here](https://forum.nim-lang.org/t/3667#32669).

As mentioned in that post, it works well, but adds a bit of a level of 
complexity in that you can no longer use the dom library directly from code and 
will likely have to call into the HTML DOM by using emit of JavaScript code if 
doing it from "asm.js" or by building two dependent projects when using 
WebAssembly, with one producing the JavaScript and the other producing the 
WebAssembly; alternatively, one could produce the required minor JavaScript 
"glue" code just in JavaScript using the produced HTML "runner" code as an 
example.

It doesn't look to be that hard and I'll likely be doing something along these 
lines shortly.

Reply via email to