[Numpy-discussion] Re: numexpr thoughts

Robert Kern robert.kern at gmail.com
Mon Mar 6 15:32:02 CST 2006


David M. Cooke wrote:

> 5. Currently, we use a big switch statement. There are ways (taken
>    from Forth) that are better: indirect and direct threading.
>    Unfortunately, it looks the easy way to do these uses GCC's
>    capability to take the address of local labels. I'll add that if I
>    can refactor the machine enough so that both variants can be
>    produced. Have a look at
>    http://www.complang.tuwien.ac.at/anton/vmgen/
>    which is the virtual machine generator used for gforth (but
>    applicable to other things). I may use this.

Hmmm. If LLVM weren't so huge and such a pain to install, I might recommend
looking at using it. It could make a fun experiment, though.

-- 
Robert Kern
robert.kern at gmail.com

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco





More information about the Numpy-discussion mailing list