Re: [pypy-dev] Mod typing error

2015-03-27 Thread Armin Rigo
Hi Timothy, hi Ryan, On 28 March 2015 at 00:00, Ryan Gonzalez wrote: > I don't know much about RPython internals, but PyPy calls > rpython.rtyper.lltypesystem.module.ll_math.math_fmod for modulus operations > on floats. Yes, "%" on floats is not supported. You should use math.fmod() in RPython.

Re: [pypy-dev] vmprof compression

2015-03-27 Thread Leonardo Santagada
snappy and lz4 are good algos to try too. On Fri, Mar 27, 2015 at 8:55 AM, Maciej Fijalkowski wrote: > yeah I think putting gzip or something in the loop is A LOT easier :-) > > On Thu, Mar 26, 2015 at 6:29 PM, John Camara > wrote: > > Hi Fijal, > > > > To recap and continue the discussion from

Re: [pypy-dev] Mod typing error

2015-03-27 Thread Ryan Gonzalez
I don't know much about RPython internals, but PyPy calls rpython.rtyper.lltypesystem.module.ll_math.math_fmod for modulus operations on floats. On Fri, Mar 27, 2015 at 5:46 PM, Timothy Baldridge wrote: > I have some RPython that does this: > > return a % b > > while in another function I'm call

[pypy-dev] Mod typing error

2015-03-27 Thread Timothy Baldridge
I have some RPython that does this: return a % b while in another function I'm calling the same, but the two functions differ in the types of a and b (mix of ints and floats). However, during translation I'm getting a blocked block exception. translation:ERROR] AnnotatorError: [translation:ERRO

Re: [pypy-dev] vmprof compression

2015-03-27 Thread Maciej Fijalkowski
yeah I think putting gzip or something in the loop is A LOT easier :-) On Thu, Mar 26, 2015 at 6:29 PM, John Camara wrote: > Hi Fijal, > > To recap and continue the discussion from irc. > > We already discussed that the stack id are based on a counter which is good > but I also want to confirm th

Re: [pypy-dev] vmprof compression

2015-03-27 Thread Stuart Axon
Hi,   It's worth adding lzop to the list, of compressors to test, as it's built specifically to have a low CPU overhead, at the cost of some compression ratio. http://www.lzop.org/  S++ On Thursday, March 26, 2015 11:29 PM, John Camara wrote: Hi Fijal, To recap and continue the