-
Hi, thank you for your hard work on this playground. I am interested to build a Go playground as well with WASM, I see that you guys are using WASM execute arbitrary Go 1.22 codes, I am curious to know where is the Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello @jymchng WASM binary is built on a server and then served to a user for execution. See:
P.S - Previously we had a in-browser Go interpreter based on Yaegi but it was removed as project is not actively maintained and doesn't support modern Go features like generics. In future we plan to move Go compiler completely into a browser but this is a complex task. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. @x1unix Essentially, what you're saying is the code execution actually uses the actual Go compiler to compile the source files on the playground into a Is my interpretation accurate? |
Beta Was this translation helpful? Give feedback.
Hello @jymchng
WASM binary is built on a server and then served to a user for execution.
Under the hood, API serves a cache or otherwise - runs
go build
to build a WASM program.See:
P.S - Previously we had a in-browser Go interpreter based on Yaegi but it was removed as project is not actively maintained and doesn't support modern Go features like gener…