Now that we are getting closer and closer to the finish line for Nimony, I'd like to start a thread here for the js backend.
We need it (IMO). It's one of the features that drew me in about Nim ;)
I personally don't have the time to help, but I do have some coin and I'm happy to support commercially.
Curious to hear everyone else's thoughts about having js integrated and maybe discuss assembling a task force for this lol?
I completely agree, javascript frontend is really important thing and I hope that nimony will have it. But besides it, I would like to have wasm backend as a separate backend and as used inside js backend:
proc jsProc
proc wasmProc {.wasm.}
proc myCoolAlgorithm*() {.wasm.} =
jsProc()
wasmProc()
This will speed up some algorithms. In addition, you can add
import foo {.wasm.}
Because annotating each procedure in the foo module can be annoying. By the way, the wasm backend is useful in itself, for example, a situation may arise when you need to run someone else's (not always safe) code in a sandbox. And wasm copes with this and at the same time works quite fast with its jit I started working on one a while ago ...
This is awesome!