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

TinyGo and WebAssembly? #44

Closed
justinclift opened this issue Oct 12, 2018 · 4 comments · Fixed by #45
Closed

TinyGo and WebAssembly? #44

justinclift opened this issue Oct 12, 2018 · 4 comments · Fixed by #45

Comments

@justinclift
Copy link
Member

@aykevl Out of curiosity, are you familiar with WebAssembly (wasm)?

Kind of wondering how feasible it would be, to add wasm as a target for TinyGo compilation.

With TinyGo generating to LLVM, and LLVM able to compile wasm... could that be a useful avenue to explore for golang/go#27766 ?

@aykevl
Copy link
Member

aykevl commented Oct 12, 2018

I've used WebAssembly a little bit in the past, and a WebAssembly target is certainly something I'd like to see at some point. But of course, there are so many things I would like to see implemented in the compiler, and this is just one of them.

A WebAssembly target is certainly doable. Requirements to implement one are roughly similar to the ones listed in Adding a new architecture. In short, it involves creating targets/wasm.json with target "wasm-none-none-wasm" and probably some runtime changes. Perhaps also compiler changes, but I don't know yet.

See this HN post for more discussion.

@justinclift
Copy link
Member Author

Awesome. Thanks @aykevl. 😄

@aykevl aykevl mentioned this issue Oct 18, 2018
8 tasks
@aykevl
Copy link
Member

aykevl commented Oct 19, 2018

See #45.

@justinclift
Copy link
Member Author

Oh Wow!

@aykevl You are awesome. 😁

ZauberNerd pushed a commit to ZauberNerd/tinygo that referenced this issue Mar 4, 2022
Fix typo "-gnore" -> "-ignore" in manpage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants