[Parted-edge] Language bindings.

David Cantrell dcantrell at redhat.com
Fri Feb 16 03:01:24 CET 2007


On Fri, 2007-02-16 at 06:18 +0530, Anant Narayanan wrote:
> <snip>
> >>> I am not in favor of automatically generated bindings.  I'd rather write
> >>> them by hand and maintain them that way.  Autogenerated code is too
> >>> unprofessional and sloppy, IMHO.
> >> The possibility of writing a customised binding generator for
> >> libparted was also proposed. What about that? Personally I do not like
> >> it, since we would be duplicating the efforts of the SWIG team.
> > 
> > Yeah, this idea seems like a waste of time to me.  In the time we'd
> > spend developing the generation tool, we could have written bindings.
> > 
> >> I prefer hand-written bindings too.
> > 
> > Sounds good.
> 
> Great, this is what I've been wanting all this while. Otavio, hope
> you're okay with this ;) I think we'll sacrifice maintainability for
> code-cleanliness.
> 
> So we'll get started with the 1-1 bindings first. David's idea of
> creating teams is nice. As for the languages, let's get C++ and Python
> first. Debarshi, can you take up the C++ bindings and then move on to
> OO-style bindings for the same? Co-ordination with the libpartedpp
> developers would be awesome.
> 
> I've had some experience with Python bindings; but not sure if I can
> afford the time to dedicate myself to it. If someone is willing to take
> pyparted and complete it, I'll be glad to help them though.

I am upstream for pyparted as well, so I don't mind leading that part.

> The next language on my list is PHP, that's one language I'm quite
> familiar with and would love to see bindings for :)
> 
> We should ship out C++ and Python bindings at-least by 2.0. We also need
> to decide on an appropriate OO-style API for libparted so that it can be
> uniformly used across all bindings. I propose we do that on the Wiki.

Agreed.  I think by working on the C++ and Python bindings concurrently,
we'll be able to see how the OO API should evolve.

-- 
David Cantrell <dcantrell at redhat.com>
Red Hat / Westford, MA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/parted-edge/attachments/20070215/2a90fff9/attachment-0001.pgp


More information about the Parted-edge mailing list