Hrefna (DHC) · @hrefna
1323 followers · 5002 posts · Server hachyderm.io

Beyond that there are about eight million LRU caching libraries—which are not what I wanted—and a handful of things that could have worked with enough investment but that didn't integrate cleanly into (it being Very New™ in this world).

So since this is a learning project and I have no deadlines, it made sense to do some from-the-ground-up work.

#eio #ocaml

Last updated 2 years ago

Hrefna (DHC) · @hrefna
1323 followers · 5000 posts · Server hachyderm.io

Why go through all of this trouble rather than just using the `resource_cache`?

Well, a big part of it is that I wanted to build an actor system with as I was learning and that I think the actors will be useful elsewhere in the project :p

Another piece of it is that the docs on resource_cache ( ocaml.org/p/resource_cache/lat ) are not entirely clear and it roots into , which isn't a problem per se but I've been trying to stay as close to eio alone as possible.

#janestreet #eio #ocaml #jsonld #async

Last updated 2 years ago

Hrefna (DHC) · @hrefna
1271 followers · 4868 posts · Server hachyderm.io

Hah! Okay, I was doing several things incorrectly to create the deadlocks in my project.

First thing was, as I mentioned yesterday, creating essentially an infinite series of latches that would never clear until the infinite loop ended (whoops).

The second was unsafely mixing Channels from and . These, it turns out, don't play nicely together.

The final issue was a little more subtle and not a deadlock _per se_.

#ocaml #domainslib #eio

Last updated 2 years ago

Hrefna (DHC) · @hrefna
1171 followers · 4446 posts · Server hachyderm.io

Playing around with the new multicore support in along with and I gotta say, this behaves more-or-less exactly like what I want a multicore library to behave like.

The documentation isn't all there yet, but it's very nice.

#ocaml #eio

Last updated 2 years ago