2 comments

  • lambda_foo3 hours ago
    With OCaml 5 supporting effect handlers I expect MirageOS will go in that direction. It’ll make for more readable code than LWT.
    • avsm1 hour ago
      (original author of that article here)<p>This is a blast from the past! And indeed, I use Eio these days to do direct-style IO; you can see an example of a HTTP&#x2F;1.1 parser done in that style, and there&#x27;s nary a monad in sight! <a href="https:&#x2F;&#x2F;tangled.org&#x2F;anil.recoil.org&#x2F;ocaml-requests&#x2F;blob&#x2F;main&#x2F;lib&#x2F;h1&#x2F;http_read.ml" rel="nofollow">https:&#x2F;&#x2F;tangled.org&#x2F;anil.recoil.org&#x2F;ocaml-requests&#x2F;blob&#x2F;main...</a><p>OCaml&#x27;s effects are similar to thethe delimcc hack used in the article, except that it&#x27;s nicely integrated into OCaml 5 and very high performance; basically a stack switch: <a href="https:&#x2F;&#x2F;anil.recoil.org&#x2F;papers&#x2F;2021-pldi-retroeff.pdf" rel="nofollow">https:&#x2F;&#x2F;anil.recoil.org&#x2F;papers&#x2F;2021-pldi-retroeff.pdf</a>
  • dannyobrien5 hours ago
    (2011)