Skip to content

Conversation

Leonidas-from-XIV
Copy link

This allows to plug in concurrency monads like Lwt, Async or Dune's Fiber into the solver and have the callbacks return the concurrency monad.

Currently work in progress, needs support code in 0install-solver as well.

This allows to plug in concurrency monads like Lwt, Async or Dune's
Fiber into the solver and have the callbacks return the concurrency
monad.
@talex5
Copy link
Collaborator

talex5 commented Oct 19, 2023

This isn't needed with OCaml 5 - in fact, the ICFP Eio tutorial used the example of performing Lwt operations in the solver's callback, without having to modify the solver at all.

It seems a shame to add all this just for older systems. Dune has a way to build on newer compilers but run with older ones - perhaps that could be used instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants