wagon icon indicating copy to clipboard operation
wagon copied to clipboard

wagon, a WebAssembly-based Go interpreter, for Go.

Results 39 wagon issues
Sort by recently updated
recently updated
newest added

Right now, a `wasm.Module` struct can only hold `Function`s that use WebAssembly bytecode. To allow interoperability between WASM and Go, it should be possible to use `call` and `call_indirect` with...

trying to validate a simple program: ```go package main func main() { println("hello") println("1+3=", myadd(1, 3)) } func myadd(i, j int) int { return i + j } ``` compiled...

This is a WIP PR to start the discussion. --- This change is [](https://reviewable.io/reviews/go-interpreter/wagon/70)

upstream changed a bunch of instructions names: - https://github.com/WebAssembly/spec/commit/994591e51c9df9e7ef980b04d660709b79982f75 we should probably consider following them.

The goal is to catch the error early, otherwise it will cause a very confusing `disasm: stack underflow` which makes debugging very difficult.

Hello, i need small instruction to run Wagon. Thank you!

End/Discard ops were being misencoded with incorrect stack depths which caused stack underflows that manifested as `vm.ctx.stack` slice index out of bounds runtime panics. [Test case wasm](https://dsc-misc.s3.amazonaws.com/wagon-test.wasm) (execute the exported...

Hello, I'm trying to compile and run a simple program from GO to WASM and execute the VM with wagon, but I'm stuck at stack underflow. Any idea? Code (helloworld.go):...

It would be interesting to provide [context](https://godoc.org/context)-awareness to the `exec.VM` type. This would check the context Done every so often during execution, and if it is done then a new...

I am trying to implement a way of passing more complex data between wasm and go and was looking for something like `malloc` which emscripten provides to allocate a new...