Hacker GitHub

← All repos

ocsigen/lwt

View on GitHub ↗ ★ 797 OCaml

OCaml promises and concurrent I/O

9 mentions on Hacker News by 8 people: 0 stories, 9 comments · first 2017-03-25 · latest 2024-08-13

Mentions per year 9 mentions · busiest year 2020 (2)
20082026
  1. …has had Lwt for concurrent IO for long enough that it is now being deprecated in favor of Eio[1]: https://github.com/ocsigen/lwt [1] https://github.com/ocaml-multicore/eio
  2. …in 2016), and even before that there was the older syntax where you write `lwt` instead of `let`. https://github.com/ocsigen/lwt/commit/d28204984646042676570d...
    comment by ackfoobar · 2022-01-12 · in From TypeScript to ReScript
  3. …much about ReScript and only have very basic exposure to OCAML, here is how you do await in it: https://github.com/ocsigen/lwt The `let* in` is a generic syntax for monads, it doesn't need a special one just for promise. This was in fact a…
    comment by nsonha · 2022-01-12 · in From TypeScript to ReScript
  4. …Lwt, Dream's promise library, is itself getting ported to run on top of libuv: https://github.com/ocsigen/lwt/issues/813 libuv is, of course, the I/O library that powers Node, so it might be practical to run Dream as a native node module
  5. …then ocaml's cohttp [3] library has been available on mirage for quite some time now. [1] https://github.com/ocsigen/lwt/ [2] https://github.com/rgrinberg/opium [3] https://github.com/mirage/ocaml-cohttp/
    comment by anuragsoni · 2021-01-25 · in The RustyHermit Unikernel
  6. OCaml has really good libraries for concurrency–e.g. check out https://github.com/ocsigen/lwt There is a GIL (like Node/Python) that means only one thread runs at any moment in time, but multiple threads can still be started. Lwt's Promise…
  7. …2018: http://jobjo.github.io/2019/04/24/ocaml-has-some-new-shiny-s... It definitely has async: https://github.com/ocsigen/lwt It doesn't have units of measure but due to strong abstraction properties of modules we can fairly easily roll…
    comment by yawaramin · 2020-06-13 · in The Early History of F# [pdf]
  8. …daemon and poll the answer concurrently. Ada, C++ and D would have been another great choices. [1] https://github.com/ocsigen/lwt
    comment by ernst_klim · 2019-05-20 · in Linux distros without systemd
  9. There are several libraries for concurrency: - Lwt: https://github.com/ocsigen/lwt - Async https://realworldocaml.org/v1/en/html/concurrent-programming... However pulling these over more than 1 core is still a problem. OCaml 4.05.0 should…