Skip to content

Simple demo on how to tackle blocking standard input/output when wrapping native command line programs in WebAssembly.

License

Notifications You must be signed in to change notification settings

sulewicz/emscripten-stdio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Standard Input and Output in Emscripten

Description

Simple demo on how to tackle blocking standard input/output when wrapping native command line programs in WebAssembly.

screenshot

How to build and run

Native version

mkdir build
cd build
cmake ..
make
./stdio-demo

Web version

First set up Emscripten as instructed here.

mkdir build-wasm
cd build-wasm
emcmake cmake ..
make
../run_server.py

Now open https://localhost:8080/.

About

Simple demo on how to tackle blocking standard input/output when wrapping native command line programs in WebAssembly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published