Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Blaine
eprograms.org/Logarithm_Function_(Python) > ceil seems pretty easy to implement... > pow? Integer only? > > --C > > -- > *From:* Blaine > *To:* [email protected] > *Sent:* Wednesday, November 16, 2011 9:21 AM > *Subject:* [pypy-dev] Pure Python Math Li

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Charlie Hui
http://en.literateprograms.org/Logarithm_Function_(Python) ceil seems pretty easy to implement... pow? Integer only? --C From: Blaine To: [email protected] Sent: Wednesday, November 16, 2011 9:21 AM Subject: [pypy-dev] Pure Python Math Library Does anyone

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Blaine
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 wrote: > > > On Wed, Nov 16, 2011 at 12:38 PM, Blaine wrote: > >> I imagine pypy uses libc math through ctypes, since pypy and ctypes play >> well

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Alex Gaynor
On Wed, Nov 16, 2011 at 12:38 PM, Blaine 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 Wed, No

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Blaine
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 Wed, Nov 16, 2011 at 12:36 PM, Benjamin Peterson wrote: > 2011/11/16 Blai

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Benjamin Peterson
2011/11/16 Blaine : > 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

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Alex Gaynor
On Wed, Nov 16, 2011 at 12:26 PM, Blaine 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 > wrote: > >> 2011/11/16 Blaine : >> > Does

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Blaine
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

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Peter Cock
On Wed, Nov 16, 2011 at 5:27 PM, Benjamin Peterson wrote: > 2011/11/16 Blaine : >> 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. > How does pypy implement th

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Benjamin Peterson
2011/11/16 Blaine : > 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 ___ pypy-dev mailing list

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Blaine
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 wrote: > 2011/11/16 Blaine : > > Does anyone know of a pure python math library? I've been playing around >

Re: [pypy-dev] Pure Python Math Library

2011-11-16 Thread Benjamin Peterson
2011/11/16 Blaine : > 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 with. The only t

[pypy-dev] Pure Python Math Library

2011-11-16 Thread Blaine
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 with. T