danilopedraza / komodo

The Komodo programming language code repository
https://komodo-lang.org/
GNU General Public License v3.0
7 stars 0 forks source link

Playground #21

Closed danilopedraza closed 2 months ago

danilopedraza commented 7 months ago

I need to make a playground, so it is easy to try the language.

I looked at the code of Dart, Go and Rust playgrounds, and all of them run with a backend where all the code runs.

danilopedraza commented 5 months ago

I found a nice exception: Io. It has a REPL compiled in WASM.

danilopedraza commented 4 months ago

I'm going with the plan of compiling to WASM. However, this needs some preparation work.

This will allow me to only compile to WASM what I need, and to interact with the browser in a non-hacky way.

danilopedraza commented 4 months ago

Splitting was not necessary. I used wasm-pack to generate the necessary wasm and it compiled only what was necessary.

danilopedraza commented 4 months ago

I'm using wasm-bindgen to generate all the glue code. Overall, this looks good.

danilopedraza commented 3 months ago

The playground now (barely) works. I need to work in the interface, ergonomics and error reporting (crashes, overflow)

danilopedraza commented 3 months ago

I just saw this tool, for the record.

danilopedraza commented 2 months ago

Here are some requirements for the playground: