Skip to content

For information#1

Open
cheme wants to merge 13 commits intodtantsur:masterfrom
cheme:master
Open

For information#1
cheme wants to merge 13 commits intodtantsur:masterfrom
cheme:master

Conversation

@cheme
Copy link
Copy Markdown
Contributor

@cheme cheme commented Jan 30, 2015

Two commits, not sure you will be interested by the second (I added some genericity to try to reuse kvnode on some of my code), the first could be a starting point for update to rust nightly.

Comment thread src/base.rs Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to add some documentation comments

@dtantsur
Copy link
Copy Markdown
Owner

dtantsur commented Feb 6, 2015

Hi @cheme, thank you for contributing! I've been pretty busy this weak, and I'll definitely review this code very soon, but not today :)

Being generic is rarely bad, I still need to figure out how it's going to work for Peer trait. Maybe we should leave Node as a base thingy, but make it generic over ID type. Not sure that we'll need different peer implementations, do you have a use case?

I'll probably understand it once I get some good sleep :)

Cheers

P.S.
No idea why github didn't notify me about this PR by email. Sorry for delay...

@dtantsur
Copy link
Copy Markdown
Owner

dtantsur commented Feb 6, 2015

accepted first commit (3a98c43) into master, as it seems non-contradictive enough. Will review the remaining later..

Comment thread src/knodetable.rs Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out?

@dtantsur
Copy link
Copy Markdown
Owner

dtantsur commented Feb 6, 2015

Hi again! I've also cherry-picked the last commit (except for commenting stuff). Now it builds, thanks a lot for your efforts! Version 0.0.1 released.
Please rebase, if you want to discuss genericity.

Cheers

@cheme
Copy link
Copy Markdown
Contributor Author

cheme commented Feb 8, 2015

Hi,

thanks for looking and updating,

I am currently trying to implement a generic library for implementing
some "distributed table" (not only hash table), and I use for peer and
content a generic interface : KeyVal which only defines a key/id and
the ability to get a socket address, that is why I tried to run it
with KNodeTable (using it as a routing option).

In fact, I had to define an other trait to link it : to convert key to
bigint, so I think part of the generic code is a bit awkward.

I'll let you know if my implementation become clean enough to publish.

Émeric

2015-02-06 19:07 UTC+01:00, Dmitry Tantsur notifications@github.com:

Hi again! I've also cherry-picked the last commit (except for commenting
stuff). Now it builds, thanks a lot for your efforts! Version 0.0.1
released.
Please rebase, if you want to discuss genericity.

Cheers


Reply to this email directly or view it on GitHub:
#1 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants