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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.icl.net!proxad.net!cleanfeed2-a.proxad.net!nnrp12-2.free.fr!not-for-mail Return-Path: X-Greylist: delayed 1256 seconds by postgrey-1.24 at green; Wed, 31 Jan 2007 14:46:59 CET X-ME-UUID: 20070131132553739.B49E01C0017A@mwinf2408.orange.fr 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 Subject: Re: Binding or not binding References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ada-france.org Cc: comp.lang.ada@ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 NNTP-Posting-Date: 31 Jan 2007 14:50:02 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1170251402 news-3.free.fr 26590 88.191.14.223:41897 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8772 Date: 2007-01-31T14:50:02+01:00 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