> How much hassle to target both OpenGL on desktop and WebGL? Can nim help > target both in any way or is going through WebGL going to negate all > advantages of being able to target both C and JS?
That is exactly what [nimx](https://github.com/yglukhov/nimx) does. There's a tiny porting layer in portable_gl.nim. Truth be told though that asm.js is a better alternative for heavier apps, and that is why nimx supports emscripten target as well.