wasm4 icon indicating copy to clipboard operation
wasm4 copied to clipboard

Web-based playground editor

Open aduros opened this issue 2 years ago • 2 comments

It would be neat to have an easily accessible editor for live coding. Something like the TypeScript Playground with the code on the left and the game on the right, with the ability to inspect the WAT and download the cart.wasm.

AssemblyScript seems like it would be a perfect fit for this! @MaxGraey :eyes: Maybe the existing AS editor could be repurposed?

aduros avatar Sep 17 '21 23:09 aduros

Yes, it possible with AS. See web sdk example: https://github.com/AssemblyScript/examples/tree/main/sdk Also you could check how playground implemented on official page: https://github.com/AssemblyScript/website/blob/main/src/.vuepress/public/editor.html

MaxGraey avatar Sep 18 '21 06:09 MaxGraey

Supporting some languages other than AS would be awesome too - Roland's compiler can be run in the web, and I'm sure we could do WAT->WASM (this in particular was requested by Snufkin on discord)

DenialAdams avatar Nov 07 '21 23:11 DenialAdams