Closed
Description
I can't seem to find any information about this, so sorry if I am just missing something, but, does zig support building WASI "reactors"?
The concept of a reactor in WASI is a module that does not have a regular start function that runs and exits, but instead has a simpler _initialize() entry point, that just does whatever low-level initialisation the binary and WASI implementation needs (calling global constructors, setting up the preloaded directories), and then exits, leaving everything in place. The hosting environment then calls whatever function the module exports to actually do work.
Is this currently possible in zig, and if not, would it be possible to add support for it?