18

Add WebAssembly support by slimsag · Pull Request #232 · gopherjs/vecty · GitHub

 4 years ago
source link: https://github.com/gopherjs/vecty/pull/232#issuecomment-507163640
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Prior to this PR, Vecty was only usable with GopherJS which would compile Go to JS code.After this PR, Vecty can be used with:GopherJS (browser, testing)Go + WebAssembly (browser, testing)Go + Native (for testing Vecty itself, autocomplete in editors etc)All examples in the example directory work under both GopherJS and WebAssembly, and a README is added to describe how to compile for each.TinyGo future supportIn the future, Vecty will automatically gain support for TinyGo once it supports the subset of reflection and syscall/js that we make use of.See tinygo-org/tinygo#93 for more discussion around this.Prior workSupersedes the prior PR for this by using build tags instead of exposing a gopherwasm API directly. See #215 (comment) for discussion around this.Fixes #211

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK