lambdapi icon indicating copy to clipboard operation
lambdapi copied to clipboard

Build with js_of_ocaml?

Open nathancarter opened this issue 4 years ago • 2 comments

I'm curious as to whether anyone has tried compiling lambdapi (or the original Dedukti, or the main engine behind each, not necessarily including the specific command-line interface components) into JavaScript using something like js_of_ocaml. I'm working on a web-based logic software project and would be very interested to know if this is possible. I recall several years ago I tried this myself as a quick one-day experiment, but it wasn't straightforward, and both projects (Dedukti and js_of_ocaml) have changed a lot since then. Is this sort of thing expected to work, so perhaps I should try it? Or are there reasons why it won't work? Or has anyone already done it? Any tips or thoughts are welcome. Thank you!

nathancarter avatar Feb 15 '22 15:02 nathancarter

Hello @nathancarter . I didn't try myself but @ejgallego did it for Coq and it worked very well (see https://github.com/jscoq/jscoq), and I would be very interested to have lambdapi run online in a web browser too! :-)

fblanqui avatar Feb 15 '22 15:02 fblanqui

I think it should be pretty easy, you can indeed start from jsCoq. I'm working on having a more generic setup before working on lambdapi myself.

ejgallego avatar Feb 15 '22 18:02 ejgallego