This is a demo of an idea to implement a Linux syscall-inspired API for
making portable programs which can run on a variety of platforms without
the need to program with platform-specific APIs like libc, gtk, cocoa, etc.
This includes the web platform as demonstated here with
example.c compiled to wasm with
clang --target=wasm32 --no-standard-libraries -o example1.wasm example.c
and post-processed with
wasm-opt --asyncify -O -o example1.wasm example.wasm
See Twitter conversation, sources example.c & xsys.h and wasm module as text for more details.