[pypy-dev] Re: module pyaesni on pypy

2022-06-30 Thread Dan Stromberg
It's probably easiest to try it and see. But it appears to have assembly language in it, so likely not. But don't despair: There are probably many AES implementations for Python. On Mon, Jun 27, 2022 at 1:32 PM Nicola Di Bona < python.nicoladib...@gmail.com> wrote: > Hi, > is there a way to in

Re: [pypy-dev] Differences between pypy2 and 3 and cffi

2022-02-15 Thread Dan Stromberg
I doubt this is an expected result for Pypy3. But what if you use: result[i] = float(x) if x else 0.0 ...to make result be of homogeneous type? On Tue, Feb 15, 2022 at 3:36 AM Ioannis Foufoulas wrote: > Hi, > I have an embedded function: > > @ffi.def_extern() > def toint(input,insize,result):

Re: [pypy-dev] Running PyPy on top of CPython

2022-01-09 Thread Dan Stromberg
IINM, Running Pypy overtop of CPython is mostly useful for bootstrapping Pypy - but it's generally easier to download a Pypy binary from the official website. If you just want CPython+speed, maybe try https://stromberg.dnsalias.org/~strombrg/speeding-python/ ? On Sun, Jan 9, 2022 at 11:51 AM M A

Re: [pypy-dev] Speed of numpy vs numpypy

2021-10-08 Thread Dan Stromberg
I'm really not qualified to address this, but I suspect a lot of these hopes have moved to HPy: https://github.com/hpyproject/hpy On Fri, Oct 8, 2021 at 2:32 PM Werner Heisenberg < werner.heisenber...@gmail.com> wrote: > Hi everyone > > I read the pypy FAQ and some blog posts, which leaves me puz

Re: [pypy-dev] Autotools integration / How to determine .so filename extension

2021-07-10 Thread Dan Stromberg
On Sat, Jul 10, 2021 at 7:18 AM Roland Lutz wrote: > Hi, > Hi. I am currently using CPython 2 extensions and code in a project that's > mostly written in C. I've been moving the extensions from the CPython API > to PyPy/CFFI; CFFI is probably good, but did you evaluate HPY? In order to build

Re: [pypy-dev] How much money do you need to implement the 4+GB RAM (true 64bit) for pypy?

2021-06-02 Thread Dan Stromberg
On Wed, Jun 2, 2021 at 9:16 PM super smart wrote: > My AI program can only use 4GB of RAM in pypy. How much in CAD would you > need to implement the 64 bit solution? > > Pypy has made my code so fast, that C++ is possibly not worth writing in > ATM. > This works fine for me on a 16 Gig system: /

Re: [pypy-dev] Syscall Interface slowness

