[Parted-edge] Language bindings.

Debarshi Ray debarshi.ray at gmail.com
Fri Feb 16 00:07:37 CET 2007


> > There were a few grey areas like how to provide the basic 1 to 1
> > bindings, and the object-oriented bindings on top of them. A special
> > case is that of the C++ bindings. Since libparted is already natively
> > in C, how do we do the C++ bindings? Libpartedpp
> > (http://savannah.nongnu.org/projects/libpartedpp) already provides a
> > hand-coded implementation.

> Perhaps we can incorporate what this project has done and expand it from
> there.

I guess we should co-ordinate with the libpartedpp developers
(chrisime_at_gnome_dot_org, and chrizel_at_gmx_dot_net) regarding
this. No use duplicating effort and wasting it. One of the major
concerns about hand written bindings was the issue of maintainability.
That can be solved if the libpartedpp folks agree to look after the
C++ bindings in Parted. If they do not, then I can volunteer. :-)

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

I prefer hand-written bindings too.

Happy hacking,
Debarshi
-- 
After the game the king and the pawn go into the same box.
                -- Italian proverb



More information about the Parted-edge mailing list