[pypy-dev] Floating point computation

2011-07-01 Thread Zariko Taba
Hi pypy list, I'd like to prototype an interpreter in rpython. But this interpreter must feature floating point support. Something like the context in the decimal module of python : (decimal is basically a floating point unit in python) import decimal # do an operation decimal.Decimal(6e4565465)

Re: [pypy-dev] Floating point computation

2011-07-01 Thread Armin Rigo
Hi, On Fri, Jul 1, 2011 at 2:57 PM, Maciej Fijalkowski fij...@gmail.com wrote: But it won't become an assembler instruction in the JIT, it'll still be a call. Indeed. But fixing this is not too hard. Grep for math_sqrt and MATH_SQRT in pypy/jit/*/*.py for an example of how we turn

Re: [pypy-dev] stuck with translation error

2011-07-01 Thread wlavrijsen
Hi Amaury, [v1 = call_args((function free), ((1, ('flavor', 'track_... False)), v0, ('raw'), (False)), v2 = simple_call((type error), ('out of resources'))] Hm, it can also be the next operation: v2 = simple_call((type error), ('out of resources')) I was under the impression that that was