[Numpy-discussion] announce: pyjit, a little jit for creating numpy ufuncs

Simon Burton simon at arrowtheory.com
Thu Apr 20 23:24:59 CDT 2006


Hi,

Inspired by numexpr, pypy and llvm, i've built a simple 
JIT for creating numpy "ufuncs" (they are not yet real ufuncs).
It uses llvm[1] as the backend machine code generator.

The main things it can do are:

 *) parse simple python code (function def's)
 *) generate SSA assembly code for llvm
 *) build ufunc code for applying to numpy array's

When I say simple I mean it:

def calc(a,b):
  c = (a+b)/2.0
  return c

No control flow or type inference has been implemented.

As with numexpr, significant speedups are possible.

I'm putting this announce here to see what the other numpy'ers think.

$ svn co http://rubis.rsise.anu.edu.au/local/repos/elefant/pyjit

bye,

Simon.

[1] http://llvm.org/


-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 




More information about the Numpy-discussion mailing list