POV-Ray : Newsgroups : povray.off-topic : How does Haskell work? : Re: How does Haskell work? Server Time
4 Sep 2024 09:20:36 EDT (-0400)
  Re: How does Haskell work?  
From: Darren New
Date: 17 Mar 2010 16:05:02
Message: <4ba135ee$1@news.povray.org>
Invisible wrote:
> At a simple level, you could just scan the source when you compile it, 
> and replace any calls to the #ifTrue:ifFlase: method (and friends) with 
> the appropriate machine instructions.

Internally, that's what it does. Of course, if you send that to something 
that isn't a boolean, *then* you get an even bigger overhead.

> Then again, Smalltalk is an interpretted language. Speed is quite 
> clearly *not* its main objective.

This is not something that noticably slows things down, tho. When 
*everything* is a message dispatch, you can design your microcode to do that 
efficiently.

-- 
Darren New, San Diego CA, USA (PST)
   Yes, we're traveling togeher,
   but to different destinations.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.