acton icon indicating copy to clipboard operation
acton copied to clipboard

Support WASM mode

Open plajjan opened this issue 2 years ago • 1 comments

In a locked down WASM environment there is no POSIX looking environment. There might be WASI but in restricted environment I think WASM is pure. We expose a function according to some API/ABI and the environment calls it.. that's it.

It's a little weird even doing actors in such an environment, like actors thrive being persistent and obviously running a single function is not very persistent... but meh. It's a start. Maybe we can hack around with things.

I think it would be good to have the basic machinery in place. We need to conditionally compile things that do not work with WASM / WASI. Like we need to be single threaded, see #1466. Some of our modules like file and net, which rely on a POSIX interface, should really not be compiled at all. Maybe we should revisit what Env & stdlib should really look like.

  • [ ] single threaded #1466
  • [ ] optional compilation of IO stuff
  • [ ] the rest of the f owl

plajjan avatar Sep 19 '23 19:09 plajjan

GC supports not depending on signals, https://github.com/ivmai/bdwgc/issues/588

plajjan avatar Jan 27 '25 14:01 plajjan