home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / compiler / 1922 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!darwin.sura.net!ukma!cs.widener.edu!eff!world!iecc!compilers-sender
  3. From: chris@gargoyle.uchicago.edu (Chris Johnston)
  4. Subject: Re: Modulo n arithmetics
  5. Reply-To: chris@gargoyle.uchicago.edu (Chris Johnston)
  6. Organization: University of Chicago Computing Organizations
  7. Date: Thu, 19 Nov 1992 19:49:44 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-11-113@comp.compilers>
  10. References: <92-11-029@comp.compilers>
  11. Keywords: arithmetic
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 18
  14.  
  15. fabre@gr.osf.org (Christian Fabre) writes:
  16. >I am wondering if any languages or application heavily rely on
  17. >modulo arithmetics:
  18.  
  19. Some applications...
  20.  
  21. How about communication, TCP uses 32bit counters to sequence packets, the
  22. packet following 32 ones is zero.  Trading (stocks/futures) cards are
  23. numbered 000 to 999.  Database rows...  Any counter that can wrap to zero.
  24.  
  25. You want to be able to sort items arriving out of order and detect missing
  26. items.  The TCP folk call this sequence space arithemtic.  See
  27. /usr/include/netinet/tcp_seq.h
  28.  
  29. cj
  30. -- 
  31. Send compilers articles to compilers@iecc.cambridge.ma.us or
  32. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  33.