Open frank-emrich opened 6 years ago
@SimonJF, @slindley, @dhil this is the issue @frank-emrich opened to discuss the "OCaml FFI" design space. Please comment.
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.
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.