WebAssembly/WASI Native Messaing host #82
-
It looks like WebAssembly/WASI now has something akin to stdin/stdout? With a WASM runtime we should be able to read from stding and write to stdout? This is the C and C++ I am currently using as a host
and just in case this is possible a JavaScript version using QuickJS Can either be compiled to WASM so we can use a WASM runtime to run the compiled WebAssembly code as a Native Messaging host? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
WASI has supported stdin/stdout mechanisms since the beginning. Many Wasm runtimes today support running Wasm programs that read from stdin and write to stdout. At first glance, everything in those .c and .cpp files looks like it could be compiled to Wasm and run today. |
Beta Was this translation helpful? Give feedback.
WASI has supported stdin/stdout mechanisms since the beginning. Many Wasm runtimes today support running Wasm programs that read from stdin and write to stdout. At first glance, everything in those .c and .cpp files looks like it could be compiled to Wasm and run today.