Re: [pypy-dev] Question about the STM module and RSTM

2012-01-30 Thread Armin Rigo
Hi, On Mon, Jan 30, 2012 at 21:20, Andrew Francis wrote: > If the stm library progresses a bit > more, I would like to try writing Python versions of some of the STAMP > examples. You wouldn't be able to write pure Python versions of classical STM examples, because the "transaction" module works

Re: [pypy-dev] Question about Atomic_ops.h in STM

2012-01-30 Thread Armin Rigo
Hi Andrew, On Mon, Jan 30, 2012 at 21:09, Andrew Francis wrote: > I noticed a compare_and_swap function in atomic_ops.h. On the IRC channel, > it was suggested that I look in _rffi_stm.py. However it is not there (I can > understand thta). How can this function be exposed to a RPython programme?

Re: [pypy-dev] PyPy on Solaris?

2012-01-30 Thread Armin Rigo
Hi, On Mon, Jan 30, 2012 at 17:26, wrote: > I'm trying to build PyPy (1.7) on Solaris and keep getting this error very > early in the translate process: > >     > /opt/app/nonc++/gcc-4.5.2/lib/gcc/i386-pc-solaris2.10/4.5.2/include-fixed/sys/feature_tests.h:345:2: >    error: #error "Compiler or

[pypy-dev] Question about the STM module and RSTM

2012-01-30 Thread Andrew Francis
Hi Folks: I understand that the STM module is still in its infancy. And subject to change at a moment's notice. I enjoy reading the transactional memory related blog posts. Over the weekend, I have been looking at the stm and transactionModule and the C++ based rstm. I haven't written an C++ ba

[pypy-dev] Question about Atomic_ops.h in STM

2012-01-30 Thread Andrew Francis
Hi Folks: I noticed a compare_and_swap function in atomic_ops.h. On the IRC channel, it was suggested that I look in _rffi_stm.py. However it is not there (I can understand thta). How can this function be exposed to a RPython programme? The reason I am asking is if compare and swap functions ar

Re: [pypy-dev] JITability

2012-01-30 Thread Maciej Fijalkowski
On Mon, Jan 30, 2012 at 7:40 PM, Davide Setti wrote: > On Mon, Jan 30, 2012 at 5:05 PM, Maciej Fijalkowski > wrote: >> >> I think it does not matter, and for >> more than one reason in this particular case (on of those being that >> even though bool objects are boxed, there are only two of them -

Re: [pypy-dev] JITability

2012-01-30 Thread Davide Setti
On Mon, Jan 30, 2012 at 5:05 PM, Maciej Fijalkowski wrote: > I think it does not matter, and for > more than one reason in this particular case (on of those being that > even though bool objects are boxed, there are only two of them - True > and False) > Probably this is another question: what ab

[pypy-dev] PyPy on Solaris?

2012-01-30 Thread skip
I'm trying to build PyPy (1.7) on Solaris and keep getting this error very early in the translate process: /opt/app/nonc++/gcc-4.5.2/lib/gcc/i386-pc-solaris2.10/4.5.2/include-fixed/sys/feature_tests.h:345:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applica

Re: [pypy-dev] JITability

2012-01-30 Thread Maciej Fijalkowski
On Mon, Jan 30, 2012 at 5:56 PM, Benjamin Peterson wrote: > 2012/1/30 Serhat Sevki Dincer : >> Hi, >> Suppose you have a function to validate local/international phone numbers >> (one space between number groups, no space at start/end, no zero at start) >> like: >> >> def validatePhone(v): >>    i

Re: [pypy-dev] JITability

2012-01-30 Thread Benjamin Peterson
2012/1/30 Serhat Sevki Dincer : > Hi, > Suppose you have a function to validate local/international phone numbers > (one space between number groups, no space at start/end, no zero at start) > like: > > def validatePhone(v): >    if not (9 < len(v) < 19 and '0' < v[0]): # recall ' ' < '0' >        

[pypy-dev] JITability

2012-01-30 Thread Serhat Sevki Dincer
Hi, Suppose you have a function to validate local/international phone numbers (one space between number groups, no space at start/end, no zero at start) like: def validatePhone(v): if not (9 < len(v) < 19 and '0' < v[0]): *# recall ' ' < '0'* return False for c in v: if '0' <=