comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Ada 83 - avoiding unchecked conversions.
Date: 1996/11/30
Date: 1996-11-30T00:00:00+00:00	[thread overview]
Message-ID: <dewar.849411513@merv> (raw)
In-Reply-To: 7iUXbCAzSNoyEwlf@djcull.demon.co.uk


Darel says

"
In this case, I wouldnt be surprised if the employer had some kind
of 'coding standards' that generally tend to remove alot of
the more useful features of a language , such as unchecked
conversion/deallocation, or compiler pragmas, these documents tend to
be sweeping, and have to be adhered too."


Sure I realize that this happens sometimes, but I like to know when it
is happening, I have no interest in spending my time helping people
recover from their own deliberately idiotic behavior.

Once I heard a presentation from someone talking about AI in C vs Ada.
He announced that C was much more efficient than Ada for this purposes.
Digging into this nonsense claim, we discovered that he was using new
for each allocation in the case of Ada, but in C was not using malloc
for each allocation, but instead had written his own storage allocator
for the C case. There followed the following discussion.

Q. But why aren't you using malloc in C?

A. Much too inefficient, we could not afford the inefficiency!

Q. But then why not do the same thing in Ada?

A. Impossible to do it in Ada!

Q. What are you talking about, of course you can do this using chapter
   13 facilities.

A. We aren't allowed to use anything from chapter 13

Q. Why not?

A. It would result in non-portable code

Q. No less portable than your C code??

A. Our C code is completely portable, we have run it on two different
   machines.

etc. you get the idea :-)





  reply	other threads:[~1996-11-30  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-27  0:00 Ada 83 - avoiding unchecked conversions Ensco Vendor
1996-11-27  0:00 ` Robert I. Eachus
1996-11-29  0:00 ` Robert Dewar
1996-12-01  0:00   ` Darel Cullen
1996-11-30  0:00     ` Robert Dewar [this message]
1996-12-11  0:00     ` Richard Riehle
1996-12-02  0:00 ` Ted Dennison
1996-12-10  0:00   ` Matthew Heaney
     [not found] <md5:8B831999BCF200C6E70994BDF6CC529F>
1996-12-11  0:00 ` Chris Sparks (Mr. Ada)
1996-12-11  0:00   ` Matthew Heaney
1996-12-12  0:00     ` Chris Brand
1996-12-13  0:00       ` Stephen Leake
1996-12-14  0:00         ` Robert A Duff
1996-12-14  0:00     ` BGaffney42
1996-12-11  0:00   ` Dewi Daniels
1996-12-12  0:00     ` Richard Kenner
1996-12-17  0:00       ` Eric Miller
1996-12-18  0:00         ` Robert Dewar
1996-12-18  0:00           ` Robert A Duff
1996-12-19  0:00           ` Keith Thompson
1996-12-26  0:00             ` Robert Dewar
1996-12-19  0:00   ` Robert I. Eachus
replies disabled

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