The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Sam Tobin-Hochstadt <sa...@ccs.neu.edu>
Date: Thu, 27 Sep 2012 12:25:30 -0400
Local: Thurs, Sep 27 2012 12:25 pm
Subject: Re: [racket] How fast is zero? was: Find nth term of a List
On Thu, Sep 27, 2012 at 12:10 PM, Tim Brown <tim.br...@cityc.co.uk> wrote:
There is none: http://docs.racket-lang.org/reference/number-types.html?q=zero%3F#%28...
> What is the difference in correctness between "(= x 0)" vs. "(zero? x)"? > And given a choice of (eq? 0 x), (= 0 x) and (zero? x), which
(= 0 x) and (zero? x) should compile to the same code.
> would, and which should take the shortest time to perform 10^12 times? (eq? 0 x) produces simpler code, because:
(= 0 0.0) => #t, but (eq? 0 0.0) => #f.
For actual performance numbers, as opposed to reasoning from
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||