Re: [go-nuts] Questions about calling Go/WASM from JS and overhead

2018-09-03 Thread Paul Jolly
> > *Question 1*: are calls from JS into Go/WASM expected to be asynchronous? > If so, is the callback passing approach the best way to get return values > back to the JS code? > Please see https://github.com/golang/go/issues/26045. Yes they are currently async, but they will become sync -- You

[go-nuts] Questions about calling Go/WASM from JS and overhead

2018-09-03 Thread torinsandall
Hello! I've been running some experiments with WASM support in Go 1.11. One of the experiments involves compiling a Go library into WASM and then calling it from JS. The post below mentions how to expose Go functions to JS, however, my experiments have shown that calls from JS into Go/WASM are