Re: [Cython] Multiple modules in one compilation unit

2011-03-03 Thread mark florisson
On 3 March 2011 07:43, Stefan Behnel wrote: > Lisandro Dalcin, 03.03.2011 05:38: >> >> On 2 March 2011 21:01, Greg Ewing  wrote: >>> >>> Stefan Behnel wrote: you'd call "cython" on a package and it would output a directory with a single __init__.so that contains the modules compiled

Re: [Cython] Multiple modules in one compilation unit

2011-03-03 Thread mark florisson
On 3 March 2011 10:48, Vitja Makarov wrote: > 2011/3/3 mark florisson : >> On 3 March 2011 07:43, Stefan Behnel wrote: >>> Lisandro Dalcin, 03.03.2011 05:38: >>>> >>>> On 2 March 2011 21:01, Greg Ewing  wrote: >>>>> >>>>> St

[Cython] OpenMP support

2011-03-08 Thread mark florisson
I'd like to implement OpenMP support for Cython. Looking at http://wiki.cython.org/enhancements/openmp I agree a close 1:1 mapping would be nice. It would probably make sense to start with support for 'nogil' sections because GIL-holding sections would be hard to deal with considering all the 'goto

Re: [Cython] OpenMP support

2011-03-08 Thread mark florisson
On 8 March 2011 16:10, Sturla Molden wrote: > Den 08.03.2011 11:34, skrev mark florisson: >> >> However, considering that OpenMP has quite a few constructs, > > No, OpenMP has very few contructs, not quite a few. And most of them are not > needed, nor wanted, because the

Re: [Cython] OpenMP support

2011-03-08 Thread mark florisson
On 8 March 2011 16:28, Dag Sverre Seljebotn wrote: > On 03/08/2011 11:34 AM, mark florisson wrote: >> >> I'd like to implement OpenMP support for Cython. Looking at > > Great news! It looks like this will be a topic on the coming workshop, with > Francesc coming as

Re: [Cython] OpenMP support

2011-03-08 Thread mark florisson
On 8 March 2011 17:38, Sturla Molden wrote: > Den 08.03.2011 17:10, skrev mark florisson: >> >> But how useful is it to parallelize CPU-bound code while holding GIL? >> Or do you mean to run the CPU-intensive section in a 'with nogil' >> block and when you ne

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 01:46, Robert Bradshaw wrote: > On Tue, Mar 8, 2011 at 11:16 AM, Francesc Alted wrote: >> A Tuesday 08 March 2011 18:50:15 Stefan Behnel escrigué: >>> mark florisson, 08.03.2011 18:00: >>> > What I meant was that the >>> > wrapper return

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 08:56, Dag Sverre Seljebotn wrote: > On 03/11/2011 08:20 AM, Stefan Behnel wrote: >> >> Robert Bradshaw, 11.03.2011 01:46: >>> >>> On Tue, Mar 8, 2011 at 11:16 AM, Francesc Alted >>>  wrote: >>>> >>>> A Tuesd

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 12:13, Sturla Molden wrote: > Den 11.03.2011 01:46, skrev Robert Bradshaw: >> >> On a slightly higher level, are we just trying to use OpenMP from >> Cython, or are we trying to build it into the language? > > OpenMP is a specification, not a particular implementation. Implementat

Re: [Cython] OpenMP support

2011-03-12 Thread mark florisson
On 11 March 2011 14:54, Sturla Molden wrote: > Den 11.03.2011 11:42, skrev Matej Laitl: >> >> #pragma omp parallel for private(var1) reduction(+:var2) schedule(guided) >> for i in range(n): >>     do_work(i) >> > I do like this, as it is valid Python and can be turned on/off with a > compiler fla

[Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
I implemented the 'with gil:' statement, and have added error checking for nested 'with gil' or 'with nogil' statements. For instance, with the patch applied Cython wil issue an error when you have e.g. with nogil: with nogil: ... (or the same thing for 'with gil:'). This because nest

[Cython] PyCharm

2011-03-16 Thread mark florisson
The PyCharm IDE (http://www.jetbrains.com/pycharm/) has granted the Cython project a free Open Source license, which means that anyone developing Cython may freely use PyCharm to develop Cython. They prefer to license to remain unpublic, so if you develop Cython and want a free PyCharm license, sen

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
On 16 March 2011 11:58, Dag Sverre Seljebotn wrote: > On 03/16/2011 11:28 AM, mark florisson wrote: > > I implemented the 'with gil:' statement, and have added error checking > for nested 'with gil' or 'with nogil' statements. For instance, with > the

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
>> Another feedback is that I wonder whether we should put the "gil" and >> "nogil" psuedo-context managers both in cython namespace, and sort of >> deprecate the "global" nogil, rather than introduce yet another name that >> can't be used safely for all kinds of variables. > > Hmm, good catch. Act

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
On 16 March 2011 13:01, mark florisson wrote: >>> Another feedback is that I wonder whether we should put the "gil" and >>> "nogil" psuedo-context managers both in cython namespace, and sort of >>> deprecate the "global" nogil, rather than

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
On 16 March 2011 13:37, Dag Sverre Seljebotn wrote: > On 03/16/2011 12:54 PM, mark florisson wrote: >> >> On 16 March 2011 11:58, Dag Sverre Seljebotn >>  wrote: >>> >>> On 03/16/2011 11:28 AM, mark florisson wrote: >>> >>> I implemented

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
On 16 March 2011 13:55, mark florisson wrote: > On 16 March 2011 13:37, Dag Sverre Seljebotn > wrote: >> On 03/16/2011 12:54 PM, mark florisson wrote: >>> >>> On 16 March 2011 11:58, Dag Sverre Seljebotn >>>  wrote: >>>> >>>> On 03/

Re: [Cython] PyCharm

2011-03-16 Thread mark florisson
On 16 March 2011 15:26, Stefan Behnel wrote: > mark florisson, 16.03.2011 11:33: >> >> The PyCharm IDE (http://www.jetbrains.com/pycharm/) has granted the >> Cython project a free Open Source license, which means that anyone >> developing Cython may freely use PyCharm t

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
On 16 March 2011 15:07, Stefan Behnel wrote: > mark florisson, 16.03.2011 13:28: >> >> On 16 March 2011 13:01, mark florisson wrote: >>>>> >>>>> Another feedback is that I wonder whether we should put the "gil" and >>>>>

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
On 16 March 2011 16:14, Stefan Behnel wrote: > mark florisson, 16.03.2011 11:28: >> >> I implemented the 'with gil:' statement >> [...] >> The 'with gil:' statement can now be used in the same way as 'with >> nogil:'. Exceptions rai

Re: [Cython] 'with gil:' statement

2011-03-16 Thread mark florisson
>>> Could someone review the patch (which is attached)? Maybe check if I >>> haven't missed any side cases and such? >> >> From a first look, the test file you added seems far too short. I would >> expect that this feature requires a lot more testing in combination with >> declared and undeclared l

Re: [Cython] 'with gil:' statement

2011-03-17 Thread mark florisson
On 17 March 2011 10:08, Dag Sverre Seljebotn wrote: > On 03/17/2011 09:27 AM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 17.03.2011 08:38: >>> >>> On 03/17/2011 12:24 AM, Greg Ewing wrote: Stefan Behnel wrote: > I'm not sure if this is a good idea. "nogil" blocks don't hav

Re: [Cython] 'with gil:' statement

2011-03-17 Thread mark florisson
On 17 March 2011 09:27, Stefan Behnel wrote: > Dag Sverre Seljebotn, 17.03.2011 08:38: >> >> On 03/17/2011 12:24 AM, Greg Ewing wrote: >>> >>> Stefan Behnel wrote: >>> I'm not sure if this is a good idea. "nogil" blocks don't have a way to handle exceptions, so simply jumping out of them

Re: [Cython] 'with gil:' statement

2011-03-17 Thread mark florisson
On 17 March 2011 11:35, Dag Sverre Seljebotn wrote: > On 03/17/2011 11:16 AM, mark florisson wrote: >> >> On 17 March 2011 10:08, Dag Sverre Seljebotn >>  wrote: >>> >>> How about this compromise: We balk on the code you wrote with: >>> >>&

Re: [Cython] 'with gil:' statement

2011-03-17 Thread mark florisson
On 18 March 2011 00:32, Greg Ewing wrote: > Dag Sverre Seljebotn wrote: > >> def f(): >>    with nogil: >>        for ...: >>            A >>            if something_exceptional: >>                with gil: >>                    raise Exception(...) >>            B >>        C > > If that's to be

Re: [Cython] 'with gil:' statement

2011-03-17 Thread mark florisson
On 16 March 2011 20:16, mark florisson wrote: >>>> Could someone review the patch (which is attached)? Maybe check if I >>>> haven't missed any side cases and such? >>> >>> From a first look, the test file you added seems far too short. I would &

Re: [Cython] 'with gil:' statement

2011-03-18 Thread mark florisson
On 18 March 2011 07:07, Stefan Behnel wrote: > Greg Ewing, 18.03.2011 01:18: >> >> mark florisson wrote: >>> >>> I think we could support it without having to acquire >>> the GIL in the finally clause. >> >> That was the intention -- the code

Re: [Cython] 'with gil:' statement

2011-03-18 Thread mark florisson
On 18 March 2011 13:36, Stefan Behnel wrote: > Dag Sverre Seljebotn, 18.03.2011 12:07: >> >> On 03/18/2011 11:10 AM, Stefan Behnel wrote: >>> >>> Actually, I think I still find it more convenient to not provide *any* >>> special exception paths through nogil code, i.e. to not let exceptions in >>>

Re: [Cython] PyCharm

2011-03-22 Thread mark florisson
On 22 March 2011 15:33, Jason Grout wrote: > On 3/16/11 5:33 AM, mark florisson wrote: >> >> The PyCharm IDE (http://www.jetbrains.com/pycharm/) has granted the >> Cython project a free Open Source license, which means that anyone >> developing Cython may freely us

Re: [Cython] cygdb gdb script problem

2011-03-29 Thread mark florisson
On 29 March 2011 21:11, Vitja Makarov wrote: > Running cygdb with Cython installed in the system leads to the > following problem: > > vitja@vitja-laptop:~/work/cython-vitek-git/zzz$ python ../cygdb.py > GNU gdb (GDB) 7.2-ubuntu > Copyright (C) 2010 Free Software Foundation, Inc. > License GPLv3+:

Re: [Cython] cygdb gdb script problem

2011-03-29 Thread mark florisson
On 29 March 2011 22:20, Vitja Makarov wrote: > 2011/3/29 mark florisson : >> On 29 March 2011 21:11, Vitja Makarov wrote: >>> Running cygdb with Cython installed in the system leads to the >>> following problem: >>> >>> vitja@vitja-laptop:~/work/cyt

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread mark florisson
On 4 April 2011 13:53, Dag Sverre Seljebotn wrote: > On 04/04/2011 01:23 PM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 04.04.2011 12:17: >>> >>> CEP up at http://wiki.cython.org/enhancements/prange >> >> """ >> Variable handling >> >> Rather than explicit declaration of shared/private varia

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread mark florisson
On 4 April 2011 19:18, Dag Sverre Seljebotn wrote: > On 04/04/2011 05:22 PM, mark florisson wrote: >> >> On 4 April 2011 13:53, Dag Sverre Seljebotn >>  wrote: >>> >>> On 04/04/2011 01:23 PM, Stefan Behnel wrote: >>>> >>>> Dag

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: > There's a (much shorter) proposal for a more explicit parallelism construct > at > > http://wiki.cython.org/enhancements/parallelblock > > This is a little more verbose for the simplest case, but makes the > medium-cases that needs work buffers

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 10:34, Stefan Behnel wrote: > mark florisson, 05.04.2011 10:26: >> >> On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: >>> >>> Justification for Cython-specific syntax: This is something that is >>> really >>> only useful if

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 10:44, mark florisson wrote: > On 5 April 2011 10:34, Stefan Behnel wrote: >> mark florisson, 05.04.2011 10:26: >>> >>> On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: >>>> >>>> Justification for Cython-specific syntax: This i

Re: [Cython] Another CEP: Parallel block

2011-04-05 Thread mark florisson
On 5 April 2011 11:01, Stefan Behnel wrote: > mark florisson, 05.04.2011 10:44: >> >> On 5 April 2011 10:34, Stefan Behnel wrote: >>> >>> mark florisson, 05.04.2011 10:26: >>>> >>>> On 5 April 2011 09:21, Dag Sverre Seljebotn wrote: >

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread mark florisson
On 5 April 2011 12:51, Stefan Behnel wrote: > mark florisson, 04.04.2011 21:26: >> >> For clarity, I'll add an example: >> >> def f(np.ndarray[double] x, double alpha): >>     cdef double s = 0 >>     cdef double tmp = 2 >>     cdef double oth

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread mark florisson
On 5 April 2011 14:55, Pauli Virtanen wrote: > > Mon, 04 Apr 2011 21:26:34 +0200, mark florisson wrote: > [clip] > > For clarity, I'll add an example: > [clip] > > How about making all the special declarations explicit? The automatic > inference of variables has

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread mark florisson
On 5 April 2011 15:10, Pauli Virtanen wrote: > Tue, 05 Apr 2011 12:55:36 +, Pauli Virtanen wrote: > [clip] >>             # Assignment to non-private variables causes a compile-time >>             # error; this avoids common mistakes, such as forgetting to >>             # declare the reductio

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread mark florisson
>>>> On 04/05/2011 04:53 PM, Robert Bradshaw wrote: >>>>> >>>>> On Tue, Apr 5, 2011 at 3:51 AM, Stefan Behnel >>>>>  wrote: >>>>>> >>>>>> mark florisson, 04.04.2011 21:26: >>>>>>> >>>&g

Re: [Cython] GSoC Proposal - Reimplement C modules in CPython's standard library in Cython.

2011-04-08 Thread mark florisson
On 8 April 2011 19:59, Arthur de Souza Ribeiro wrote: > The moduels suggested for the first two milestones you think are ok? > Best Regards.. > []s > Arthur You mention the 'dis' module, but isn't that one (and 'opcode' too) entirely written in Python?

[Cython] GSoC Proposal for Supporting Parallelism, Fused Types and Typed Views on Memory

2011-04-08 Thread mark florisson
Hey, My GSoC proposal can be found here: http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/markflorisson88/1 . It's about implementing the prange CEP (524), Fused Types (522) and Typed Memory Views (517). I really hope to participate this year, but due to time constraints I may n

Re: [Cython] prange CEP updated

2011-04-11 Thread mark florisson
On 5 April 2011 22:29, Dag Sverre Seljebotn wrote: > I've done a pretty major revision to the prange CEP, bringing in a lot of > the feedback. > > Thread-private variables are now split in two cases: > >  i) The safe cases, which really require very little technical knowledge -> > automatically in

Re: [Cython] prange CEP updated

2011-04-11 Thread mark florisson
On 11 April 2011 11:10, Dag Sverre Seljebotn wrote: > On 04/11/2011 10:45 AM, mark florisson wrote: >> >> On 5 April 2011 22:29, Dag Sverre Seljebotn >>  wrote: >>> >>> I've done a pretty major revision to the prange CEP, bringing in a lot of >>&g

Re: [Cython] prange CEP updated

2011-04-11 Thread mark florisson
On 11 April 2011 12:08, Dag Sverre Seljebotn wrote: > On 04/11/2011 11:41 AM, mark florisson wrote: >> >> On 11 April 2011 11:10, Dag Sverre Seljebotn >>  wrote: >>> >>> On 04/11/2011 10:45 AM, mark florisson wrote: >>>> >>&

[Cython] Test runner

2011-04-11 Thread mark florisson
Can we select tests in the tests directory selectively? I see the -T or --ticket option, but it doens't seem to find the test tagged with # ticket: . I can select unit tests using python runtests.py Cython.SubPackage.Tests.SomeTest, but I can't seem to do the same thing for tests in the tests dire

Re: [Cython] Test runner

2011-04-11 Thread mark florisson
On 11 April 2011 12:45, Stefan Behnel wrote: > mark florisson, 11.04.2011 12:26: >> >> Can we select tests in the tests directory selectively? I see the -T >> or --ticket option, but it doens't seem to find the test tagged with # >> ticket:. >> >> I ca

Re: [Cython] Test runner

2011-04-11 Thread mark florisson
On 11 April 2011 12:53, mark florisson wrote: > On 11 April 2011 12:45, Stefan Behnel wrote: >> mark florisson, 11.04.2011 12:26: >>> >>> Can we select tests in the tests directory selectively? I see the -T >>> or --ticket option, but it doens't seem

Re: [Cython] prange CEP updated

2011-04-11 Thread mark florisson
On 11 April 2011 13:03, Dag Sverre Seljebotn wrote: > On 04/11/2011 01:02 PM, Dag Sverre Seljebotn wrote: >> >> On 04/11/2011 12:14 PM, mark florisson wrote: >>> >>> On 11 April 2011 12:08, Dag Sverre >>> Seljebotn wrote: >>>> >>>&g

Re: [Cython] Test runner

2011-04-13 Thread mark florisson
Another, different but related issue: how can we get useful output from the test runner? e.g. I'm running my test with a '@cython.test_assert_path_exists("...")' and I get this error output: == ERROR: runTest (__main__.CythonRunTe

Re: [Cython] prange CEP updated

2011-04-13 Thread mark florisson
On 5 April 2011 22:29, Dag Sverre Seljebotn wrote: > I've done a pretty major revision to the prange CEP, bringing in a lot of > the feedback. > > Thread-private variables are now split in two cases: > >  i) The safe cases, which really require very little technical knowledge -> > automatically in

Re: [Cython] prange CEP updated

2011-04-13 Thread mark florisson
On 13 April 2011 21:57, Dag Sverre Seljebotn wrote: > On 04/13/2011 09:31 PM, mark florisson wrote: >> >> On 5 April 2011 22:29, Dag Sverre Seljebotn >>  wrote: >>> >>> I've done a pretty major revision to the prange CEP, bringing in a lot of >>&g

Re: [Cython] prange CEP updated

2011-04-13 Thread mark florisson
On 13 April 2011 22:53, mark florisson wrote: > On 13 April 2011 21:57, Dag Sverre Seljebotn > wrote: >> On 04/13/2011 09:31 PM, mark florisson wrote: >>> >>> On 5 April 2011 22:29, Dag Sverre Seljebotn >>>  wrote: >>>> >>>> I'

Re: [Cython] prange CEP updated

2011-04-14 Thread mark florisson
On 14 April 2011 20:29, Dag Sverre Seljebotn wrote: > On 04/13/2011 11:13 PM, mark florisson wrote: >> >> Although there is omp_get_max_threads(): >> >> "The omp_get_max_threads routine returns an upper bound on the number >> of threads that could be used t

Re: [Cython] prange CEP updated

2011-04-14 Thread mark florisson
On 14 April 2011 20:29, Dag Sverre Seljebotn wrote: > On 04/13/2011 11:13 PM, mark florisson wrote: >> >> Although there is omp_get_max_threads(): >> >> "The omp_get_max_threads routine returns an upper bound on the number >> of threads that could be used t

Re: [Cython] prange CEP updated

2011-04-14 Thread mark florisson
On 14 April 2011 20:58, Dag Sverre Seljebotn wrote: > On 04/14/2011 08:42 PM, mark florisson wrote: >> >> On 14 April 2011 20:29, Dag Sverre Seljebotn >>  wrote: >>> >>> On 04/13/2011 11:13 PM, mark florisson wrote: >>>> >>&

Re: [Cython] prange CEP updated

2011-04-14 Thread mark florisson
On 14 April 2011 21:37, Dag Sverre Seljebotn wrote: > On 04/14/2011 09:08 PM, mark florisson wrote: >> >> On 14 April 2011 20:58, Dag Sverre Seljebotn >>  wrote: >>> >>> On 04/14/2011 08:42 PM, mark florisson wrote: >>>> >>&g

Re: [Cython] prange CEP updated

2011-04-18 Thread mark florisson
On 16 April 2011 18:42, Dag Sverre Seljebotn wrote: > (Moving discussion from http://markflorisson.wordpress.com/, where Mark > said:) Ok, sure, it was just an issue I was wondering about at that moment, but it's a tricky issue, so thanks. > """ > Started a new branch https://github.com/markflor

Re: [Cython] prange CEP updated

2011-04-18 Thread mark florisson
On 18 April 2011 13:06, mark florisson wrote: > On 16 April 2011 18:42, Dag Sverre Seljebotn > wrote: >> (Moving discussion from http://markflorisson.wordpress.com/, where Mark >> said:) > > Ok, sure, it was just an issue I was wondering about at that moment, >

Re: [Cython] prange CEP updated

2011-04-18 Thread mark florisson
ctions or lastprivates :). > DS > -- > Sent from my Android phone with K-9 Mail. Please excuse my brevity. > > mark florisson wrote: >> >> On 16 April 2011 18:42, Dag Sverre Seljebotn >> wrote: > (Moving discussion from http://markflorisson.wordpress.com/, where

Re: [Cython] prange CEP updated

2011-04-18 Thread mark florisson
On 18 April 2011 16:41, Dag Sverre Seljebotn wrote: > Excellent! Sounds great! (as I won't have my laptop for some days I can't > have a look yet but I will later) > > You're right about (the current) buffers and the gil. A testcase explicitly > for them would be good. > > Firstprivate etc: i thin

[Cython] gilnanny

2011-04-18 Thread mark florisson
Can I add a gilnanny to refnanny? I want to do a PyThreadState_Get() for every refnanny inc- and decref, so that it will issue a fatal error whenever reference counting is done without the gil, to make sure we never do any illegal things in nogil code blocks. While I'm at it, I also want to add a p

Re: [Cython] gilnanny

2011-04-19 Thread mark florisson
On 18 April 2011 22:26, Robert Bradshaw wrote: > On Mon, Apr 18, 2011 at 12:08 PM, mark florisson > wrote: >> Can I add a gilnanny to refnanny? I want to do a PyThreadState_Get() >> for every refnanny inc- and decref, so that it will issue a fatal >> error whenever re

[Cython] Hudson account

2011-04-19 Thread mark florisson
Can I get a Hudson account so I can setup my branches there? I can't seem to login using my trac credentials. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Hudson account

2011-04-19 Thread mark florisson
On 19 April 2011 12:19, Stefan Behnel wrote: > mark florisson, 19.04.2011 11:14: >> >> Can I get a Hudson account so I can setup my branches there? > > I've created one for you. Please tell me when you have changed your > password, so that I can give you write access

Re: [Cython] Hudson account

2011-04-19 Thread mark florisson
On 19 April 2011 12:31, mark florisson wrote: > On 19 April 2011 12:19, Stefan Behnel wrote: >> mark florisson, 19.04.2011 11:14: >>> >>> Can I get a Hudson account so I can setup my branches there? >> >> I've created one for you. Please tell me when

Re: [Cython] Hudson account

2011-04-19 Thread mark florisson
On 19 April 2011 12:53, Stefan Behnel wrote: > mark florisson, 19.04.2011 12:31: >> >> On 19 April 2011 12:19, Stefan Behnel wrote: >>> >>> mark florisson, 19.04.2011 11:14: >>>> >>>> Can I get a Hudson account so I can setup my branche

Re: [Cython] Hudson account

2011-04-19 Thread mark florisson
On 19 April 2011 13:36, Stefan Behnel wrote: > mark florisson, 19.04.2011 13:09: >> >> On 19 April 2011 12:53, Stefan Behnel wrote: >>> >>> mark florisson, 19.04.2011 12:31: >>>> >>>> All I want is to run the master branch (it has the '

Re: [Cython] Hudson account

2011-04-19 Thread mark florisson
On 19 April 2011 18:27, Stefan Behnel wrote: > mark florisson, 19.04.2011 13:46: >> >> So are you setting it up > > Done. You now have your first red Hudson jobs. ;) Thanks a lot for setting it up! Red means good right? :) > Stefan > _

Re: [Cython] Build module script

2011-04-21 Thread mark florisson
On 21 April 2011 08:57, Vitja Makarov wrote: > Now we have cythonrun build script, may be it's time to create script > for easy module building? > > -- > vitja. > ___ > cython-devel mailing list > cython-devel@python.org > http://mail.python.org/mailman/

Re: [Cython] Build module script

2011-04-21 Thread mark florisson
On 21 April 2011 10:23, Vitja Makarov wrote: > 2011/4/21 mark florisson : >> On 21 April 2011 08:57, Vitja Makarov wrote: >>> Now we have cythonrun build script, may be it's time to create script >>> for easy modul

Re: [Cython] prange CEP updated

2011-04-21 Thread mark florisson
On 21 April 2011 10:37, Robert Bradshaw wrote: > On Mon, Apr 18, 2011 at 7:51 AM, mark florisson > wrote: >> On 18 April 2011 16:41, Dag Sverre Seljebotn >> wrote: >>> Excellent! Sounds great! (as I won't have my laptop for some days I can't >>> ha

Re: [Cython] prange CEP updated

2011-04-21 Thread mark florisson
On 21 April 2011 10:59, mark florisson wrote: > On 21 April 2011 10:37, Robert Bradshaw wrote: >> On Mon, Apr 18, 2011 at 7:51 AM, mark florisson >> wrote: >>> On 18 April 2011 16:41, Dag Sverre Seljebotn >>> wrote: >>>> Excellent! Sounds grea

Re: [Cython] prange CEP updated

2011-04-21 Thread mark florisson
On 21 April 2011 11:37, Robert Bradshaw wrote: > On Thu, Apr 21, 2011 at 2:21 AM, mark florisson > wrote: >> On 21 April 2011 10:59, mark florisson wrote: >>> On 21 April 2011 10:37, Robert Bradshaw >>> wrote: >>>> On Mon, Apr 18, 2011 at 7:51 AM, mar

Re: [Cython] prange CEP updated

2011-04-21 Thread mark florisson
On 21 April 2011 11:18, Robert Bradshaw wrote: > On Thu, Apr 21, 2011 at 1:59 AM, mark florisson > wrote: >> On 21 April 2011 10:37, Robert Bradshaw wrote: >>> On Mon, Apr 18, 2011 at 7:51 AM, mark florisson >>> wrote: >>>> On 18 April 201

[Cython] Fused Types

2011-04-26 Thread mark florisson
Hey, I've been working a bit on fused types (http://wiki.cython.org/enhancements/fusedtypes), and I've got it to generate code for every permutation of specific types. Currently it only works for cdef functions. Now in SimpleCallNode I'm trying to use PyrexTypes.best_match() to find the function w

Re: [Cython] prange CEP updated

2011-04-26 Thread mark florisson
On 21 April 2011 20:13, Dag Sverre Seljebotn wrote: > On 04/21/2011 10:37 AM, Robert Bradshaw wrote: >> >> On Mon, Apr 18, 2011 at 7:51 AM, mark florisson >>  wrote: >>> >>> On 18 April 2011 16:41, Dag Sverre Seljebotn >>>  wrote: >>>>

Re: [Cython] Fused Types

2011-04-26 Thread mark florisson
On 26 April 2011 16:43, Stefan Behnel wrote: > mark florisson, 26.04.2011 16:23: >> >> I've been working a bit on fused types >> (http://wiki.cython.org/enhancements/fusedtypes), and I've got it to >> generate code for every permutation of specific types

Re: [Cython] Fused Types

2011-04-28 Thread mark florisson
On 26 April 2011 20:05, Robert Bradshaw wrote: > On Tue, Apr 26, 2011 at 8:18 AM, mark florisson > wrote: >> On 26 April 2011 16:43, Stefan Behnel wrote: >>> mark florisson, 26.04.2011 16:23: >>>> >>>> I've been working a bit on fused types &g

Re: [Cython] Fused Types

2011-04-28 Thread mark florisson
On 28 April 2011 21:58, Stefan Behnel wrote: > mark florisson, 28.04.2011 21:48: >> >> I'm currently wondering about the proposed >> cython.typeof(). I believe it currently returns a string with the type >> name, and not the type itself. So I think it would be i

Re: [Cython] Fused Types

2011-04-28 Thread mark florisson
On 28 April 2011 22:10, mark florisson wrote: > On 28 April 2011 21:58, Stefan Behnel wrote: >> mark florisson, 28.04.2011 21:48: >>> >>> I'm currently wondering about the proposed >>> cython.typeof(). I believe it currently returns a string with the typ

Re: [Cython] Fused Types

2011-04-28 Thread mark florisson
On 28 April 2011 22:12, Robert Bradshaw wrote: > On Thu, Apr 28, 2011 at 12:48 PM, mark florisson > wrote: > >> So I fixed all that, but I'm currently wondering about the proposed >> cython.typeof(). I believe it currently returns a string with the type >> name,

Re: [Cython] Fused Types

2011-04-28 Thread mark florisson
On 28 April 2011 22:31, mark florisson wrote: > On 28 April 2011 22:12, Robert Bradshaw wrote: >> On Thu, Apr 28, 2011 at 12:48 PM, mark florisson >> wrote: >> >>> So I fixed all that, but I'm currently wondering about the proposed >>> cython.typeo

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 28 April 2011 23:30, Robert Bradshaw wrote: > On Thu, Apr 28, 2011 at 1:31 PM, mark florisson > wrote: >> On 28 April 2011 22:12, Robert Bradshaw wrote: >>> On Thu, Apr 28, 2011 at 12:48 PM, mark florisson >>> wrote: >>> >>>> So I fi

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 28 April 2011 23:59, Robert Bradshaw wrote: > On Thu, Apr 28, 2011 at 2:29 PM, mark florisson > wrote: >> On 28 April 2011 22:31, mark florisson wrote: >>> On 28 April 2011 22:12, Robert Bradshaw >>> wrote: >>>> On Thu, Apr 28, 2011 at 12:48 PM, m

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 06:32, Robert Bradshaw wrote: > On Thu, Apr 28, 2011 at 7:09 PM, Stefan Behnel wrote: >> mark florisson, 28.04.2011 23:29: >>> >>> On 28 April 2011 22:31, mark florisson wrote: >>>> >>>> On 28 April 2011 22:12, Robert Bradshaw

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 11:03, Pauli Virtanen wrote: > Fri, 29 Apr 2011 10:23:55 +0200, mark florisson wrote: > [clip] >> Ok, branching on the type sounds fine to me. It brings one problem >> though: because you cannot declare the variables of your variable type >> (the type

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 12:28, Pauli Virtanen wrote: > Fri, 29 Apr 2011 11:30:19 +0200, mark florisson wrote: >> On 29 April 2011 11:03, Pauli Virtanen wrote: > [clip] >>> Are you planning to special-case the "real_t complex" syntax? Shooting >>> from the sidel

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 13:37, Pauli Virtanen wrote: > Fri, 29 Apr 2011 12:53:06 +0200, mark florisson wrote: > [clip] >> But if we just allow that for fused types, then couldn't we simply do >> >> ctypedef cython.fused_type(float, double) real_t >> >> cdef real_

Re: [Cython] Fused Types

2011-04-29 Thread mark florisson
On 29 April 2011 06:32, Robert Bradshaw wrote: > On Thu, Apr 28, 2011 at 7:09 PM, Stefan Behnel wrote: >> mark florisson, 28.04.2011 23:29: >>> >>> On 28 April 2011 22:31, mark florisson wrote: >>>> >>>> On 28 April 2011 22:12, Robert Bradshaw

Re: [Cython] Fused Types

2011-05-01 Thread mark florisson
On 30 April 2011 09:51, Dag Sverre Seljebotn wrote: > On 04/30/2011 08:39 AM, Robert Bradshaw wrote: >> >> On Fri, Apr 29, 2011 at 3:53 AM, mark florisson >>  wrote: >>> >>> On 29 April 2011 12:28, Pauli Virtanen  wrote: >>>> >>>> No

Re: [Cython] Fused Types

2011-05-02 Thread mark florisson
On 2 May 2011 11:08, Stefan Behnel wrote: > Robert Bradshaw, 30.04.2011 08:16: >> >> On Fri, Apr 29, 2011 at 8:04 AM, mark florisson >>> >>> With the type matching it matches on exactly 'if src_type is >>> dst_type:' so you can't use &#x

Re: [Cython] Fused Types

2011-05-02 Thread mark florisson
On 2 May 2011 12:32, Stefan Behnel wrote: > mark florisson, 02.05.2011 11:22: >> >> On 2 May 2011 11:08, Stefan Behnel wrote: >>> >>> Robert Bradshaw, 30.04.2011 08:16: >>>> >>>> On Fri, Apr 29, 2011 at 8:04 AM, mark florisson >>>

Re: [Cython] Fused Types

2011-05-02 Thread mark florisson
On 2 May 2011 18:24, Robert Bradshaw wrote: > On Sun, May 1, 2011 at 2:38 AM, mark florisson > wrote: >> On 30 April 2011 09:51, Dag Sverre Seljebotn >> wrote: >>> On 04/30/2011 08:39 AM, Robert Bradshaw wrote: >>>> >>>> On Fri, A

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 00:21, Robert Bradshaw wrote: > On Mon, May 2, 2011 at 1:56 PM, mark florisson > wrote: >> On 2 May 2011 18:24, Robert Bradshaw wrote: >>> On Sun, May 1, 2011 at 2:38 AM, mark florisson >>> wrote: >>>> A remaining issue which I'm not

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 10:07, Dag Sverre Seljebotn wrote: > On 05/03/2011 09:59 AM, mark florisson wrote: >> >> On 3 May 2011 00:21, Robert Bradshaw  wrote: >>> >>> On Mon, May 2, 2011 at 1:56 PM, mark florisson >>>  wrote: >>>> >>>> On

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 10:44, Dag Sverre Seljebotn wrote: > On 05/03/2011 10:42 AM, mark florisson wrote: >> >> On 3 May 2011 10:07, Dag Sverre Seljebotn >>  wrote: >>> >>> On 05/03/2011 09:59 AM, mark florisson wrote: >>>> >>>> On 3 May 201

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 10:57, Dag Sverre Seljebotn wrote: > On 05/03/2011 10:49 AM, mark florisson wrote: >> >> On 3 May 2011 10:44, Dag Sverre Seljebotn >>  wrote: >>> >>> On 05/03/2011 10:42 AM, mark florisson wrote: >>>> >>>> On 3 May 201

Re: [Cython] Fused Types

2011-05-03 Thread mark florisson
On 3 May 2011 07:47, Greg Ewing wrote: > I'm a bit confused about how fused types combine to > create further fused types. If you have something > like > >  ctypedef struct Vector: >    floating x >    floating y >    floating z > > then is it going to generate code for all possible > combinations

  1   2   3   4   5   6   7   >