Re: [pypy-dev] syntax sugar for stm TransactionQueue

2015-07-29 Thread Armin Rigo
Hi, > On 24 July 2015 at 00:40, Antonio Cuni wrote: >> hi Armin, >> following the discussion we had today, that TransactionQueue could be easier >> to understand for people if you explain it as "a for loop in which you don't >> know the order of the iteration" On 24 July 2015 at 09:26, Dima Tisn

Re: [pypy-dev] syntax sugar for stm TransactionQueue

2015-07-24 Thread Dima Tisnek
Supplying argument list at decoration time is hardly ideal. Typical call site would pass argument sequence at invocation time. Thus you probably want to rewrite this decorator and allow application without argument list: @parallel def foo(item) return item ** 123 results = foo(range(9)) Per

[pypy-dev] syntax sugar for stm TransactionQueue

2015-07-23 Thread Antonio Cuni
hi Armin, following the discussion we had today, that TransactionQueue could be easier to understand for people if you explain it as "a for loop in which you don't know the order of the iteration", I figured out that we might even introduce some syntactic sugar for it; not sure if it makes things s