2021-05-01 Thread Dan Stromberg
o dive into the code to find out more if it’s not a known > fact > > Best, > Emre Yavuz > > On 1 May 2021, at 22:55, Dan Stromberg wrote: > > > I have a system call-heavy program ( > https://stromberg.dnsalias.org/~strombrg/backshift/), that is faster with > pypy

Re: [pypy-dev] Syscall Interface slowness

2021-05-01 Thread Dan Stromberg
uz > ___ > pypy-dev mailing list > pypy-dev@python.org > https://mail.python.org/mailman/listinfo/pypy-dev > -- Dan Stromberg ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Program slower on Pypy 7.3.3 (3.7.9) than CPython 3.9.

2021-03-18 Thread Dan Stromberg
Hi folks. I've modified my code to use str.startswith instead of re.match. I had a one-to-one correspondence between filenames and regexes anyway, so it doesn't really sacrifice anything. This way the original app (music-pipeline) is nice and fast now on pypy3 7.3.3. I'm leaving the various SSC

Re: [pypy-dev] Program slower on Pypy 7.3.3 (3.7.9) than CPython 3.9.

2021-03-17 Thread Dan Stromberg
On Tue, Mar 16, 2021 at 2:27 AM Carl Friedrich Bolz-Tereick wrote: > On 3/15/21 11:16 PM, Dan Stromberg wrote: > > > > And it's opensource, though many of the inputs are licensed. > > > > The code is at https://stromberg.dnsalias.org/~strombrg/music-pipeline/ >

Re: [pypy-dev] Program slower on Pypy 7.3.3 (3.7.9) than CPython 3.9.

2021-03-15 Thread Dan Stromberg
I put a small SSCCE for this at https://stromberg.dnsalias.org/svn/regex-fodder/trunk It's almost 10x slower, not quite as much as music-pipeline. On Mon, Mar 15, 2021 at 3:17 PM Dan Stromberg wrote: > > And it's opensource, though many of the inputs are licensed. > >

[pypy-dev] Program slower on Pypy 7.3.3 (3.7.9) than CPython 3.9.

2021-03-15 Thread Dan Stromberg
;s probably the "Blocklisting files..." part that's slow. That part is O(n*m), and seems to take forever. It's heavy on regular expressions. Are regular expressions expected to be slow on Pypy3? Thanks. -- Dan Stromberg ___ pypy-dev mai

Re: [pypy-dev] Making the most of internal UTF8

2020-02-26 Thread Dan Stromberg
On Wed, Feb 26, 2020 at 10:41 AM Matt Billenstein via pypy-dev < pypy-dev@python.org> wrote: > You can think of 'u' as being the default in python3 where 'b' was the > default in python2 (not ascii) - but most stdlib functions would accept > bytes as strings. > > So in python3, you don't need 'u'

Re: [pypy-dev] Python 2 vs Python 3 again, and a 2.x-only dependency

2019-07-16 Thread Dan Stromberg
On Tue, Jul 16, 2019 at 1:35 AM William ML Leslie < william.leslie@gmail.com> wrote: > > > On Tue., 16 Jul. 2019, 2:34 pm Ryan Gonzalez, wrote: > >> I'm actually largely wondering if RPython is going to eventually move to >> 3... >> >>> >>> > Significant effort, for what benefit exactly? > E

Re: [pypy-dev] Python 2 vs Python 3 again, and a 2.x-only dependency

2019-07-16 Thread Dan Stromberg
Nupic: https://github.com/numenta/nupic There's a community edition that supports Python 3.x, but its license may prove unsuitable to what we're doing. On 7/15/19 4:57 PM, Matt Billenstein wrote: What is the dependency? m On Mon, Jul 15, 2019 at 04:24:50PM -0700, Dan Strom

[pypy-dev] Python 2 vs Python 3 again, and a 2.x-only dependency

2019-07-15 Thread Dan Stromberg
What is Pypy planning to do with Python 2.x, now that many packages on Pypi are dropping Python 2.x support? EG, I believe Pypy caters to Scientific Computing, but with Numpy dropping Python 2.x support, will Pypy3 become the more relevant version of Pypy? Will Numpypy be revived? Will th

Re: [pypy-dev] Numpy Topics

2015-01-20 Thread Dan Stromberg
On Tue, Jan 20, 2015 at 4:57 PM, Steven Jackson wrote: > > Hey I'd like to know if the proposed numpy projects list at > https://bitbucket.org/pypy/extradoc/src/extradoc/planning/micronumpy.txt is > still up to date, and if so what is meant by "a good sort function." > If it's just a matter of imp

Re: [pypy-dev] PyPy for analysis?

2014-09-07 Thread Dan Stromberg
On Sun, Sep 7, 2014 at 11:59 AM, Yury V. Zaytsev wrote: > On Sun, 2014-09-07 at 20:25 +0200, Scott West wrote: >> >> Otherwise I can just grab the bytecode or AST and do it myself, but I >> didn't want to replicate any work if I didn't have to :) > > I'm not exactly sure what kind of analysis you

Re: [pypy-dev] PyPy 2 unicode class

