home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.arch      Apparently more than just beeps & boops      131,241 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 129,473 of 131,241   
   MitchAlsup to All   
   Re: What I did on my summer vacation   
   23 Aug 25 18:04:09   
   
   From: user5857@newsgrouper.org.invalid   
      
   EricP  posted:   
      
   > Terje Mathisen wrote:   
   > > Anton Ertl wrote:   
   > >> Terje Mathisen  writes:   
   > >>   
   > >>> This would have simplified all sorts of array/matrix sw where both   
   > >>> errors (NaN) and missing (None) items are possible.   
   > >>   
   > >> In what ways would None behave differently from SNaN?   
   > >   
   > > It would be transparently ignored in reductions, with zero overhead.   
   >   
   > There is also the behavior with operators - how is it different from xNan?   
   > xNan behaves like an error and poisons any calculation it is in,   
   > which is also how SQL behaves wrt NULL values:   
   >   
   >    value + xNan => xNan   
   >    value * xNan => xNan   
   >   
   > whereas Null is typically thought of as a missing value:   
   >   
   >    value + Null => value?   
   >    value * Null => 0?   
   >   
      
   I think they would want::   
      
        value + xNaN  =>  xNaN   
        value × xNaN  =>  xNaN   
        value / xNaN  =>  xNaN   
        xNaN  / value =>  xNaN   
      
   Where the non-existent operand is treated as turning the calculation   
   into a copy of the xNaN. Some architectures put a payload into the   
   xNaN such as a 3-bit code for why the xNaN was created, others also   
   IP to help identify the instruction the xNaN first occurred.   
      
   > It could also have different operator instruction options that select   
   > different behaviors similar to rounding mode or exception handling bits.   
   > All those option bits would take up a lot of instruction space.   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca