Re: Binding or not binding



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
.



Relevant Pages

  • Re: Standard Library Interest?
    ... Not everyone is good at designing "libraries" for> general use, and so I would suggest that in a library sense,> some *are* more suitable for others. ... I would add that there needs> to be a more "general purpose computing" focus, to get Ada into> more mainstream use. ... :-)> If there is enough other interested parties, then perhaps a> "competition" of sorts between different teams could be> arranged. ... Like I mentionned elsewhere I'd be lying if I didn't wanna get paid for this effort especially if it's gonna help the vendors. ...
    (comp.lang.ada)
  • Re: Standard Library Interest?
    ... The reason for that goal is to make Ada more attractive to ... Looking at existing libraries (those ... the vendors & their customers so they could pick from the list what ... > architectures like ALSA woudl be a good idea too so that Ada developers can ...
    (comp.lang.ada)
  • Re: Standard Library Interest?
    ... > and start calling it the Conventional Ada Library..." ... We definitaly need libraries of all kinds, ... architectures like ALSA woudl be a good idea too so that Ada developers can ... > I don't even think it would need to be all the vendors. ...
    (comp.lang.ada)
  • Re: Standard Library Interest?
    ... > "Ada World" Webmaster ... > if it's gonna help the vendors. ... > *** As for competition I wonder, if time wouldn't be better spent forming ... *** Indeed but that's because libraries were started without being discussed ...
    (comp.lang.ada)
  • Re: Binding or not binding
    ... An one-day-work rewriting in Ada is probably fine, ... do you think it would have been wise to recode the Gtk+ ... Is it only a question of money (project funding)? ... will probably easy binding to C++ based libraries. ...
    (comp.lang.ada)