Re: [Seeks-users] deferred C++
Status: Beta
Brought to you by:
beniz
|
From: Jamu K. <jk...@ka...> - 2011-01-17 09:45:16
|
Hi Loic, On Mon, Jan 17, 2011 at 10:31 AM, Loic Dachary <lo...@da...> wrote: >> Cool, it's great to hear that it's useful/interesting. :) Out of >> curiousity, what are you planning to do to it? I've got a branch with >> some basic work in place to add cancellation support... I've also been >> thinking about extracting it from ion (which is a sort of playground >> for C++ for me) and making it a standalone library. > > The seeks DHT is going to use libevent and non blocking I/O. The main > use of the deferred will be to attach them to a file descriptor > expecting an incoming message. I would like to start by copying your > code in the seeks tree and write a few unit tests to get to know your > implementation better. I see that you are using boost and I will also > need to remove this dependency. Do you have any advice related to this ? > > I don't think I'll need features beyond the basics any time soon. A > robust implementation is what I'm looking for, even if it means it's not > feature rich. Ah, I see, sounds interesting. The addition of boost is relatively new... you may want to look at r41 in lp:ion. It's the revision in which I introduced Boost. Before that I used hand-rolled code, which might be easier for you to extract. Also, note that there are unit tests for Deferred in Ion, so you should be able to learn something from them (of course, nothing replaces trying things yourself and getting your hands dirty). Thanks, J. |