2014-01-23 Thread Dan Stromberg
On Tue, Jan 21, 2014 at 11:01 PM, Johan Råde wrote: > At the Leysin Sprint Armin outlined a new design of the PyPy 2 unicode > class. He gave two versions of the design: Why spend brain cycles on a Pypy unicode class, when you could just move on to Pypy3? The majority of the Python community is

Re: [pypy-dev] pip install rbtree fail in pypy env!

2013-10-31 Thread Dan Stromberg
On Thu, Oct 31, 2013 at 8:07 PM, KaShining wrote: > > tks,but > > test-red_black_dict_mod.py under pypy-2.1. consume :3.89574193954 > test-rbtree.py under python2.7.3 > .consume:0.354326009...@gmail.com > >; > Interesting. Do you need good performance? You might consider a treap:

Re: [pypy-dev] pip install rbtree fail in pypy env!

2013-10-31 Thread Dan Stromberg
On Thu, Oct 31, 2013 at 1:53 AM, Armin Rigo wrote: > Hi KaShining, > > On Thu, Oct 31, 2013 at 9:32 AM, KaShining wrote: > > src/rbtree.c: In function '__pyx_f_6rbtree_6rbtree_byOffset': > > This is using Cython. Compiling Cython modules with PyPy > kind-of-works but is shaky. > Here's a p

[pypy-dev] SSL version?

2013-05-09 Thread Dan Stromberg
I get an error when trying to run pypy 2.0 on a Debian Wheezy system: dstromberg@deskie:~/src/home-svn/backshift/trunk$ /usr/local/pypy-2.0/bin/pypy /usr/local/pypy-2.0/bin/pypy: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory dstrom

[pypy-dev] Surface-level Presentation about PyPy

2012-11-24 Thread Dan Stromberg
There's been some curiosity about PyPy at my local Python User Group (OCPUG), so I put together a brief, surface-level talk about PyPy, to be delivered on Tuesday evening (the 27th). If some of the more PyPy-knowledgeable people here could look it over for accuracy and omissions, that'd be awesome

Re: [pypy-dev] Need help in concluding Multi-Thread based model thoughts between Python and PyPy

2012-10-30 Thread Dan Stromberg
On Tue, Oct 30, 2012 at 9:33 AM, David Ripton wrote: > On 10/30/2012 11:19 AM, Sasikanth Eda wrote: > > I have tried to perform a CPU intensive operation ( which typically >> involved calculation of prime numbers from 1-10 ) using >> Multi-process and Multi-Thread models provided by >> C, Py

Re: [pypy-dev] Concurrent, nosql, opensource, key-value datastore that works with CPython, Pypy and Jython?

