Keno/julia-wasm

Better REPL

Opened this issue · 4 comments

Keno commented

Now that the julia-wasm implementation is minimally functional, it would be nice to have a better REPL, ideally re-using most of REPL.jl but with js-specific implementations where necessary.

Can you give some examples what would need to be js specific? The whole tty stuff? Or shouldn't that be abstracted away?

Keno commented

Since we don't support tasking yet, the overall REPL loop will need to be written in JS (since we can't suspend julia execution to ask for input). That's probably the biggest difference. What to do about the output is also a question. I suspect it makes sense to hook up a VT100 browser terminal emulator and emulate a TTY for now, but we may be more adventurous in the future.

Keno commented

Something specific to look into would be to hook it up to iodide: https://github.com/iodide-project/iodide. They already have a python-wasm version, so this might be fairly easy.

I am interested in healping, if help is still needed. Could you point me please to a starting point? Sorry if this question is not well phrased, I am new to contributing to Julia.