Skip to content

Commit

Permalink
document experimental playground in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbrown authored Jul 15, 2019
1 parent 58bae2e commit 9acce07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ You can try it out here: https://ccbrown.github.io/wasm-go-playground
* Safari works, but is unbearably slow. **Chrome or Firefox for desktop is highly recommended.**
* Imports other than "runtime" are not supported. Making them work would be straightforward, but I'm not compelled to spend time on it right now since this probably has no practical uses.

## Experimental Playgrounds

One potential use-case for this is making compiler changes easily and freely available for people to try out.

If you're interested in trying out the `try` [proposal](https://github.com/golang/proposal/blob/master/design/32437-try-builtin.md), you can do so here: https://ccbrown.github.io/wasm-go-playground/experimental/try-builtin/

## Code

* ./cmd – These are Go commands compiled for WASM. They were all produced by running commands such as `GOOS=js GOARCH=wasm go build .` from the Go source directories.
* ./experimental – This directory contains experimental playgrounds, for testing out modified compilers.
* ./prebuilt – These are prebuilt runtime WASM files. These were produced by copying them from Go's cache after compiling anything for WASM.
* . – The top level directory contains all the static files for the in-browser Go playground. Most of the files are either precompiled WASM or lightly modified copies of bits and pieces from [play.golang.org](https://play.golang.org/). The most substantial work here is in index.html and wasm_exec.js as wasm_exec.js needed a virtual filesystem implementation.
* . – The top level directory contains all the static files for the in-browser Go playground. Most of the files are lightly modified copies of bits and pieces from [play.golang.org](https://play.golang.org/). The most substantial work here is in index.html and wasm_exec.js as wasm_exec.js needed a virtual filesystem implementation.

0 comments on commit 9acce07

Please sign in to comment.