Re: 基于cython的即时编译器cyjit,欢迎大家提建议

2014-06-11 Thread 1989lzhh
在 Jun 12, 2014,1:16,Skip Montanaro 写道: >> You might say that but I couldn't possibly comment. > > You could run the message through Google Translate. It's not > publication quality translation, but serves the needs in this > instance. (Gmail offers to translate the OP's message for me.) > > H

Re: 基于cython的即时编译器cyjit,欢迎大家提建议

2014-06-11 Thread 1989lzhh
sorry,wrong version post 发自我的 iPhone > 在 Jun 12, 2014,0:16,mm0fmf 写道: > >> On 11/06/2014 10:37, 1989lzhh wrote: >> 我正在写一个使用cython code作为后端的即时编译器名为cyjit,将python code >> 转换为cython code再编译为c extension导入.设计上主要参考numba.jit的思路, >> 使用decorate来指定要编译的function,例如: >> from cyjit import jit >> @jit('int(int

Re: 基于cython的即时编译器cyjit,欢迎大家提建议

2014-06-11 Thread Skip Montanaro
> You might say that but I couldn't possibly comment. You could run the message through Google Translate. It's not publication quality translation, but serves the needs in this instance. (Gmail offers to translate the OP's message for me.) Here's what GT produced (successfully translates the Chin

Re: 基于cython的即时编译器cyjit,欢迎大家提建议

2014-06-11 Thread mm0fmf
On 11/06/2014 10:37, 1989lzhh wrote: 我正在写一个使用cython code作为后端的即时编译器名为cyjit,将python code 转换为cython code再编译为c extension导入.设计上主要参考numba.jit的思路, 使用decorate来指定要编译的function,例如: from cyjit import jit @jit('int(int,int)') def add(a,b): return a+b add(1,2)#compiled @jit('int(int,int)', locals=''

基于cython的即时编译器cyjit,欢迎大家提建议

2014-06-11 Thread 1989lzhh
我正在写一个使用cython code作为后端的即时编译器名为cyjit,将python code 转换为cython code再编译为c extension导入.设计上主要参考numba.jit的思路,使用decorate来指定要编译的function,例如: from cyjit import jit @jit('int(int,int)') def add(a,b): return a+b add(1,2)#compiled @jit('int(int,int)', locals=''' int c ''') def add1(a,b): c