GithubHelp home page GithubHelp logo

ocaml-multicore / effects-examples Goto Github PK

View Code? Open in Web Editor NEW
415.0 415.0 35.0 184 KB

Examples to illustrate the use of algebraic effects in Multicore OCaml

License: ISC License

Makefile 1.82% OCaml 95.39% Haskell 2.08% C 0.71%

effects-examples's Issues

Errors in building effects-examples

I installed the 5.0.0 today (29 June 2023)

Error 1
Did a make: File "aio/dune", line 3, characters 12-16:
3 | (libraries unix)
^^^^
Error: Library "unix" in /home/doug/.opam/5.0.0/lib/ocaml is hidden
*** fix
In .opam/5.0.0/lib/ocaml
I did: cp unix/unix* .
which fixed this problem

Error 2
Did a make: File "mvar/dune", line 3, characters 24-32:
3 | (libraries threads lwt lwt.unix)
^^^^^^^^
Error: Library "lwt.unix" not found.
*** fix
opam install conduit-lwt-unix

Add travis-ci support

Building the examples may break due to upstream changes as seen in #14. So add support for travis-ci to test for these breakages automatically. It appears that the popular way to test OCaml projects is to use ocaml-ci-scripts. The scripts need to be updated to work with the Multicore OCaml compiler.

Migrate the build scripts to dune

Currently we use OCamlbuild. We should port the build system to dune.

Is the secondary compiler necessary now since systhreads work with multicore?

Testing of `promises.ml` seems incomplete

Dear effects examples maintainers,

thanks for the very nice examples on OCaml effects, they are very helpful!

@bhaktishh and I were looking into the promises.ml example, however we have noticed that the way the test are written, it seems that we never call the Wait effect, as all the promises are resolved immediately.

It seems to us that having a more complete test could be useful, what do you think?

We have a few ideas on how to solve this, let us know what do you think?

I guess the first to try would be to decouple promise creation from resolution, but we'd like to hear your opinion before trying to do a pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.