<neiluj>
(module M with type elt = bytes and type h = 'h and type path = proof)
<neiluj>
the problem is that the function to_mod matches on supported_hashes and returns a different module, so the type path is not equal to proof
<neiluj>
actually, the problem is that proof has a constructor which holds the type path
Anarchos has joined #ocaml
rh has left #ocaml [#ocaml]
Serpent7776 has quit [Ping timeout: 265 seconds]
Haudegen has joined #ocaml
noonien5 has joined #ocaml
noonien has quit [Ping timeout: 250 seconds]
noonien5 is now known as noonien
Anarchos has quit [Quit: Vision[]: i've been blurred!]
xx_lalo_xx[m] has joined #ocaml
Serpent7776 has joined #ocaml
Serpent7776 has quit [Ping timeout: 250 seconds]
<discocaml>
<froyo> sim642: the same builtin that's used for `ref`s.
<discocaml>
<froyo>
<discocaml>
<froyo> I'm thinking of ways to make the layout / batch operations of atomic values more efficient.
<discocaml>
<froyo> e.g. for batch operations: imagine an array of atomics, you could lock around array modification once, then batch-modify inside the array with plain ref operations.
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
bgs has joined #ocaml
<discocaml>
<darrenldl> do people use atomics in a batch?
<discocaml>
<darrenldl> i thought the point of atomic is to not do that
<companion_cube>
I don't see how you do a compare and swap loop with an array
<companion_cube>
@froyo sounds like you just want a Mutex
neiluj has quit [Quit: WeeChat 3.7.1]
waleee has joined #ocaml
bgs has quit [Remote host closed the connection]
Serpent7776 has quit [Ping timeout: 268 seconds]
waleee has quit [Ping timeout: 256 seconds]
Tuplanolla has quit [Quit: Leaving.]
bartholin has quit [Quit: Leaving]
waleee has joined #ocaml
waleee has quit [Ping timeout: 265 seconds]
waleee has joined #ocaml
<discocaml>
<froyo> fair lol
Haudegen has quit [Ping timeout: 240 seconds]
John_Ivan has quit [Read error: Connection reset by peer]