Add shims for wasm32-freestanding compilation #1
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kelton.halbert/zfp!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "freestanding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds shims so that ZFP can be compiled for WASM32-freestanding targets.
Freestanding builds are nice because they don't require loading the WASI runtime, which has some bloat, performance hits, and browser support nuances that make it less than ideas. This makes it much easier to create a ZFP WASM binding that operates purely on compressed/decompressed bytes.
This also means that any need for Emscripten can be bypassed entirely, relying purely on Zig to compile to the webassembly target.
LGTM