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

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

> 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!

If you want a solution before effects this means CPS, see as usual [1] for what 
it means at the API level. 


[1] https://github.com/dbuenzli/nbcodec/blob/master/RATIONALE.md

MirageOS-devel mailing list



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