Support the custom-page-size proposal in Talckwasm
The WebAssembly custom-page-sizes proposal allows Wasm modules to have page sizes of either 65536 or 1.
It is in implementation phase and supported by the runtimes wasmi and wasmtime.
It has also recently been added to the LLVM linker wasm-ld so it's now possible (albeit annoying) to compile Rust Code to WebAssembly while using this proposal.
I am using this proposal for my wasm files because I'm working on running wasm on architectures where 64KiB of RAM is hard to come by and 128KiB is not happening. I'm also using talc because afaik it is the only maintained allocator that advertises WebAssembly apps as a usage scenario.
Currently, I am using a static arena but I'm thinking that using a grow-able heap would allow me to use less RAM in most contexts.
I am willing to work on this (It should only be a matter of a few lines of code anyway) but I would like your opinion on this before I do anything.
Support the
custom-page-sizeproposal inTalckwasmThe WebAssembly
custom-page-sizesproposal allows Wasm modules to have page sizes of either65536or1.It is in implementation phase and supported by the runtimes
wasmiandwasmtime.It has also recently been added to the LLVM linker
wasm-ldso it's now possible (albeit annoying) to compile Rust Code to WebAssembly while using this proposal.I am using this proposal for my wasm files because I'm working on running wasm on architectures where 64KiB of RAM is hard to come by and 128KiB is not happening. I'm also using talc because afaik it is the only maintained allocator that advertises WebAssembly apps as a usage scenario.
Currently, I am using a static arena but I'm thinking that using a grow-able heap would allow me to use less RAM in most contexts.
I am willing to work on this (It should only be a matter of a few lines of code anyway) but I would like your opinion on this before I do anything.