comp.lang.ada
 help / color / mirror / Atom feed
* (no subject)
@ 2012-07-26 14:30 
  0 siblings, 0 replies; only message in thread
From:  @ 2012-07-26 14:30 UTC (permalink / raw)


Thu, 26 Jul 2012 07: 30:00 -0700 (PDT)
        Thu, 26 Jul 2012 07:29:59 -0700 (PDT)
MIME-Version: 1.0
Path: p10ni61947386pbh.1!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!q21no13918010qas.0!news-out.google.com!a15ni105485768qag.0!nntp.google.com!q21no13917853qas.0!news-out.google.com!b9ni64781483pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!border6.newsrouter.astraweb.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!feed.xsnews.nl!border-3.ams.xsnews.nl!newsfeed.straub-nv.de!news.swapon.de!newsfeed.x-privat.org!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail
From: "Randy Brukardt" <randy@rrsoftware.com>
Newsgroups: comp.lang.ada
Subject: Re: Signature Package With Generic Proceedure
Date: Mon, 23 Jul 2012 21:53:20 -0500
Organization: Jacob Sparre Andersen Research & Innovation
Lines: 30
Message-ID: <jul2n4$af5$1@munin.nbi.dk>
References: <045f7b44-2a4a-4292-80fd-0b6bc8ee3465@googlegroups.com> <a1816272-ef92-4402-bc3a-991bd8522697@googlegroups.com> <88734b25-68e5-42b2-89ea-0c0e3fc9fbc5@googlegroups.com> <93f32ea9-a61d-4148-83be-258ae0676cac@googlegroups.com> <79925d0c-b2dd-44a3-9451-48f0ee19485f@googlegroups.com>
NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net
X-Trace: munin.nbi.dk 1343098404 10725 69.95.181.76 (24 Jul 2012 02:53:24 GMT)
X-Complaints-To: news@jacob-sparre.dk
NNTP-Posting-Date: Tue, 24 Jul 2012 02:53:24 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
Bytes: 2535
X-Received-Bytes: 2956

"Keean Schupke" <keean.schupke@googlemail.com> wrote in message 
news:79925d0c-b2dd-44a3-9451-48f0ee19485f@googlegroups.com...
...
> This is datatype generic programming, one of the things I thought Ada is 
> good at.
> Signatures are the only way in Ada of doing this with no runtime cost, and 
> the only way
> using generics. Signatures belong to a family of constructs across several 
> languages with
> similar properties. For example:

There's nothing in Ada that says generics have to be implemented with "no 
runtime cost". Many Ada 83 implementations, and a few more recent 
implementations, share all generic instantiations. The effect is very 
similar to tagged type dispatching, and it's most useful when there are a 
lot of instances in a program. Janus/Ada certainly does this (it might be 
the last to do "universal generic sharing"). Some Ada implementations do 
"partial generic sharing", where the parameters involved determine if 
sharing is used.

Normally, at this point, I'd say something about premature optimization, but 
I realize from your past messages that you're already beyond that stage, so 
I won't say any more.

                                       Randy.








^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-26 14:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-26 14:30 

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