GithubHelp home page GithubHelp logo

go_js_wasm_exec's People

Contributors

neelance avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

go_js_wasm_exec's Issues

Different IO

The example currently allows writing to a file (stdout). I wanted to explore how this could support additional types of IO.

Networking
For use cases like services it would make sense to interact over the network. However, it the current GOOS=js build target doesn't support networking. In addition, there is no standardized WASM syscall interface, making it hard to define what a new build target would look like. CraneStation/wasmtime seems to have picked CloudABI for this. That may offer a viable option.

Custom entry points
For use cases like serverless, blockchains, data pipelines, ... it would make sense to interact over custom entry points. To make these possible, it may be worth reevaluating the discussion in golang/go#25612.

runtime.* functions not found

Hello,

I know this is just a POC and I'm new to wasm but I'm desperately trying to run a wasm-module compiled in Go to run outside the browser. There is not a whole lot of docs explaining how the vm that is hosting the wasm module can make calls to functions within the wasm.

I created a very simple hello world go-compiled wasm module that use fmt.Println to just print out the string.

When I point main.go to that wasm module I get:

go run main.go hello.wasm
go: finding github.com/go-interpreter/wagon v0.0.0
panic: function not found: runtime.scheduleCallback

goroutine 1 [running]:
main.main()
/home/bob/projects/go_js_wasm_exec/main.go:105 +0x1439
exit status 2

Any help would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.