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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,effb80d4bb7716dd X-Google-Attributes: gid103376,public From: Ehud Lamm Subject: Re: Wanted: Ada STL. Reward: Ada's Future Date: 1999/02/01 Message-ID: #1/1 X-Deja-AN: 439481003 References: <790f4q$3l@bgtnsc01.worldnet.att.net> Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: The hebrew University of Jerusalem Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-01T00:00:00+00:00 List-Id: On Mon, 1 Feb 1999, Brian Rogoff wrote: > I disagree with the opinion expressed by others replying that an STL like > library is an inappropriate map to Ada 95, and haven't heard a reasoned > argument for this assessment. I think Ada 95 is in some ways better than > C++ for this, in particular the style of connecting packages together > enabled by generic formal package parameters and null bodied generic > signature packages makes the structure of the library quite clear. > Some time ago I found on the web (sorry but I don't have the exact reference) an article called "Implementing the C++ Standard Template Libray in Ada 95" by Ulfar Erlingsson and Alexander Knostantinou. Those interesetd in this question should read this. It seems that one problem in implementing STL in Ada95 is the lack of pointer arithmetic. This causes perofremance problems in real sense (to be exact the result is worse from a complexity point of view). This is a "nice" result in that it tells you something about the price you pay for pointer abstraction etc. However it is sad from a practical point of view. I haven't really pursued this, so I can't vouch that there isn't some trick to solve this problem. I might also add, to those unfamiliar witht the history of STL and generic programming, that the first attempts at producing such a library - by Alexander Stepanov - were in Ada. My site points to two interives with him, that you may find of interest. Ehud Lamm mslamm@pluto.mscc.huji.ac.il http://www2.cybercities.com/e/ehud - Ada & SE & More!