Adrian Cole

Results 1423 comments of Adrian Cole

ps. the current answer is no, but we didn't consider special casing. Bear in mind that compiling wasm in ModuleBuilder will likely occur at some point. Also, a host module...

one idea until I look closer.. what if the memory was imported? in this case the state is preserved. ex define memory in one module and any other state. then...

@knqyf263 @sam-at-luther if both of you have time to contribute a suggestion, much obliged

Thanks @inkeliz. I'll defer until other end users chime in. Commenting only because you mentioned something I left out of the desc. the consumers of this api (and we may...

@r8d8 I think this definitely is still relevant, and we'd want to start with backtrace enhancement. If I understand you correctly, you are interested in contributing this? If so, I'd...

hmm the tests on CI take 40s which I assume is due to the amount of time it takes to compile. I might make a different approach where the tests...

ok actually the execution speed of wasm is also a reason why it was slower. Regardless this is now compiling once for the package and re-using the same binary for...

Actually, the runtime performance is so bad I'm kindof wondering if we should just dump this. Ex the below is literally returning a mock response ```bash $ time go run...

@paralin was thinking the same thing. I'll add a real benchmark which shows compile vs (instantiate/run). Instantiate and run are coupled as `GOOS=js` uses host state (host side values) coupled...

ok @paralin's thoughts were right. Since @mathetake recently implemented compilation cache. Using `GOARCH=wasm GOOS=js` without it is incredibly slow due to the size and the complexity of the Wasm generated....