-
Notifications
You must be signed in to change notification settings - Fork 148
wasm: implement imports #40
Comments
@vibhavp do you want (and/or have the cycles) to have a stab at it? |
If you take a look at the Making I have plans for adding preliminary support for Go functions in |
I have some (module
...
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(import "env" "assert" (func $assert (param i32 i32)))
(import "env" "load_i64" (func $load_i64 (param i64 i64 i64 i32 i32) (result i32)))
(import "env" "read_message" (func $read_message (param i32 i32) (result i32)))
(import "env" "remove_i64" (func $remove_i64 (param i64 i64 i32) (result i32)))
(import "env" "require_auth" (func $require_auth (param i64)))
(import "env" "require_notice" (func $require_notice (param i64)))
(import "env" "store_i64" (func $store_i64 (param i64 i64 i32 i32) (result i32)))
(table 0 anyfunc)
(memory $0 1)
(data (i32.const 4) "\c0@\00\00")
... and I'd like to have those I'm interested in participating.. if you have a few cues / pointers / thoughts on how we could implement that.. I'd be taker :) |
ping @vibhavp ? Robert's work (bringing |
wasm.ReadModule
needs to be able to handleimports
.perhaps
wasm.ResolveFunc
should be an interface instead of atype X func
to be able to import builtin functions (e.g.print
)The text was updated successfully, but these errors were encountered: