home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / misc / 3831 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.5 KB

  1. Path: sparky!uunet!usc!rpi!psinntp!psinntp!dg-rtp!sheol!throopw
  2. From: throopw@sheol.UUCP (Wayne Throop)
  3. Newsgroups: comp.lang.misc
  4. Subject: Re: languages which allow the introduction of new operators
  5. Summary: I still see no "semantic model" issues here
  6. Message-ID: <722322705@sheol.UUCP>
  7. Date: 21 Nov 92 02:13:53 GMT
  8. References: <Bxz8px.FBx@mentor.cc.purdue.edu>
  9. Lines: 41
  10.  
  11. ::: The semantic model of the language can, however, greatly inhibit the
  12. ::: programmer.  Try communicating floating binary from one machine to
  13. ::: another; the only semi-portable way I have seen are to convert to
  14. ::: higher precision floating decimal, transmit that, and convert back.
  15. :: What does that have to do with the semantic model of the language?
  16. :: That's a very hardware related issue. [...] internal
  17. :: float format [...]
  18.  
  19. : From: hrubin@pop.stat.purdue.edu (Herman Rubin)
  20. : Message-ID: <Bxz8px.FBx@mentor.cc.purdue.edu>
  21. : Did I say anything about matching the internal representations of
  22. : the numbers?  We can communicate binary integers across machines
  23. : and implementations; the much used notation 0ddddd for octal and
  24. : 0xdddddddd for hexadecimal, bad as they are, do this explicitly.
  25.  
  26. So, what does this have to do with the semantic model of the language?
  27. What prevents one from converting the floats to binary representation
  28. in ascii, transmitting that, reading the result, and doing the
  29. inverse conversion?
  30.  
  31. Presumably Herman is complaining either that it isn't built into the
  32. syntax of the language (which is not a semantic model issue), or that
  33. it isn't available in the standard runtime package of the language
  34. (which is STILL not a semantic model issue).  (The former is a
  35. syntactic issue, the latter an application feature coverage issue.  
  36. Again, *NEITHER* is a semantic model issue.)
  37.  
  38. One more possibility is that Herman is complaining that one can't
  39. portably write a convert-to-binary-ascii routine without access to
  40. operations on floating point numbers not in the language.  But it'd
  41. still be questionable if this were a semantic model issue.  If this IS
  42. what Herman means, I'd appreciate his being specific as to what
  43. operations are missing.
  44.  
  45. Semantic model issues are things such as "do side-effects exist
  46. explicitly in the language" and "can operators be short-circuiting" and
  47. "what is the argument passage model" and "do names specify variables or
  48. values" and "must all types be known at compile-time" and "is
  49. mixed-mode arithmetic allowed (borderline...)" and so on and on.
  50. --
  51. Wayne Throop  ...!mcnc!dg-rtp!sheol!throopw
  52.