danilopedraza / symstatic

The Symstatic programming language code repository
https://symstatic.org/book
GNU General Public License v3.0
2 stars 0 forks source link

Playground #21

Open danilopedraza opened 4 months ago

danilopedraza commented 4 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 1 month ago

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

danilopedraza commented 1 week 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 1 week ago

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

danilopedraza commented 1 week ago

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

danilopedraza commented 4 days ago

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