bat icon indicating copy to clipboard operation
bat copied to clipboard

WASI / WASM support

Open samdenty opened this issue 9 months ago • 3 comments

are there any plans to support WASI / WASM? This would be awesome for portability and also the ability to run inside the browser in online playgrounds / IDEs

samdenty avatar Sep 06 '23 16:09 samdenty

Note that there are already wasm "versions" of syntect, the syntax highlighting library that bat uses:

  • https://github.com/alexpeattie/syntect-wasm-demo
  • https://github.com/Menci/syntect-js

What benefits would compiling bat to WASM/WASI bring over that?

keith-hall avatar Sep 06 '23 16:09 keith-hall

ability to portably use the bat binary across across different platforms, using for example https://wasmtime.dev/.

samdenty avatar Sep 06 '23 16:09 samdenty

What platforms do you have in mind that are not yet supported by fast native binaries?

sharkdp avatar Sep 06 '23 18:09 sharkdp