Comments (3)
For reference, the following functions will need to be ported to working within wasmtime's constraints:
externs, exported by host, imported by guest (wapc
namespace):
__console_log
__host_call
__guest_request
__host_response
__host_response_len
__guest_response
__guest_error
__host_error
__host_error_len
Functions called by host, exported by guest:
__guest_call
from wapc-rust.
Note to self: One other thing that concerns me is that wasmer gives us a Ctx
inside the signature of the calls made out of the guest module into the host (which is 99% of the activity of the waPC contract). It looks like wasmtime's Callable
is in a trait, so it should theoretically be possible to maintain a reference to the wasmtime Instance
inside some struct so that in each of these functions we can manipulate the module memory.
from wapc-rust.
More research. It looks like there's a way for the externs to have a VMContext
parameter, which should let me access the module's memory and functions. Deep down in the bowels of the cmdline binary, there's a signature translator:
Still trying to decipher how, or if, this is applicable.
from wapc-rust.
Related Issues (12)
- Logger implementation upgrade - allow a callback HOT 2
- Remove console_log support from the waPC standard HOT 2
- Support named bindings
- Update to wasmtime 0.15.0 HOT 1
- Support no_std
- wapcurl? HOT 7
- interrupt wasm module HOT 3
- support mipsel
- Support wasm3
- Update wasmtime support HOT 1
- Support loading WASI modules via wasmtime
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wapc-rust.