[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] How to implement protocols?

  • To: mirageos-devel <mirageos-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Hannes Mehnert <hannes@xxxxxxxxxxx>
  • Date: Tue, 17 Nov 2015 14:24:43 +0100
  • Delivery-date: Tue, 17 Nov 2015 13:25:01 +0000
  • List-id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
  • Openpgp: id=11B5464249B5BD858FFF6328BC896588DF7C28EE

On 11/13/2015 20:20, Thomas Gazagnaire wrote:
> Good read, thanks. I am not sure how you can deal with blocking
> events (timer, read/write access to the disk). In that case, you are
> often "forced" to use "''a Lwt.t" function. For instance, in [1] when
> reading the Git pack file I need to pass a function to read
> uncompressed objects on disk (the read function) to support shallow
> objects (ie. objects whose ID is in the pack file, but whose contents
> is stored uncompressed on disk. And as usual, the Lwt.t propagates to
> the return type of that function...  I'm happy if you have a solution
> to this!
> [1]: https://github.com/mirage/ocaml-git/blob/master/lib/pack.mli#L91-L97

I've no good solution for that, hopefully effects will rescue us!?


Attachment: signature.asc
Description: OpenPGP digital signature

MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.