joker icon indicating copy to clipboard operation
joker copied to clipboard

Joker in WASM

Open roman01la opened this issue 5 years ago • 6 comments

Hey. Just so you know that Joker works in WASM. Had to patch bbolt and Go's WASM support is still missing IO, but you can run the CLI in eval mode just fine https://github.com/roman01la/joker

roman01la avatar May 17 '20 09:05 roman01la

Wow, this is awesome! Can you provide brief instructions on how to try it out? I have not dealt with WASM before.

candid82 avatar May 18 '20 16:05 candid82

@candid82 Build artifact is included in the forked repo, just run a web server from the root.

roman01la avatar May 18 '20 16:05 roman01la

I get CompileError: wasm validation error: at offset 43589: function body too big when trying to load it.

candid82 avatar May 19 '20 03:05 candid82

Somehow it does work for me, not always though. Maybe cleaning caches will help. The error is browser's validation of wasm files. For some reason they have this limit, but it also runs fine.

roman01la avatar May 19 '20 08:05 roman01la

In what browser / OS does it work for you?

candid82 avatar May 19 '20 16:05 candid82

Chrome on macOS, but as I said, it doesn't always run

roman01la avatar May 19 '20 16:05 roman01la