Spasm - webassembly libary for single page applications

Sebastiaan Koppe mail at skoppe.eu
Sat Oct 13 07:22:02 UTC 2018


On Saturday, 13 October 2018 at 04:34:28 UTC, Nick Sabalausky 
(Abscissa) wrote:
> Nifty, I'll have to look into this. Any idea what it would take 
> to get this doing some WebGL? (Or playing audio?) Or is this 
> more for HTML-ish sorts of stuff?

This is more focused on HTML rendering, but you can do anything 
that you can do from JS, you just have to write JS glue code.

WebGL is based on and follows the OpenGL ES (Embedded Systems) 
spec, which is a subset of OpenGL. So if you have the API 
definitions you are already half done. The other half is writing 
that in JS and calling the actual WebGL.

If you want to do it right now you can use vladimir's 
dscripten-tools project, which is based on emscripten.

I just don't like emscripten because it has a complex toolchain 
(D->LDC->(patched)LLVM->asm.js->binaryen->wasm) and results in 
bloated code.


More information about the Digitalmars-d-announce mailing list