Hacker News new | ask | show | jobs
by frame_perfect 3836 days ago
Will be a huge pain in the ass. Go's compiler uses Plan 9, and WebAssembly uses LLVM.
1 comments

There is llgo[1] which is an implementation of go on top of the llvm toolchain.

But if I'm not mistaken, WebAssembly won't accept just any llvm bitcode. It's similar to how emscripten will work with the bitcode that clang outputs, but not other llvm compilers like rust or ghc.

[1]: http://llvm.org/svn/llvm-project/llgo/trunk/README.TXT