k6 icon indicating copy to clipboard operation
k6 copied to clipboard

Wasm support. Also js —> wasm

Open gedw99 opened this issue 3 years ago • 3 comments
trafficstars

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

gedw99 avatar Jun 11 '22 16:06 gedw99

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 ?

gedw99 avatar Jun 11 '22 16:06 gedw99

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.

na-- avatar Jun 13 '22 08:06 na--

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!

codefromthecrypt avatar Aug 30 '22 09:08 codefromthecrypt