Skip to content
Eric W. Brown edited this page Jun 14, 2018 · 2 revisions

Welcome to the nim-wasm-helpers wiki!

This is a place to keep information on using Nim with WebAssembly that can be a little more fluid and informal than the main documentation. Obviously, there are a lot of things that need to be changed to make the samples better. This area will also be used for considering those.

Obvious improvements:

  • The structure of the Makefiles is good for an introductory tutorial, but isn't ideal for real use. In particular the funny way the special variant is called with its reference to the primary Makefile wouldn't be done for a real project. Instead the specific changes would be directly brought into the primary Makefile, and it would potentially reference another one with more global settings.

  • The emscripten_run_script handling should be all placed in an external Nim file that can be used by all Nim source files that need it.

  • Support needs to be added for SDL.

Miscellany

There's a blog post that discusses this topic in more detail: Spiria Nim -> WASM Blog Post

Clone this wiki locally