I recently learned that Go can run in the browser through WebAssembly. This made me think about making the Go compiler work in the browser, in order to compile downloadable binaries.
I’ve asked a question about this on StackOverflow and got an answer confirming that this would be possible, and providing a high-level overview of what would need to be done. However, after having a look at the Golang GitHub repository, I realised how difficult this is going to be. I didn’t even know where to start!
I’m wondering if someone could give me some guidance as to how I could go about this. I’m basically thinking of compiling the Go compiler itself to WASM.