home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / misc / 3637 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.8 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!olivea!charnel!rat!usc!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!hplextra!otter.hpl.hp.com!hpltoad!cdollin!kers
  2. From: kers@hplb.hpl.hp.com (Chris Dollin)
  3. Newsgroups: comp.lang.misc
  4. Subject: Re: languages which allow the introduction of new operators
  5. Message-ID: <KERS.92Nov13093149@cdollin.hpl.hp.com>
  6. Date: 13 Nov 92 09:31:49 GMT
  7. References: <veit.721491920@du9ds3> <TB06.92Nov11165010@CS1.CC.Lehigh.EDU> <1992Nov12.082643.8415@arb-phys.uni-dortmund.de> <BxLxqu.96C@men
  8. Sender: news@hplb.hpl.hp.com (Usenet News Administrator)
  9. Organization: Hewlett-Packard Laboratories, Bristol, UK.
  10. Lines: 25
  11. In-Reply-To: hrubin@pop.stat.purdue.edu's message of Thu, 12 Nov 1992 14:32:54 GMT
  12. Nntp-Posting-Host: cdollin.hpl.hp.com
  13.  
  14. In article ... hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  15.  
  16.    Some of these allow some flexibility in expression syntax.  But how
  17.    many of these could conveniently unpack a floating point number into
  18.    its exponent and mantissa?  In particular, could you write
  19.  
  20.        exponent, mantissa =.U float
  21.  
  22. In Pop, you could write
  23.  
  24.     floating_thing.Hermans_dismantle -> (exponent, mantissa)
  25.  
  26. so long as you'd defined Hermans_dismantle somewhere as a procedure with the
  27. appropriate effect. 
  28.  
  29. At the moment, you'd have to hack the Pop compiler to make this generate
  30. in-line code. If there was a machine instruction to do the job, I should
  31. imagine this might take the compiler-writer, oh, half-an-hour or so. Then
  32. there's the rest of the week for documenting, porting, testing, checking, and
  33. justifying the extension to Pop users who'd rather have an even faster garbage
  34. collector. 
  35. --
  36.  
  37. Regards,    | "Layered protocols give the software implementor a chance to
  38. Kers.       | ruin his performance in each layer." - Don Gillies
  39.