[Cython] Yet another Python to C compiler

2011-08-11 Thread Vitja Makarov
Hi! Recently I've found one more Python to C compiler, that translates python bytecode into C source. And author says about 100% Python compatibility. The project is a signle 800KB python file. http://code.google.com/p/2c-python/ I was wondering when found that 2c beats Cython in some benchmarks

Re: [Cython] Cython bug ? - Entry.is_arg flag not set for all arguments

2011-08-11 Thread Vitja Makarov
2011/8/12 Stefan Behnel : > [fixed subject] > > Romain Guillebert, 12.08.2011 03:19: >> >> I tried to compiled Demos/primes.pyx using the ctypes backend and I >> think I've found a bug : >> The Entry for the kmax parameter does not set is_arg to 1. However if I >> turn the def into a cdef, it works

Re: [Cython] Cython bug ? - Entry.is_arg flag not set for all arguments

2011-08-11 Thread Stefan Behnel
[fixed subject] Romain Guillebert, 12.08.2011 03:19: I tried to compiled Demos/primes.pyx using the ctypes backend and I think I've found a bug : The Entry for the kmax parameter does not set is_arg to 1. However if I turn the def into a cdef, it works fine. Is this a bug or a known hack ? Vi

[Cython] Cython bug ?

2011-08-11 Thread Romain Guillebert
Hi I tried to compiled Demos/primes.pyx using the ctypes backend and I think I've found a bug : The Entry for the kmax parameter does not set is_arg to 1. However if I turn the def into a cdef, it works fine. Is this a bug or a known hack ? Thanks Romain _

Re: [Cython] What now?

2011-08-11 Thread Robert Bradshaw
On Thu, Aug 11, 2011 at 1:45 PM, Stefano wrote: > Thursday 11th August 2011 19:51:14, Dag Sverre Seljebotn wrote: >> Error testcases in tests/errors are currently rather inconvenient, since >> changing anything often shifts a lot of error message line numbers. >> Something like this format might b

Re: [Cython] What now?

2011-08-11 Thread Stefano
Thursday 11th August 2011 19:51:14, Dag Sverre Seljebotn wrote: > Error testcases in tests/errors are currently rather inconvenient, since > changing anything often shifts a lot of error message line numbers. > Something like this format might be better, where the line number is > implied from the

Re: [Cython] What now?

2011-08-11 Thread Dag Sverre Seljebotn
On 08/11/2011 04:24 PM, Stefano wrote: Hi, now that I've nailed Cython code, I'd like to get into something more funny. Currently, I'm working on a set of macros to seamlessy integrate Cython into CMake build process (in fact, I love CMake). But, I'd like to work also on something more essential

Re: [Cython] What now?

2011-08-11 Thread Stefan Behnel
Stefano, 11.08.2011 16:24: I'd like to work also on something more essential, so... Is there any updated TODO list? (ToDo.txt in git repo dates back to more than 8 months ago). The most up-to-date list of things to do is the bug tracker. http://trac.cython.org/cython_trac/report/1?asc=0&sort=t

[Cython] What now?

2011-08-11 Thread Stefano
Hi, now that I've nailed Cython code, I'd like to get into something more funny. Currently, I'm working on a set of macros to seamlessy integrate Cython into CMake build process (in fact, I love CMake). But, I'd like to work also on something more essential, so... Is there any updated TODO list?

Re: [Cython] [cython-users] Calling gil-requiring function not allowed without gil

2011-08-11 Thread Dag Sverre Seljebotn
On 08/11/2011 04:00 PM, Stefan Behnel wrote: Actually, it's worth asking if even the prange loop was a good idea, given the amount of confusion driven traffic that it currently produces on the mailing list. I'm not arguing against it, but it seems to be a trickier concept than it appears at first

Re: [Cython] [cython-users] Calling gil-requiring function not allowed without gil

2011-08-11 Thread Stefan Behnel
[moving this away from cython-users] Dag Sverre Seljebotn, 11.08.2011 14:53: On 08/11/2011 02:13 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 11.08.2011 13:58: On 08/11/2011 01:43 PM, Ting Zhou wrote: here is my pyx file. When I compile it, it says "Calling gil-requiring function not allowe