News for hackers. Stuff that matters.
Re:LO – simple WASM native language by Lerc on Sunday May 26, 2024 @03:38PM (#40484747)
Do you have (or plan to support) a Wasm build of the compiler so you can compile from within the browser?

Given you have includes I guess you'd need to provide a loadFile(filename) callback to provide it with data.

Re:LO – simple WASM native language by glebbash on Sunday May 26, 2024 @03:58PM (#40484870)
Yes. Compiling single files is supported by calling the exported `compile` function, example setup here: https://github.com/glebbash/LO/blob/60b80d1b325136ce1ceaf4dc....

For includes to work compiler uses WASI which can be implemented in the browser. LO playground and VSCode extension use this approach. Playground link: https://glebbash.deno.dev/lo-playground/ and source: https://github.com/glebbash/glebbash.dev/blob/main/static/lo...