[ccan] I like this idea!
Rusty Russell
rusty at rustcorp.com.au
Wed Jan 7 14:34:39 EST 2009
On Tuesday 06 January 2009 21:04:43 Tim Post wrote:
> Hi Rusty,
>
> I've often dreamed of some tool that would let me search for and grab
> snippets that I need. I have a few questions that I did not find in the
> wiki:
>
> 1 - What is the limit for a snippet? I'm working on a mini library to
> simplify access to xenstore for both privileged and underprivileged
> guests.. its about 1500 lines of code including the public header. Is
> that too big to be a snippet? Its not nearly big enough to be a library,
> more like a wrapper. It simplifies transactions and simplifies
> reads/writes so the app doesn't have to convert strings.
Hi Tim!
I don't see a real upper limit. talloc is 2600 lines, but if someone
drops a 100kloc heap of code in I wouldn't be shocked.
> 2 - Are some command line tools to search for and grab (perhaps even
> update) snippets planned?
Definitely. Direct repo access already exists, but simple tools to
check for updates etc would be good. I think we'll be lead by users & devs.
> 3 - Is some means to register a namespace planned? I.e. if my upload is
> foo, and all of my functions are foo_this or foo_that, is something able
> to detect conflicts?
Another thing we're punting on. For the moment, we have a primitive
namespacize tool, but it's really aimed at preventing conflicts between
CCAN modules and other code, not between modules themselves. Tho there's
no reason it couldn't be tweaked.
Cheers!
Rusty.
More information about the ccan
mailing list