comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: Binding or not binding
Date: Thu, 01 Feb 2007 09:16:05 +0100
Date: 2007-02-01T09:16:05+01:00	[thread overview]
Message-ID: <eps7k5$m76$1@cernne03.cern.ch> (raw)
In-Reply-To: <mailman.59.1170246844.18371.comp.lang.ada@ada-france.org>

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 ?

One more thing (apart from those already mentioned) that you sometimes 
have to take into account is that some C libraries cannot be easily 
rewritten, because their internal working is either not documented, or 
even not exposed to public at all.

There are many projects that provide C API as part of the package and 
they don't document anything but the interface. In such a case the C 
library is just a black box and there is nothing really to rewrite.

A simple example that I have recently exercised on my own is a C client 
API to some database server. You don't know how it works internally (and 
you probably don't want to know), so it's not even clear what "rewriting 
in Ada" is supposed to mean. If it's open source then you can try to 
learn the details by reading the code (waste of time anyway), but what 
would you do if the source is closed? You have C API and nothing else. 
Bind to it.


-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



      parent reply	other threads:[~2007-02-01  8:16 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
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 [this message]
replies disabled

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