k6
k6 copied to clipboard
Wasm support. Also js —> wasm
Feature Description
It would be cool to also support wasm for those that don’t want to us js.
There is also the ability to transpire js to wasm now. The suborbital project got it working and others are now using the package to do it .
Suggested Solution (optional)
https://github.com/suborbital/javy
Already existing or connected issues / PRs (optional)
No response
Debugging js and wasm would be related to this.
Wazero are working partially on wasm debugging . Wazero is pure golang so no CGO :)
goja has debugging support . Not sure if that’s exposed in k6 main branch yet ?
Previously discussed here: https://github.com/grafana/k6/issues/751#issuecomment-596525404
See some of my comments in that issue, they apply as much for any future WebAssembly support in k6 as they do for potentially supporting Go or some other language. Admittedly, WASM will probably be simpler than some of the others, but it will still not going to be easy to do or maintain in the long-run.
You may also have noticed language compiler docs aren't well written or written for backend stuff. wazero is starting to compile our notes here https://wazero.io/languages/
We also cut our first beta tag (v1.0.0-beta.1) and also opened a gophers slack #wazero channel for support, updates and conversation! Note: You may need an invite to join gophers.
Hope to see you around!