How hard would it be to develop a similar kernel that can use *any* Javascript interpreter backend?
I'm asking because I would love to have a generic kernel that can work with any javascript library under the hood, as soon as the library is emulating a REPL! I'm thinking about four possible uses:
- have a javascript mode, using a safe
eval(input)
function, - have a SQL(lite) mode, using https://sql.js.org/#/
- have a basic C/C++ mode ! See https://github.com/felixhao28/JSCPP/
- have a basic OCaml mode ! See https://github.com/ocsigen/js_of_ocaml and https://github.com/jbdo99/BetterOCaml/
Adding just one kernel that could pipe the input text to a REPL in (client side) javascript and print the response, would directly imply that we could (probably) easily add a lot of new usages to Basthon! I'm hoping for https://ocaml.basthon.fr/, https://sqlite.basthon.fr/, https://javascript.basthon.fr/, https://ocaml-notebook.basthon.fr/, https://c-notebook.basthon.fr/ etc etc.
It would be awesome to lots of students in France (and elsewhere!).