2012-07-24 Thread Dan Stromberg
On Tue, Jul 24, 2012 at 10:58 PM, Alex Gaynor wrote: > > > > Are you looking for a database actually written in Python, or just one > with a python client? Either would be good. But I'm guessing Jython ctypes isn't quite there yet (wasn't last time I checked), so maybe something pure python wo

[pypy-dev] Concurrent, nosql, opensource, key-value datastore that works with CPython, Pypy and Jython?

2012-07-24 Thread Dan Stromberg
The subject pretty much says it, but here it is again: Is there a concurrent, nosql, opensource key-value store that works with Pypy, CPython 2.x, CPython 3.x and Jython? It doesn't need to be highly concurrent. In fact, locking the entire table for the duration of operations would be acceptable

Re: [pypy-dev] PyPy 1.7 - widening the sweet spot

2011-11-21 Thread Dan Stromberg
Very nice. Passes my barrage of backshift automatic tests. I'm excited about investigating the performance benefits for my deduplication algorithm. ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Translating pypy-sandbox eats 13GB of RAM

2011-11-21 Thread Dan Stromberg
On 11/21/11, David Naylor wrote: > Hi > > While trying to translate pypy-1.7 with the sandbox option, using pypy-1.6 I > saw the translating pypy consume 13.3GB of memory (column Res in top). This > is under FreeBSD-9RC2/amd64. > I also get a lot of memory use when building pypy 1.6 on a 64 bit

Re: [pypy-dev] PyPy 1.6 released

2011-08-18 Thread Dan Stromberg
Sweet. ^_^ I see the permissions bits look better now too. I miss os.stat().st_rdev though - was it removed for a reason? On Thu, Aug 18, 2011 at 10:30 AM, Maciej Fijalkowski wrote: > > PyPy 1.6 - kickass panda > > > We're pleased to announce t

Re: [pypy-dev] python 3

2011-08-17 Thread Dan Stromberg
On Wed, Aug 17, 2011 at 5:13 PM, Eli Stevens (Gmail) wrote: > On Wed, Aug 17, 2011 at 4:01 PM, Yury Selivanov > wrote: > > +1 to the question. Why can't it be that way? > > If by "that way" you mean "leave python 2.x behind post 1.6" I'd like > to note that IMO pypy has been under-acknowledged b

Re: [pypy-dev] python 3

2011-08-16 Thread Dan Stromberg
I'm inclined to agree: Python 3.x is important for PyPy's future. On Tue, Aug 16, 2011 at 7:19 AM, Timur Tkachev wrote: > Hello, > > Guys, maybe my question had been asked numerous times, but I couldn't > google even a remote answer to it. What are the plans of python 3 support? > Please shed s

Re: [pypy-dev] newbie needs pypy setup help

2011-07-30 Thread Dan Stromberg
On Sat, Jul 30, 2011 at 7:27 PM, wrote: > Just unpack the tarball. Don't do all that copying of stuff. > > Jean-Paul > > I believe it's more than a matter of just unpacking a tar archive. The tar archives have had permissions problems long enough that I suspect there's a bug in the build/releas

Re: [pypy-dev] newbie needs pypy setup help

2011-07-30 Thread Dan Stromberg
-p "$where"/lib_pypy (cd lib_pypy && tar cflS - .) | (cd "$where"/lib_pypy && tar xfp -) #(cd translator/sandbox && tar cflS - .) | (cd "$where"/lib_pypy && tar xfp -) find "$where" -name .svn -print | xargs rm -rf On Sat, Jul

Re: [pypy-dev] newbie needs pypy setup help

2011-07-30 Thread Dan Stromberg
Any particular reason not to use the tarball on the pypy website? There might be a silly permission issue to fix, but it's much easier than what appears below. On Sat, Jul 30, 2011 at 3:17 PM, Tom Roche wrote: > > (Apologies if > > - this is not the appropriate venue for this question, but I do

Re: [pypy-dev] cpyext - compilation, and swig?

2011-05-13 Thread Dan Stromberg
On Fri, May 13, 2011 at 3:06 PM, Amaury Forgeot d'Arc wrote: > 2011/5/13 Dan Stromberg : > >> Normally, it's enough to run "pypy setup.py install" > > > > I don't suppose the path to doing this with "make" has been explored? > > D

Re: [pypy-dev] cpyext - compilation, and swig?

2011-05-13 Thread Dan Stromberg
On Fri, May 13, 2011 at 1:27 PM, Amaury Forgeot d'Arc wrote: > Hi, > > 2) Do I need to recompile the module for pypy? > > Yes, because the memory layout of objects is different, and some > macros are turned into function calls. > And to enforce the difference with CPython, the extension modules ar

[pypy-dev] cpyext - compilation, and swig?

2011-05-13 Thread Dan Stromberg
When I build a swig-generated C extension module against CPython 2.6, and attempt to load it using cpyext, I get: /usr/local/pypy-1.5/bin/pypy cpyext.load_module('_odirectcmodule.so', 'odirect') Traceback (most recent call last): File "", line 1, in ImportError: unable to load extension mo