Hi Maciej,
On Wed, Nov 16, 2011 at 08:05, Maciej Fijalkowski fij...@gmail.com wrote:
Unless I'm missing something offset for get/setarrayitem are not
necesarilly intermediate values
Assuming you mean immediate values instead of intermediate: the
content of the checkin shows that it meant that
From memory the 'native' flag made a difference (I think it allows use
of SSE?). I guess that is something I'll normalise for a future v0.3
release of my handbook :-)
Cheers,
Ian.
2011/11/15 Jérémie Roquet arkano...@gmail.com:
Hi,
2011/11/15 Armin Rigo ar...@tunes.org:
On Tue, Nov 15, 2011 at
2011/11/16 Ian Ozsvald i...@ianozsvald.com:
From memory the 'native' flag made a difference (I think it allows use
of SSE?).
It depends on the machine, of course, but yes, on most machines it
enables SSE. Just compare the output of
$ /dev/null g++ -E -v - | grep cc1
and
$ /dev/null g++
Does anyone know of a pure python math library? I've been playing around
with berp https://github.com/bjpop/berp/wiki, which is a python3 to
haskell translator and compiler, and it works great as long as you don't go
crazy with C extensions. It's highly experimental but fun to play around
with.
2011/11/16 Blaine frik...@gmail.com:
Does anyone know of a pure python math library? I've been playing around
with berp, which is a python3 to haskell translator and compiler, and it
works great as long as you don't go crazy with C extensions. It's highly
experimental but fun to play around
I think that python's math module (which I use) is a compiled C extension,
right? I'm looking for pure python that berp can use.
Blaine
On Wed, Nov 16, 2011 at 12:25 PM, Benjamin Peterson benja...@python.orgwrote:
2011/11/16 Blaine frik...@gmail.com:
Does anyone know of a pure python math
2011/11/16 Blaine frik...@gmail.com:
I think that python's math module (which I use) is a compiled C extension,
right? I'm looking for pure python that berp can use.
I'm not really sure why this is relevant to pypy.
--
Regards,
Benjamin
___
Thanks Alex and Benjamin.
I'm sorry - you're right it isn't exactly related to pypy. I hope I
didn't break any rules. I was hoping that someone else may have come across
this because the only time I've needed to port compiled modules to python
is when I wanted to use them with pypy.
Blaine
On
On Wed, Nov 16, 2011 at 12:26 PM, Blaine frik...@gmail.com wrote:
I think that python's math module (which I use) is a compiled C extension,
right? I'm looking for pure python that berp can use.
Blaine
On Wed, Nov 16, 2011 at 12:25 PM, Benjamin Peterson
benja...@python.orgwrote:
2011/11/16 Blaine frik...@gmail.com:
Thanks Alex and Benjamin.
I'm sorry - you're right it isn't exactly related to pypy. I hope I didn't
break any rules. I was hoping that someone else may have come across this
because the only time I've needed to port compiled modules to python is when
I
On Wed, Nov 16, 2011 at 12:38 PM, Blaine frik...@gmail.com wrote:
I imagine pypy uses libc math through ctypes, since pypy and ctypes play
well together.
Thanks for all the tips, I'll probably just wait to see what the
maintainer thinks about mapping to haskell's math library.
Blaine
On
Oh, neat. I didn't know that. Thank you for the information, I didn't know
that was possible.
Blaine
On Wed, Nov 16, 2011 at 12:40 PM, Alex Gaynor alex.gay...@gmail.com wrote:
On Wed, Nov 16, 2011 at 12:38 PM, Blaine frik...@gmail.com wrote:
I imagine pypy uses libc math through ctypes,
http://en.literateprograms.org/Logarithm_Function_(Python)
ceil seems pretty easy to implement...
pow? Integer only?
--C
From: Blaine frik...@gmail.com
To: pypy-dev@python.org
Sent: Wednesday, November 16, 2011 9:21 AM
Subject: [pypy-dev] Pure Python Math
Thanks Charlie, that's really helpful!
Yeah ceil is easy. Pow can be done if log() and exp() are available, and
exp() shouldn't be too hard I think.
def pow(x,y):
return exp(y*log(x))
Blaine
On Wed, Nov 16, 2011 at 1:03 PM, Charlie Hui cj...@yahoo.com wrote:
The following code is a lot slower with pypy as compared to CPython. The
code mainly measures the time taken to execute a simple SQLite user
defined function (UDF) and a more complex one, 100 times each.
Execution time for both queries is:
CPython 2.7: 7 sec 489 msec
Pypy nightly build: 28
Ack.
On 17 November 2011 12:23, William ML Leslie
william.leslie@gmail.com wrote:
On 17 November 2011 12:13, Elefterios Stamatogiannakis est...@gmail.com
wrote:
Pypy seems to not jit at all when a (pypy) Python function is called from C.
Calls to native functions must be residualised,
On Wed, Nov 16, 2011 at 8:24 PM, William ML Leslie
william.leslie@gmail.com wrote:
Ack.
On 17 November 2011 12:23, William ML Leslie
william.leslie@gmail.com wrote:
On 17 November 2011 12:13, Elefterios Stamatogiannakis est...@gmail.com
wrote:
Pypy seems to not jit at all when a
17 matches
Mail list logo