Re: Size-specific memory access words



Jerry Avins wrote:
>
> Julian V. Noble wrote:
>
> ...
>
> > I myself would prefer to see the notation
> >
> > I16@ I16! 16 bits
> > I32@ I32! 32 bits
> > I64@ I64! 64 bits
> > etc.
> >
> > At least these are clear and unequivocal in meaning.
>
> Clear, but wordy. Wouldn't these suffice?:
>
> 16@ I16! 16 bits
> 32@ I32! 32 bits
> 64@ I64! 64 bits
> etc.
>
> I see no need for consistency with F@, etc.
>

Well, you save 1 letter. Might be worthwhile in an embedded app, but there
you are probably not using 64-bit or even 32-bit processors, nyet?

Doesn't save typing if you are using an intelligent editor. So why not
make the distinction between integers and other types of data (e.g.
floats, strings, blah, blah)?

Despite the epigraph below, I actually like consistency--at least when it
isn't foolish! In particular, since floats and integers occupy different
stacks (at least on the systems I prefer--sorry, Krishna!) it seems to me
worthwhile to remind oneself of that fact. At my advanced age and state of
mental decrepitude I need all the mnemonic help I can get.

Moreover, ANS requires up to 31-character names.


--
Julian V. Noble
Professor Emeritus of Physics

http://galileo.phys.virginia.edu/~jvn/

"A foolish consistency is the hobgoblin of little minds, adored
by little statesmen and philosophers and divines."

-- Ralph Waldo Emerson
.



Relevant Pages

  • Re: Scientific Forth
    ... ANSI Forth can run in 1/10 the RAM we ... Julian V. Noble wrote: ... My book, "Scientific Forth (blah, blah)" is out of print and will ...
    (comp.lang.forth)
  • Re: Scientific Forth
    ... Julian V. Noble wrote: ... My book, "Scientific Forth (blah, blah)" is out of print and will ... Unfortunately it is pre-ANS and I won't ...
    (comp.lang.forth)
  • Re: Scientific Forth
    ... Julian V. Noble wrote: ... My book, "Scientific Forth (blah, blah)" is out of print and will ... Unfortunately it is pre-ANS and I won't ...
    (comp.lang.forth)
  • Re: Scientific Forth
    ... Julian V. Noble wrote: ... My book, "Scientific Forth (blah, blah)" is out of print and will ... Unfortunately it is pre-ANS and I won't ...
    (comp.lang.forth)
  • Re: global unconstrained multidimensional optimization on reals?
    ... "Julian V. Noble" schrieb: ... multidimensional optimization on real numbers? ... Numerical Recipes. ...
    (sci.math.num-analysis)