hybridgroup / mechanoid

Mechanoid is a framework for WebAssembly applications on embedded systems and IoT devices.
https://mechanoid.io
Apache License 2.0
174 stars 8 forks source link

engine, interp: simplify ExternalReferences implementation #14

Closed deadprogram closed 7 months ago

deadprogram commented 7 months ago

This PR modifies the engine and interp to simplify the ExternalReferences implementation to just use pointers instead of the extra hassle with unsafe.Pointer. It is still opaque to the caller, this just makes thing easier on the host side.

Note that it depends on the branch with the PR https://github.com/hybridgroup/wasman/pull/1 in wasman.

deadprogram commented 7 months ago

Thanks for review, @orsinium now merging.