radian-software / riju

⚡ Extremely fast online playground for every programming language.
https://riju.codes
MIT License
1.62k stars 189 forks source link

ReasonML: rtop REPL #50

Open raxod502 opened 3 years ago

raxod502 commented 3 years ago

imported comment by @kwshi

Riju currently says ReasonML has no REPL. That's not fully true--technically, ReasonML does have a REPL named rtop. What is true is that BuckleScript, the OCaml-to-JS transpiler that is most often used in conjunction with ReasonML, doesn't provide an interactive/REPL interface, so ReasonML/OCaml in the JS runtime has no REPL (see #48 for a more thorough discussion of the various runtimes for ReasonML/OCaml). So rtop only runs via the native runtime and does not provide any access to the JS bindings provided by Bucklescript.

Here are three options to setting it up (there may be more):

raxod502 commented 3 years ago

Excellent, thanks for the pointers. This sounds like a great idea.