From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b68ad30ece6a8cb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!grolier!news.enst.fr!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <45C098DE.1000409@obry.net> Date: Wed, 31 Jan 2007 14:25:50 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Ali Bendriss CC: comp.lang.ada@ada-france.org Subject: Re: Binding or not binding References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 31 Jan 2007 14:25:53 CET NNTP-Posting-Host: 86.205.99.141 X-Trace: 1170249953 news.orange.fr 5086 86.205.99.141:2594 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:8771 Date: 2007-01-31T14:25:53+01:00 List-Id: 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