POV-Ray : Newsgroups : povray.off-topic : Ratatouille : Re: Ratatouille Server Time
10 Oct 2024 23:21:21 EDT (-0400)
  Re: Ratatouille  
From: Darren New
Date: 27 Mar 2008 12:56:46
Message: <47ebdfde$1@news.povray.org>
Orchid XP v7 wrote:
> Yeah, true. And that's the kind of trick Haskell's compiler is likely to 
> pull off too...

I thought it was pretty cool that the latest Erlang compilers will see 
code like

map(F, [H|T]) -> [F(H)|map(F,T)];
map(F, []) -> [].

and turn it into the same code you'd get with an auxiliary accumulator 
and a call to "reverse" at the end.

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

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