comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Creem <jeff@thecreems.com>
Subject: Re: Binding or not binding
Date: Wed, 31 Jan 2007 08:21:07 -0500
Date: 2007-01-31T08:21:07-05:00	[thread overview]
Message-ID: <8nh694-805.ln1@newserver.thecreems.com> (raw)
In-Reply-To: <mailman.59.1170246844.18371.comp.lang.ada@ada-france.org>

Ali Bendriss wrote:
> Hello,
> 
> Could you please first excuse me if my past and maybe future posting in this 
> group were (will be) sometimes awkward. But I will really like to be more 
> active using and promoting Ada.
> 
> I was really interested by the thread about "How come Ada isn't more popular?"
> 
> 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 ?
>  
> If I need some compression lib like jpeg2k for example which way to go ?
> 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) ? 
> 
> Thanks for your feedback in the professional and the hobbyist side.
> 

It depends on your goals. In general, the conventional wisdom is that 
you should simply bind to existing libraries and as a general rule, this 
usually makes sense. However, having said that, the net is full of 
libraries in a variety of languages implemented natively in that 
language and the existence of these native libraries is sometimes what 
makes people call those languages "good".

So, if my goal is to just get some work done, and I need the 
functionality of some library, and the functionality is non-trivial, 
I'll usually go the binding route.

If I want functionality and existing libraries don't provide it and/or 
provide it in a manner that is not really what I want, I start to 
consider writing a native version.

Sometimes dealing with either the build process, license terms, compiler 
requirements of an existing library is nearly as much work as just 
writing and maintaining a native version. Finding this tipping point 
will depend on a lot of factors but certainly for functionality <~ 100 
lines of code, the intellectual overhead of a binding and another 
language is usually not worth it.

Having something like SWIG working and well understood for Ada would 
certainly help bring bindings along.

Work is progressing in that area but I have not really looked at 
progress recently.

http://gnuada.svn.sourceforge.net/viewvc/gnuada/trunk/projects/swig-1.3.29/



  reply	other threads:[~2007-01-31 13:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-31 12:33 Binding or not binding Ali Bendriss
2007-01-31 13:21 ` Jeffrey Creem [this message]
2007-01-31 13:25 ` Pascal Obry
2007-01-31 13:25 ` Pascal Obry
2007-01-31 15:56   ` Dmitry A. Kazakov
2007-01-31 18:31     ` tmoran
2007-02-05 20:41     ` Björn Persson
2007-02-06  1:58       ` Randy Brukardt
2007-02-06  8:38       ` Dmitry A. Kazakov
2007-02-06  9:14         ` Alex R. Mosteo
2007-02-06  9:11       ` Ludovic Brenta
2007-01-31 18:44 ` Jeffrey R. Carter
2007-01-31 21:31 ` gautier_niouzes
2007-02-01  0:13   ` Jeffrey R. Carter
2007-02-01  8:16 ` Maciej Sobczak
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox