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

Re: [MirageOS-devel] Charrua release



Great!  If you can submit this as a pull request to the master branch of 
mirage-www, then it makes it a little easier for others to comment via the 
GitHub interface.

Thanks!
Amir

> On 27 Nov 2015, at 14:26, Christiano F. Haesbaert <haesbaert@xxxxxxxxxxxxx> 
> wrote:
> 
> I have a more or less reviewable blog post, any feedback is welcome:
> 
> https://github.com/haesbaert/mirage-www/blob/5c3cb4ce92103aac47eacaa3795f464e70f09515/tmpl/blog/introducing-charrua-dhcp.md
> 
> On 17 October 2015 at 17:35, Richard Mortier
> <richard.mortier@xxxxxxxxxxxx> wrote:
>> On 15 October 2015 at 15:17, Hannes Mehnert <hannes@xxxxxxxxxxx> wrote:
>>>> Hence, putting all code dealing with the wire-to-OCaml interface in
>>>> Tftp_wire, and then (I'm currently fiddling with this, slowly) all the
>>>> state machine logic in Tftp_S with the intent of having a Mirage
>>>> unikernel implementation that uses Tftp_S to create a server instance
>>>> (basically by bridging IO into Tftp_S).
>>> 
>>> I'm not sure what Tftp_S is (what the _S should do).  From my point of
>>> view: put the (pure!) state machine logic somewhere [by pure I mean it
>>> does not do IO or logging, but uses as signature `state -> bytes ->
>>> (state * action list)`], where state is some abstract type, constructed
>>> via some configuration step, and actions might contain:
>>> `Log "client ZZZ requested image YYY"
>>> `Tell_user "failed to find image YYY"
>>> `Send <packet>
>>> 
>>> Or maybe, if sending out a response is common enough, maybe use `state *
>>> bytes option * actions`.
>>> 
>>> And then, on top of this state machine, which uses the wire_struct and
>>> some state, use it to build either Lwt or Mirage layers (which translate
>>> actions into side-effecting IO operations).
>>> 
>>> We/I tested this approach in
>>> [TLS](http://mirleft.github.io/ocaml-tls/Engine.html) and [OTR (which
>>> does not have any side effects in its
>>> library)](http://hannesm.github.io/ocaml-otr/Otr.Engine.html)
>> 
>> Cool-- sounds reasoanble, I'll attempt to follow that.
>> 
>>> (yes, my draft text disappeared, but might appear again next week)
>> 
>> Look forward to it :)
>> 
>> --
>> Richard Mortier
>> richard.mortier@xxxxxxxxxxxx
>> 
>> _______________________________________________
>> MirageOS-devel mailing list
>> MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


 


Rackspace

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