comp.lang.ada
 help / color / mirror / Atom feed
From: James Alan Farrell <jfarrell@nospam.com>
Subject: Re: Charles container library usage examples
Date: Fri, 09 Sep 2005 10:57:01 -0400
Date: 2005-09-09T10:57:01-04:00	[thread overview]
Message-ID: <4321a2e0_3@newsfeed.slurp.net> (raw)
In-Reply-To: <m31x42rjbk.fsf@rr.trudgett>

[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]

> You can see I ditched the list for a simple array! I already had more
> punishment than I cared for! ;-) I sort of don't mind going to this
> much trouble for the advantages that Ada can give me over, say, Lisp
> (which is what I'm translating from) in terms of execution speed, low
> level control, native concurrency, etc. etc., but it *is* a fair bit
> to replace five lines of unremarkable Lisp! :-) I was thinking that
> the elaborateness of all this must provide a powerful disincentive for
> Ada programmers to use collections/containers. Of course, if you
> really need a collection, then you'll need to go to the trouble to
> have one; but I'm thinking that there must be a whole lot of in
> between cases where, although you can just get by with, say, arrays,
> records, classes, even home-grown linked lists, and so on, it really
> would be better to use the appropriate data structure and
> algorithms. Anyway, that's just me daydreaming. Perhaps someone might
> have something actually sensible to say about these thoughts.

I'm never sure if my opinions are sensible or not, but...

All languages have strengths, or they would dissappear through disuse. 
The strengths of different languages must be different or we'd have just 
  one language.  Therefor all languages must also have (comparative) 
weaknesses.

One strength of Lisp is how easy it is to use dynamic data structures. 
But it has weaknesses in weak typing and slow execution.

Setting up the Charles library seems to me about equal in lines of code 
and what you have to know to setting up STLs in C++.  The first few 
times is quite confusing and frustrating, but it gets easier as you do 
it more often.  It is still easier than creating your own from scratch.

JAF

[-- Attachment #2: jfarrell.vcf --]
[-- Type: text/x-vcard, Size: 88 bytes --]

begin:vcard
fn:James Alan Farrell
n:Farrell;James
org:GrammaTech
version:2.1
end:vcard


  parent reply	other threads:[~2005-09-09 14:57 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-03  2:38 Charles container library usage examples David Trudgett
2005-09-03  5:15 ` Matthew Heaney
2005-09-03  9:45   ` Simon Wright
2005-09-04  6:25     ` David Trudgett
2005-09-05 11:28       ` Georg Bauhaus
2005-09-04  0:26   ` David Trudgett
2005-09-04  9:49     ` Matthew Heaney
2005-09-06  3:01       ` David Trudgett
2005-09-06 16:22         ` Jeffrey Carter
2005-09-07  0:15         ` Matthew Heaney
2005-09-04 17:19     ` Ludovic Brenta
2005-09-06  3:01       ` David Trudgett
2005-09-06  5:08         ` Ludovic Brenta
2005-09-06  6:46           ` David Trudgett
2005-09-06  7:26             ` Ludovic Brenta
2005-09-24  0:05               ` Randy Brukardt
2005-09-09 14:57         ` James Alan Farrell [this message]
2005-09-10  7:38           ` David Trudgett
2005-09-10 14:55             ` Matthew Heaney
2005-09-10 15:26               ` Ludovic Brenta
2005-09-10 17:58                 ` Matthew Heaney
2005-09-12  0:24               ` Robert A Duff
2005-09-11 10:52             ` Georg Bauhaus
2005-09-11 21:14               ` David Trudgett
2005-09-13 23:41                 ` Björn Persson
2005-09-14  6:39                   ` David Trudgett
2005-09-12  0:21             ` Robert A Duff
2005-09-12  0:57               ` David Trudgett
2005-09-12  1:01                 ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox