comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
To: Ali Bendriss <Ali.Bendriss@drc.ion.ucl.ac.uk>
Cc: comp.lang.ada@ada-france.org
Subject: Re: Binding or not binding
Date: Wed, 31 Jan 2007 14:25:50 +0100
Date: 2007-01-31T14:25:53+01:00	[thread overview]
Message-ID: <45C098DE.1000409@obry.net> (raw)
In-Reply-To: <mailman.59.1170246844.18371.comp.lang.ada@ada-france.org>

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



  parent reply	other threads:[~2007-01-31 13:25 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 [this message]
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 13:25 ` Pascal Obry
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