Skip to content

Tags: AssemblyScript/as-float

Tags

1.0.1

Toggle 1.0.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Browser support + marginally smaller modules (#1)

* Shave ~20 bytes from math.js file

This is just a small micro-optimization using converge and inline.always
to remove a few bytes off of the final .wasm size. Sadly, we can't use
"shrinkLevel": 3 since that gives imprecise results.

* Fix the message for the 10^-5 test

This confused me for a couple minutes when testing out "shrinkLevel": 3.

* Use `fetch` and `WebAssembly.instantiateStreaming`` to support browsers

Browsers don't have Node.js's Buffer, nor do they have any reasonable
way to decode base64. Luckily, `WebAssembly.instantiateStreaming` allows
using the results of `fetch`, which in turn can accept base64 data URIs.

1.0.0

Toggle 1.0.0's commit message
first commit