Slide 20
Slide 20 text
Wasm cannot directly affect resources like files. Guests call
imported host functions with pointers to shared memory they own. 20
out, err := run(ctx,
fi
leFS(path), "dcraw", "-e", "-c", "input")
WASI commands are like os/exec but safer
_start
fd_read(input)
args_get
mem.Write(dcraw_-e_…)
out.Write(mem)
fi
le.Read(mem)
github.com/ncruces/RethinkRAW
fd_write(stdout)
memory
dcraw.wasm
wasi
dcraw.c
clang