filecoin-project / ref-fvm

Reference implementation of the Filecoin Virtual Machine
https://fvm.filecoin.io/
Other
380 stars 134 forks source link

Investigation: Using Wasm Reference Types #785

Open Stebalien opened 2 years ago

Stebalien commented 2 years ago

In addition to ints/floats, wasm now has a special "externref" type for referencing objects outside of the VM.

Possible use-cases:

Pros:

Cons:

Conclusion: For now, I'm going to shelve this as it seems cool but too experimental. But I'm documenting it here in case we want to revisit it.

References:

Stebalien commented 2 years ago

Meta: @raulk would you prefer to put stuff like this in issues (easier to discuss) or in documents (easier to track over time).