Skip to content
/ life Public
forked from perlin-network/life

Golang WebAssembly VM. WebAssembly program written in golang can be run by this VM.

License

Notifications You must be signed in to change notification settings

vyloy/life

 
 

Repository files navigation

Introduction

Golang WebAssembly VM. WebAssembly program written in golang can be run by this VM.

Implemented Golang Webassembly JS Runtime for the Webassembly VM written by Golang.
So the VM can run the wasm files built by Golang, instead of only the wasm files built by C/C++ or Rust.

Getting Started

Build the test wasm if you want

# go to the test folder
cd gowasm/testdata/fmt

# build the test wasm program
GOOS=js GOARCH=wasm go build -o main.wasm

# go back
cd -

Build the WebAssembly VM program

# download the dependencies
go mod download

# build main program
go build

# run your wasm program
./life -entry run ../../gowasm/testdata/fmt/main.wasm # entry point is `run`

About

Golang WebAssembly VM. WebAssembly program written in golang can be run by this VM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 93.8%
  • Rust 2.7%
  • WebAssembly 2.2%
  • Other 1.3%