go-interpreter / wagon

wagon, a WebAssembly-based Go interpreter, for Go.
BSD 3-Clause "New" or "Revised" License
904 stars 148 forks source link

Per-VM Host Resources? #181

Closed cdcarter closed 4 years ago

cdcarter commented 4 years ago

Is there any way to attach additional resources to the VM or Process structs so that Host functions can deal with per-VM resources? Imagine a set of host functions that deal with "STDOUT" - I might want a different "stdout" buffer for each VM. But host functions don't seem to have access to anything other than the VM linear memory. Any suggestions?

cdcarter commented 4 years ago

Hey, encapsulation :)