Re: [F77] storing bytes data

From: Gary Scott (gary.l.scott_at_lmco.com)
Date: 04/21/04


Date: 21 Apr 2004 07:11:34 -0700

Richard Maine <nospam@see.signature> wrote in message news:<m2isfuglbh.fsf@vega.avradionet.com>...
> "Gary L. Scott" <garyscott@ev1.net> writes:
>
> > Richard Maine wrote:
>
> >> I *DO*
> >> know of current full-language compilers that don't allow representation
> >> of 256 different values in default character.
> >
> > Why would they do that?
>
> Beats me. I'm reporting the facts. I can certainly speculate
> about reasons, but speculation is all it would be. For example,
> maybe limiting values to the 0-127 range (which I think is what
> happened) keeps you from indexing out of range into some tables.
> Or I could imagine other things as well. But all of them are
> speculation. I'll stick to the facts, 2 of which I consider
> relevant here:
>
> 1. The standard doesn't require it.
>
> 2. Not all compilers do it.
>
> P.S. If you think you can always stick any bit pattern in any data
> type without fear of problem, your experience differs from mine.

Absolutely fully understand that. It simply flies in the face of what
a reasonable user would consider an acceptable design. It is fine if
there is some hardware quirk for example on some particular system
that prevents a design which would allow the user full ability to
control the values of a particular data type. In absence of such
legitimate restriction, I expect that the ability of the user to fully
control the value setting of any data type to be a top priority design
goal. (designing an index table with a limit of 127 just because you
don't want to mess with unsigned integers or some other method of
extending the range is a non-starter). Not all code that I write
requires or is even possible to write portably. I write those
portions that can be done so portably, however, unless I am unwilling
to accept a resultant performance hit. That's one reason I use GINO
for the GUI (improved portability). Everyone needs to realize however
that the vast majority of code written today is non-portable because
it is highly tied to operating system capabilities/APIs. I am all for
striving for portability, but absolutely not at expense of not
providing fundamental capabilities which fully exploit the particular
hardware target. I am always willing to explore better methods of
accomplishing a task so long as I get to choose whether any
performance penalty is acceptable or not.

> Try
> to stick a signaling NaN bit pattern in a floating point variable and
> watch the fun. That was from a discussion earlier today on the J3
> list, but it brings back recollection of days long ago. Seems to
> me that I recall having to worry about whether I used integer or real
> variables for my Hollerith data on some f66 machines because of
> some such issues. I'm vaguely recalling a problem with integer on
> the IBM 1130, but the recollection is to vague for me to be confident
> of it. Could have been another machine; my understanding of the
> problem could have been completely wrong, etc.
>
> In practice, as mentioned several times before in this thread,
> you *CAN* stick any bit pattern in an integer. That's what makes
> integer a really good choice for such things.



Relevant Pages

  • Re: Combat, With Limits, Looms for Hybrid V-22
    ... the Spruance was a good ASW destroyer with shedloads of growth room, the Perry was a tight "low" design for a high-low mix that ran out of space in a hurry. ... military would be left with a single piece of equipment. ... reasons the cost of equipment has gone absolulely through the roof, ... And the reason the USMC is still flying around in Sea Knights that are older than those Marines' _parents_ is because the Osprey has been "coming really soon now!" ...
    (sci.military.naval)
  • Re: Maximum Interwar RN, Part 1: Politics
    ... 28kt design. ... Detail calculations on the 15 inch may have produced queries, ... aircraft speeds and sizes would grow by a multiple (speed by perhaps 2, ... One of the reasons the Repulse and PoW still echoes is the shock the navies ...
    (sci.military.naval)
  • Re: Programming careers
    ... "syntax operator" - or even an ordinary operator) but it's not an ... essential part of the core language. ... Traditionally, in AI research, when you can't solve a problem you design ... there are bad reasons. ...
    (rec.arts.sf.composition)
  • Re: What does this NULL mean?
    ... > The number of long threads about NULLs indicates that they are a source ... > comp.databases.theory thread "Does Codd's view of a relational database ... Actually presenting lots of possible reasons was a very bad ... > each occurrence of a potential NULL in a database design may have many ...
    (comp.databases.theory)
  • Re: polk 6x9
    ... "Whether it's for SQ reasons, engineering reasons, budgetary reasons, or otherwise, those who actually produce the speakers obviously don't see a major benefit to the oval style, or we'd see a lot more of them. ... If they had the design tools & manufacturing processes currently available that might not have happened or might not have happened as thoroughly. ... Today an engineer can use FEA tools to predict & control cone flexing, surface distortions, etc. ...
    (rec.audio.car)

Loading