|
|
|
|
|
by abecedarius
3212 days ago
|
|
Not a problem: you can ask the canvas for an arraybuffer to draw on, and pass that to the wasm code. I did this with asm.js in place of wasm (which didn't exist yet) in http://wry.me/hacking/Turing-Drawings/ and you can judge the speed yourself. (As that page describes, there was some overhead from calling from JS to asm.js at least when asm.js first came out. I don't know the current figures.) |
|
So the way to do it today would be WebAssembly -> asm.js/js -> canvas