in reply to Clever optimisation: by design or luck?

The constant folder looks for expressions matching various criteria, and if found executes them, replacing that part of the parse tree with the result. So NaN != NaN isn't handled specially.

Dave.

  • Comment on Re: Clever optimisation: by design or luck?

Replies are listed 'Best First'.
Re^2: Clever optimisation: by design or luck?
by BrowserUk (Patriarch) on Jun 25, 2016 at 09:21 UTC

    It's really cool! Thanks for the clarification.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.