From ... From: Erik Naggum Subject: Re: Floating Point speed in Common Lisp Date: 1998/03/29 Message-ID: <3100173493999671@naggum.no>#1/1 X-Deja-AN: 338837342 References: <6e1v1c$7el@desire.lavielle.com> <4n1zw8j50i.fsf@rtp.ericsson.se> <87btvc8m8q.fsf@isttest.bogus> <4nwwe0gesm.fsf@rtp.ericsson.se> <87n2ev265j.fsf@isttest.bogus> <4nu393hj8t.fsf@rtp.ericsson.se> <87lnuf1yd6.fsf@isttest.bogus> <4npvjrh6g6.fsf@rtp.ericsson.se> <87iupj12zo.fsf@isttest.bogus> <35096D58.B149D0B5@computer.org> <3098801908586746@naggum.no> <3099027379447143@naggum.no> <35195116.1477CAC0@computer.org> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * Andi Kleen | How can bigloo or Stalin produce faster code than C when they both | compile into C? the same way some C compilers produce faster and better assembly code than humans could do even though they produce assembly code: by going way beyond the mental limitations of the human mind in the code produced, such as the number of "open issues" that can be dealt with. for the most part, this is a purely mechanical limitation, so if a programmer can make another program (such as a compiler) juggle the open issues for him, he can deal with more of them. since C is an amazingly stupid language, the number of open issues for even an excellent C programmer are strictly limited to a small constant number. (the human consciousness is reported to be able to deal with 7 simultaneously open issues, which very from all concrete, like something to watch out for, to very abstract, like a free variable. most programming languages do not optimize for the use of these "slots" in the human psyche, and so can vary greatly in how many are required at any time. compilers, however, do not have to worry about such slots, and can have any number of issues open at a time, and can thus make what would appear to a human being to be highly intelligent conclusions; recall the references to the "sufficiently smart compiler".) #:Erik -- religious cult update in light of new scientific discoveries: "when we cannot go to the comet, the comet must come to us."