[Parted-edge] Language bindings.

Anant Narayanan anant at kix.in
Fri Feb 16 01:48:36 CET 2007


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

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.

Cheers,
-- 
Anant



More information about the Parted-edge mailing list