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!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s71.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Binding or not binding References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <%r5wh.329426$FQ1.278840@attbi_s71> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s71 1170269051 12.201.97.213 (Wed, 31 Jan 2007 18:44:11 GMT) NNTP-Posting-Date: Wed, 31 Jan 2007 18:44:11 GMT Organization: AT&T ASP.att.net Date: Wed, 31 Jan 2007 18:44:11 GMT Xref: g2news2.google.com comp.lang.ada:8786 Date: 2007-01-31T18:44:11+00:00 List-Id: 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 ? As others have said, there's no single answer. Bindings are quicker and cheaper, so that's often the reason bindings are used. There's also the valid argument that one should not duplicate the effort that's already gone into the library in another language. So those are arguments for a binding. Both bindings and Ada versions have to be modified when the original version changes, so that's probably not a major issue, but modifying a binding may be easier than modifying an Ada version. On the other hand, Ada has tasking, and libraries in other languages don't take tasking into account, so an Ada version can be designed to handle tasking, sometimes better than a thick binding can. Added to the impression that languages with extensive native libraries are better, those are arguments for an Ada version. So you need to consider how much effort you're willing to put into the matter, both upfront and in the future, and how well the existing library meets your needs, and make your choice accordingly. -- Jeff Carter "Alms for an ex-leper!" Monty Python's Life of Brian 75