Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
you are thinking of wasi_preview_snapshot1 which was effectively posix mapped into wasm. This approach as a whole has been deprecated, wasi_snapshot_preview2 is entirely based on the component model which is closer to Erlang than Posix in that regard. A component function receives a copy of the data it should work on instead of a pointer and length into foreign memory. This makes it possible to give different components different sets of rights, but still have them work with each other, you could even have network between two components, but to the components it will seem like they ran in the same program
Take a look. They've even wholesale copied errno.