Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Go #36

Open
taybenlor opened this issue Sep 27, 2021 · 1 comment
Open

Add support for Go #36

taybenlor opened this issue Sep 27, 2021 · 1 comment
Labels
enhancement New feature or request new language Adds a new language to Runno
Projects

Comments

@taybenlor
Copy link
Owner

There's two pathways that seem viable here:

  1. Build tinygo and throw it up on WAPM. tinygo appears to already have WASI support but I can't confirm whether the compiler itself can be built for WASI. This would fit into the current execution model best.

  2. Build go itself (https://golang.org/doc/install/source) using $GOOS=js and $GOARCH=wasm. This builds Go in a way that is only compatible with its own wasm_exec JS runtime (https://github.com/golang/go/wiki/WebAssembly). So we'd need to add a new system for running Go code to Runno (basically an alternative to the WASI system).

The first seems like the best option since it doesn't require changing much of the architecture of Runno.

@taybenlor taybenlor added the WASI label Sep 27, 2021
@taybenlor taybenlor added this to To do in Announcement Oct 7, 2021
@taybenlor taybenlor added enhancement New feature or request new language Adds a new language to Runno and removed WASI labels Oct 16, 2021
@taybenlor taybenlor removed this from To do in Announcement Oct 19, 2021
@taybenlor taybenlor added this to To Do in Version 1 Oct 19, 2021
@taybenlor
Copy link
Owner Author

It looks like tinygo is very dependent on LLVM and Go themselves to build. This makes me think it's going to be quite challenging to build tinygo to WASM without knowing it very well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new language Adds a new language to Runno
Projects
Development

No branches or pull requests

1 participant