comp.lang.ada
 help / color / mirror / Atom feed
From: bzs@bu-cs.BU.EDU (Barry Shein)
Subject: portability
Date: Fri, 19-Dec-86 21:18:01 EST	[thread overview]
Date: Fri Dec 19 21:18:01 1986
Message-ID: <3036@bu-cs.BU.EDU> (raw)


>I wish I could honestly say "You can't be serious..." when you say that your
>co-workers don't believe that a program in Ada (or any other HOL) will not
>produce the same results when compiled into two different instruction set
>architectures...

>Unfortunately, I can believe that you know people who don't believe this.  It's
>a sad commentary on our profession that these people exist.
>
>					Dave Emery
>					MITRE Corp.

Now, now, let's not be sooo harsh. Issues like hardware representation
of floating point numbers, their precision and accuracy, round-offs
(eg. guard digits) during intermediate calculations and how the
language deals with these differences (if at all) is a valid question.
Machines can vary greatly in this respect and it could be critical
(the original poster specifically spoke about generating the same
output.) If the skeptics need to know if they can write some massive
simulation using heavy floating point with deep convolutions and just
ship it to another machine and assume it will behave the same they may
have valid concerns, no?

Just because it compiles and runs doesn't mean the answers will be
correct. Thank heavens for those "naive" users to whom 'produces the
same output' doesn't mean 'produces the same output give or take the
following 10,000 subtle details of floating point hardware
differences' (which of course could very well mean 'does not produce
the same output'.)

In fact, if this is the issue (and there are others, such as memory
limits), then the answer can only be a big "maybe". There are no easy
blanket answers, someone will have to do their homework.

	-Barry Shein, Boston University

             reply	other threads:[~1986-12-20  2:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-12-20  2:18 Barry Shein [this message]
  -- strict thread matches above, loose matches on Subject: below --
1986-12-19 14:35 portability Emery
replies disabled

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