Re: Binding or not binding



Ali Bendriss wrote:

I would like to have your opinion about the best way to go in the future, and in particular if binding a C library is really the way to go.
When we talk about reuse does it mean reusing the libraries done in an other language ? Re-implementing zlib in Ada for example. Is it a waist of time ?
How to choose ? where to start writing in Ada ?

As others have said, there's no single answer.

Bindings are quicker and cheaper, so that's often the reason bindings are used. There's also the valid argument that one should not duplicate the effort that's already gone into the library in another language. So those are arguments for a binding.

Both bindings and Ada versions have to be modified when the original version changes, so that's probably not a major issue, but modifying a binding may be easier than modifying an Ada version.

On the other hand, Ada has tasking, and libraries in other languages don't take tasking into account, so an Ada version can be designed to handle tasking, sometimes better than a thick binding can. Added to the impression that languages with extensive native libraries are better, those are arguments for an Ada version.

So you need to consider how much effort you're willing to put into the matter, both upfront and in the future, and how well the existing library meets your needs, and make your choice accordingly.

--
Jeff Carter
"Alms for an ex-leper!"
Monty Python's Life of Brian
75
.



Relevant Pages

  • Re: Access Runtime on PC without MS Office
    ... After reading and re-reading the material on early and late binding I went ... back to the 2002 copy of the application and checked the registered libraries ... Microsoft Office 10.0 Ojbect Library ... I have checked the the reference again and now find the following: ...
    (microsoft.public.access.setupconfig)
  • Re: Python becoming less Lisp-like
    ... Seconds to minutes for C++ and several hours for Python. ... Matlab is an ugly language with extremely nice libraries. ... I wrote my own binding to the plotting library DISLIN. ...
    (comp.lang.lisp)
  • Re: How come Ada isnt more popular?
    ... needing a binding anymore (a problem with a binding is that you have to ... there is a Pascal translation around and you can go ... It is also a good occasion to seriously debug these libraries. ... Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm ...
    (comp.lang.ada)
  • Re: Re-Marketing Ada (was "With and use")
    ... >> I have never had a problem with multi language projects. ... the effort should be to make Ada as capable as ... > to help you get a binding. ... the project management answer will be to ...
    (comp.lang.ada)
  • Re: How come Ada isnt more popular?
    ... Yves Bailly is even busy writing an Ada binding for Qt, ... There seems to be disagreements between the GNOME developers. ... binding Ada to C libraries that use non-Ada runtime internally? ...
    (comp.lang.ada)