Right now a big missing feature in Tangle is the ability to pass in large data or read data from Tangle.
Libraries like wasm-bindgen directly write / read Wasm memory like this new Uint8Array(wasm.memory.buffer) but unfortunately Tangle can't polyfill that directly without creating desyncs.
Tangle should expose an alternative way of reading / writing to Wasm memory in bulk.
I wonder if Tangle could have an optional mode that replaces WebAssembly.instantiate completely with Tangle.instantiate and new Uint8Array with something that checks if the value passed in is a special Tangle object?
This could make using Tangle with something like wasm-bindgen as easy as importing the library.
Right now a big missing feature in Tangle is the ability to pass in large data or read data from Tangle.
Libraries like
wasm-bindgendirectly write / read Wasm memory like thisnew Uint8Array(wasm.memory.buffer)but unfortunately Tangle can't polyfill that directly without creating desyncs.Tangle should expose an alternative way of reading / writing to Wasm memory in bulk.
I wonder if Tangle could have an optional mode that replaces
WebAssembly.instantiatecompletely withTangle.instantiateandnew Uint8Arraywith something that checks if the value passed in is a special Tangle object?This could make using Tangle with something like
wasm-bindgenas easy as importing the library.