links-lang / links

Links: Linking Theory to Practice for the Web
http://www.links-lang.org
Other
321 stars 42 forks source link

[discussion] Provide FFI to access ocaml functions from Links code #309

Open frank-emrich opened 6 years ago

frank-emrich commented 6 years ago

As we have discussed before, it would be nice to generalize the dynamic loading facilities into something that allows using (somewhat) arbitrary OCaml functions in Links. Since there are a lot of possibilities of approaching this, I would like to collect the design ideas/requirements here.

A few thoughts:

If you can think of other use cases, disagree with some of the above, or have other comments, feel free to let me know.

jamescheney commented 6 years ago

@SimonJF, @slindley, @dhil this is the issue @frank-emrich opened to discuss the "OCaml FFI" design space. Please comment.

fehrenbach commented 6 years ago

We might want to make crypt and verify one of the examples for how to use the FFI and remove them from lib.ml. See also #362.