Re: Binding or not binding
- From: Pascal Obry <pascal@xxxxxxxx>
- Date: Wed, 31 Jan 2007 14:25:50 +0100
Ali,
I don't think there is a definite answer to this. It all depends on the
size of the library. An one-day-work rewriting in Ada is probably fine,
but when the work done on the C side is years ? For example in AWS we
bind to the Zlib, and OpenSSL libraries, it would be a waste of time to
recode both of them in Ada.
Another example, do you think it would have been wise to recode the Gtk+
library in Ada... certainly not :)
If I need some compression lib like jpeg2k for example which way to go ?
For such library I would bind to the C library.
I would love to be able to manipulate some DICOM image format in Ada for
example. Most of the actual project implementing the DICOM standard are in
C++ and java. Is it only a question of money (project funding) ?
Note that recent GNAT versions are now using the same object layout as
G++. It means that a GNAT tagged type can be mapped to a C++ class. This
will probably easy binding to C++ based libraries.
Thanks for your feedback in the professional and the hobbyist side.
You're welcome :)
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
.
- Follow-Ups:
- Re: Binding or not binding
- From: Dmitry A. Kazakov
- Re: Binding or not binding
- References:
- Binding or not binding
- From: Ali Bendriss
- Binding or not binding
- Prev by Date: Re: Binding or not binding
- Next by Date: Re: Binding or not binding
- Previous by thread: Re: Binding or not binding
- Next by thread: Re: Binding or not binding
- Index(es):
Relevant Pages
|