-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use WASM as the target? #31
Comments
There is unfinished https://github.com/devongovett/glsl.js which attempted that. |
@dfcreative agree, that the main performance drop is because of CPU is not GPU, but 2x average improvement maybe worth pursuing. Here is my comparison of asm / non-asm version of FFT: |
Interesting! Would be nice to make comparative benchmark over various implementations |
@dfcreative I see that my package is already in the list ;) |
@drom your benchmarks are way more dependable and demonstrative :) |
@dfcreative I need to rerun it with node v6 / v7 |
mmh but what about WebAssembly? 🙂 |
@gre I am watching for the WebAssembly area, do you have any easy getting-started resources by any chance? Seems like entry barrier is too expensive for ordinary js-developer |
yeah I don't have A LOT of experience in it frankly, but i've found these series of article quite interesting: https://hacks.mozilla.org/2017/02/a-cartoon-intro-to-webassembly/ |
I've been learning and implement WASM the past week or so for Elixir. It has been quite fun! My main resource so far has just been everything Web Assembly has put out.
What I can say from my limited experience: The spec only describes a few basic values, some instructions for working with them, and a module format to define the program and reusability. There is some typing aspect to it, and also validation, but I haven't delved that deep myself. It does seem to be quite early though and still active in development (the binary format wasn't in the spec when I first started investigating!) so it is probably worth watching the repos to see that discussion. Note that they have several repos dedicated to sections of the spec like webassembly/gc for garbage collection, and so on. Hope this helps and I hope to collab on some WASM stuff with people! |
Can be done via lino, which can be a better fit |
asm.js: http://asmjs.org/spec/latest/
Is supported chrome and firefox for quite some time.
Does it make sense generate it?
The text was updated successfully, but these errors were encountered: