home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2260 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!wupost!darwin.sura.net!Sirius.dfn.de!chx400!sicsun!disuns2!disuns2.epfl.ch!simon
  2. From: simon@lia.di.epfl.ch (Simon Leinen)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: Calling C function from LCL
  5. Message-ID: <SIMON.92Aug20120853@liasg1.epfl.ch>
  6. Date: 20 Aug 92 10:08:53 GMT
  7. References: <Bt8G1E.229@iai.kfk.de> <16u3jhINN9m1@early-bird.think.com>
  8.     <4eYpN3W00jeiEkhC8z@cs.cmu.edu>
  9. Sender: news@disuns2.epfl.ch
  10. Organization: DI-LIA -- Ecole Polytechnique Federale de Lausanne
  11. Lines: 17
  12. Nntp-Posting-Host: liasg1.epfl.ch
  13. In-reply-to: William.Lott@cs.cmu.edu's message of 20 Aug 92 00:22:27 GMT
  14. X-Md4-Signature: 7ccb5de011e3207ca104defed5a2cb2a
  15.  
  16. In article <4eYpN3W00jeiEkhC8z@cs.cmu.edu> William.Lott@cs.cmu.edu writes:
  17.  
  18.    We [CMU Common Lisp, that is] use the low three bits as a type-tag,
  19.    but have 000 for even fixnums and 100 for odd fixnums.
  20.  
  21. That's exactly the same representation as in Lucid, at least on the
  22. SPARC.
  23.  
  24.    The implicit multiplication by 4 is handy when accessing arrays of
  25.    word (4 byte) sized objects: it's pre-scaled.
  26.  
  27. Yes; this can make vector-intensive code faster than corresponding C
  28. code in many cases... (even if the code has been naively translated
  29. from C to Common Lisp.  I think the "Triangle" Gabriel benchmark works
  30. that way :-)
  31. -- 
  32. Simon.
  33.