rustbn.js icon indicating copy to clipboard operation
rustbn.js copied to clipboard

Compile to webassembly for speed

Open axic opened this issue 7 years ago • 5 comments

axic avatar Jul 29 '18 11:07 axic

@axic would asm.js still need to be a fallback? Or can it be completely dropped in favour of wasm?

HenryNguyen5 avatar Mar 30 '20 20:03 HenryNguyen5

I think it is still needed as a fallback.

axic avatar Mar 30 '20 20:03 axic

Also please note #29 has an attempt at this, but it is not finished. Feel free to pick it up.

axic avatar Mar 30 '20 20:03 axic

How would you feel about using wasm-bindgen? It would eliminate the need to maintain any boilerplate code. The generated wasm artifact can then be converted to an asm.js like representation via wasm2js, seen here.

HenryNguyen5 avatar Mar 30 '20 21:03 HenryNguyen5

It should be fine, when this work started wasm-bindgen wasn't around or wasn't mature enough.

axic avatar Mar 30 '20 21:03 axic