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

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



Le vendredi, 13 novembre 2015 Ã 15:22, Hannes Mehnert a Ãcrit :
> I personally find the cohttp and TCP/IP code hard to read due to the use
> of lots of functors / module abstractions, which are not necessarily
> needed IMHO.

Not only they are not needed, it's also the wrong way of handling this as it is 
well known that factoring out module dependencies as functors doesn't scale in 
practice. The question to ask yourself for using a functor is: do I need 
multiple instances of the functor in *the same program* â good examples: 
{Map,Set}.Make.

See http://www.cis.upenn.edu/~bcpierce/papers/modules-icfp.ps for more on this. 
 

Best,  

Daniel



_______________________________________________
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®.