per-method jit compiler

2010-04-06 Thread Luis M . González
On 4 abr, 00:09, Steven D'Aprano st...@remove-this- - Ocultar texto de la cita - cybersource.com.au wrote: On Sat, 03 Apr 2010 22:58:43 +, kj wrote: Suppose I have a function with the following signature: def spam(x, y, z): # etc. Is there a way to refer, within the function, to

Re: per-method jit compiler

2010-04-06 Thread Florian Ludwig
On Mon, 2010-04-05 at 22:45 -0700, Luis M. González wrote: The above post gave me an idea (very naive, of couse). What if I write a simple decorator to figure out the types of every function, and then we use it as a base for a simple method-jit compiler for python? I think its what done

Re: per-method jit compiler

2010-04-06 Thread Irmen de Jong
On 6-4-2010 8:22, Luis M. González wrote: The above post gave me an idea (very naive, of couse). What if I write a simple decorator to figure out the types of every function, and then we use it as a base for a simple method-jit compiler for python? example: def typer(f): def

per-method jit compiler

2010-04-05 Thread Luis M . González
On 4 abr, 00:09, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 03 Apr 2010 22:58:43 +, kj wrote: Suppose I have a function with the following signature: def spam(x, y, z):     # etc. Is there a way to refer, within the function, to all its arguments as a