Re: [pypy-dev] adding numpy test target to buildbot

2013-06-28 Thread Armin Rigo
Hi, On Fri, Jun 28, 2013 at 11:26 AM, Antonio Cuni anto.c...@gmail.com wrote: cool, thanks! I guess we have our own update_hg for historical reasons? IIRC, the hg support in buildbot had some strange features and it was just easier to write our own function instead of trying to convince

Re: [pypy-dev] VerificationError after build

2013-06-29 Thread Armin Rigo
Hi Skip, On Fri, Jun 28, 2013 at 9:30 PM, Skip Montanaro s...@pobox.com wrote: SuSE has a somewhat different packaging of curses than do other installation. It'd be ideal if pypy-c would be immune to that, but so lacking I did: I tried yesterday to have it refuse to translate when some

Re: [pypy-dev] PYTHONPATH handling doesn't seem to match Python

2013-06-29 Thread Armin Rigo
Hi Skip, On Fri, Jun 28, 2013 at 10:41 PM, Skip Montanaro skip.montan...@gmail.com wrote: Now, try the same experiment with PyPy. The relative order of those two directories is reversed: Sorry, I can't reproduce the problem you describe. More importantly I don't understand why

Re: [pypy-dev] PYTHONPATH handling doesn't seem to match Python

2013-06-29 Thread Armin Rigo
Hi Skip, On Sat, Jun 29, 2013 at 11:24 PM, Skip Montanaro skip.montan...@gmail.com wrote: that version of Python was executed. Accordingly, /opt/local/lib/python2.7/site-packages was in sys.path, as it should have been. It appears that the generated pypy-c wound up with that directory in

Re: [pypy-dev] Memap in numpypy

2013-06-30 Thread Armin Rigo
Hi Mike, On Sun, Jun 30, 2013 at 7:15 PM, Mike Beller m...@tradeworx.com wrote: is ignored (e.g. select/interp_epoll/W_EPoll, and others) -- seems a common problem At the end of that file we have W_Epoll.typedef.acceptable_as_base_class = False, meaning that it cannot be subclassed as

[pypy-dev] stmgc: about major collections

2013-07-04 Thread Armin Rigo
Hi Remi, Just a note about major collections and the handling of h_original in stmgc: as you said in an XXX we don't need to *trace* the h_original object, but only keep it alive. But also, I thought some time ago about a trick to improve the overall performance of prebuilt objects, which is to

Re: [pypy-dev] asmgcc assertion error in lang-smalltalk

2013-07-20 Thread Armin Rigo
Hi Lars, On Fri, Jul 19, 2013 at 11:36 AM, Lars Wassermann lars.wasserm...@student.hpi.uni-potsdam.de PyPy assertion failed at rpython_memory_gctransform_asmgcroot.c:583: in pypy_g_locate_caller_based_on_retaddr: found a stack frame that does not belong anywhere I know, bug in asmgcc The best

Re: [pypy-dev] pypy ignores signals sometimes was: parallel building

2013-07-29 Thread Armin Rigo
Hi Nathan, On Mon, Jul 29, 2013 at 1:28 AM, Nathan Hurst n...@njhurst.com wrote: why does python and pypy do this? Is it part of the GIL problem? will STM fix it? PyPy does this because Python does it. It is not part of any other problem, just that thread.join() uses lock.acquire(), which

Re: [pypy-dev] Threading in RPython

2013-07-30 Thread Armin Rigo
Hi Sean, On Sun, Jul 7, 2013 at 10:23 PM, Sean Fisk seanf...@gmail.com wrote: Sorry, I didn't make it clear: my project is actually an interpreter for a stencil-based language that is used for solving partial differential equations. So I think that RPython is the right tool to an extent. It

Re: [pypy-dev] memory leak in pypy

2013-07-30 Thread Armin Rigo
Hi Vasily, On Tue, Jul 30, 2013 at 2:02 PM, Vasily Evseenko svp...@gmail.com wrote: It seems to be range / xrange issue. range allocates all data in a moment when xrange acts like an iterator. Not in PyPy. Armin ___ pypy-dev mailing list

Re: [pypy-dev] Question about cffi cache dir

2013-08-10 Thread Armin Rigo
Hi Michal, On Thu, Aug 8, 2013 at 3:39 PM, Michal Vyskocil mvysko...@suse.cz wrote: It seems that __pycache__ is not created during a build, but on runtime, so my attempt to build pypy using pypy ends on [ 66s] IOError: [Errno 2] No such file or directory:

[pypy-dev] os.uname() in rpython/memory/gc/env.py

2013-08-10 Thread Armin Rigo
Hi, During refactorings I found out that os.uname() is called at run-time from rpython/memory/gc/env.py to figure out on which platform we are. It also means that the logic to figure out the L2 cache size *for all platforms* is compiled into any pypy-c. In ab7580454b32 I moved the call to

[pypy-dev] The fate of gc-del

2013-08-11 Thread Armin Rigo
Hi all, I'm trying again to look at the gc-del branch, but I'm kind of failing. The current state is: http://buildbot.pypy.org/summary?branch=gc-del The failures are all more or less obscure. The issues all may have to do with subtly broken things in the finalizer ordering code. But now

Re: [pypy-dev] The fate of gc-del

2013-08-12 Thread Armin Rigo
Re-hi, Update after discussion on IRC (thanks cfbolz). First, there are two problems that should be separated. One is the change in interface for RPython programs, calling rgc.register_finalizer() instead of having regular __del__()s. The other is making these finalizers be called more quickly

Re: [pypy-dev] The fate of gc-del

2013-08-12 Thread Armin Rigo
Hi William, On Mon, Aug 12, 2013 at 10:00 AM, William ML Leslie william.leslie@gmail.com wrote: On 12 August 2013 17:38, Armin Rigo ar...@tunes.org wrote: The advantage of this approach is that it's done without RPython changes, just by tweaks in the GC. Do you know what changes

Re: [pypy-dev] Where do I find the stm-gc branch?

2013-08-18 Thread Armin Rigo
Hi, On Fri, Aug 16, 2013 at 8:49 PM, Maciej Fijalkowski fij...@gmail.com wrote: It's stmgc-c4 https://bitbucket.org/pypy/pypy/src/86ed2339b72395703ce6d5824286355bf33a2da9/?at=stmgc-c4 And right now, the most translatable branch is stmgc-static-barrier, in the sense of giving the fastest

Re: [pypy-dev] build dependencies on SuSE SLES 11

2013-08-20 Thread Armin Rigo
Hi, On Mon, Aug 12, 2013 at 3:16 PM, Riccardo Murri riccardo.mu...@gmail.com wrote: On 12 August 2013 15:14, Riccardo Murri riccardo.mu...@gmail.com wrote: $ sudo zypper install gcc make python-devel pkg-config \ zlib-devel libopenssl-devel libbz2-devel sqlite3-devel

Re: [pypy-dev] Windows 7 x64 development

2013-08-21 Thread Armin Rigo
Hi all, I finally wrote out the details of what I think is a reasonable plan. https://bitbucket.org/pypy/pypy/raw/default/pypy/doc/windows.rst What is missing for a full 64-bit translation A bientôt, Armin. ___ pypy-dev mailing list

Re: [pypy-dev] london sprint - newbie question + accommodation note

2013-08-21 Thread Armin Rigo
Hi Rami, On Wed, Aug 21, 2013 at 3:13 PM, Rami Chowdhury rami.chowdh...@gmail.com wrote: Until yesterday I wasn't sure if I'd be in town during this, but it looks like I will be. I'd like to join in with some sprinting, although I'm not sure how long I'll be able to devote -- will there be any

Re: [pypy-dev] Windows 7 x64 development

2013-08-23 Thread Armin Rigo
Hi again, On Wed, Aug 21, 2013 at 9:46 AM, Armin Rigo ar...@tunes.org wrote: I finally wrote out the details of what I think is a reasonable plan. https://bitbucket.org/pypy/pypy/raw/default/pypy/doc/windows.rst What is missing for a full 64-bit translation Updated the file. Anyone

Re: [pypy-dev] [pypy-commit] pypy refactor-translator: Remove fork_before option (unused).

2013-09-05 Thread Armin Rigo
Hi, On Wed, Sep 4, 2013 at 4:44 PM, Antonio Cuni anto.c...@gmail.com wrote: Hi Manuel, did you actually kill support for this feature? I find it occasionally useful: e.g. when working on the JIT you can use --fork-before=pyjitpl and avoid to annotate/rtype the whole pypy interp when you

Re: [pypy-dev] Specifying lib locations?

2013-09-05 Thread Armin Rigo
Hi Skip, On Thu, Sep 5, 2013 at 5:29 PM, Skip Montanaro s...@pobox.com wrote: Trying to build from source, I get the complaint, failed to guess where ncurses is installed. The logic is spread on pages upon pages of pypy/module/_minimal_curses/fficurses.py, including trying with the pkg-config

Re: [pypy-dev] Free SSL certificate for https://bugs.pypy.org

2013-09-05 Thread Armin Rigo
Hi Anatoly, On Thu, Sep 5, 2013 at 8:53 PM, anatoly techtonik techto...@gmail.com wrote: *.python.org uses free SSL certificate from http://www.startssl.com/?app=1 PyPy can use this too to get rid of annoying security exceptions for https://bugs.pypy.org and other parts. Thanks ! Fwiw, we

Re: [pypy-dev] Specifying lib locations?

2013-09-06 Thread Armin Rigo
Hi Skip, On Fri, Sep 6, 2013 at 5:10 PM, Skip Montanaro s...@pobox.com wrote: It seems that try_ldflags should also yield ExternalCompilationInfo instances where the main library is ncurses, not curses, and /usr/lib64 should be searched as well, at least by some of the ECI variants. Feel

Re: [pypy-dev] PyPy's PyDateTime_Delta definition

2013-09-07 Thread Armin Rigo
Hi Skip, hi Amaury, On Sat, Sep 7, 2013 at 3:16 AM, Skip Montanaro s...@pobox.com wrote: Alas, I am still confused. The PyDateTime_DELTA_GET_* macros aren't defined for CPython until the 3.x series. (There are macros in 2.7, but they are defined in datetimemodule.c, not in a public header

[pypy-dev] LLVM next steps

2013-09-08 Thread Armin Rigo
Hi Manuel, We've been suitably impressed by the results on the new llvm backend during the sprint (well, or suitably un-impressed by both gcc and clang's failure to reconstruct the SSA meaning of the C code). The current issue seems to be debugging. It would be nice if gdb presented at least

Re: [pypy-dev] freeze in project under pypy

2013-09-08 Thread Armin Rigo
Hi Max, As a starting point, try to run pypy with the following environment variable: PYPYLOG=gc-collect:- Then look interactively if it seems that the pauses correspond to blocks {gc-collect ... gc-collect} in the output. I would say that 1500ms looks on the high end of GC times, but is

Re: [pypy-dev] LLVM next steps

2013-09-08 Thread Armin Rigo
Hi Alex, On Sun, Sep 8, 2013 at 5:33 PM, Alex Gaynor alex.gay...@gmail.com wrote: LLVM also has a link time optimization, is it on by default in LLVM, or do we need to benchmark with it enabled explicitly? The point I made in my mail was that the llvm backend is written in a way that makes

Re: [pypy-dev] Cannot use MacPorts PyPy to Translate pypy-c

2013-09-10 Thread Armin Rigo
Hi Jean-François, On Mon, Sep 9, 2013 at 6:08 PM, Jean-François Caron jfca...@phas.ubc.ca wrote: Hi, I am following the instructions here: http://doc.pypy.org/en/latest/cppyy.html#installation and here: http://root.cern.ch/phpBB3/viewtopic.php?f=14t=17018 In the first link, it says I can use

Re: [pypy-dev] Cannot use MacPorts PyPy to Translate pypy-c

2013-09-11 Thread Armin Rigo
Hi Jean-François, On Tue, Sep 10, 2013 at 5:43 PM, Jean-François Caron jfca...@phas.ubc.ca wrote: I can send an email or bug report to MacPorts, but I'm not sure how to describe the bug, as I'm unfamiliar with the syslog module. Just reporting the error is plenty enough. The issue is that

Re: [pypy-dev] LLVM next steps

2013-09-11 Thread Armin Rigo
Hi Eric, On Sun, Sep 8, 2013 at 7:00 PM, Eric van Riet Paap eric...@gmail.com wrote: What is the PyPy speed difference after using gcc versus llvm for the compilation of the PyPy-c backend? Currently, it seems that using the LLVM IR static translation backend of PyPy gives higher performance.

Re: [pypy-dev] Cannot use MacPorts PyPy to Translate pypy-c

2013-09-11 Thread Armin Rigo
Hi Bengt, On Wed, Sep 11, 2013 at 1:42 PM, Bengt Richter b...@oz.net wrote: Is it not currently possible to build and install everything pypy in user mode, in a user directory, e.g. ~/.pypy/versionstring/... and chmod selectively to protect against accidental mods/deletes? Will it not run

Re: [pypy-dev] lang-scheme development

2013-09-21 Thread Armin Rigo
Hi Weikun, On Sat, Sep 21, 2013 at 2:38 AM, Weikun Yang wky...@gmail.com wrote: To developers of pypy/lang-scheme, I wonder if anyone still maintains lang-scheme on bitbucket? I'm a university student facing a project for my compilers course, and would like to use lang-scheme as a starting

Re: [pypy-dev] pypy-stm and lock-free data structures

2013-10-24 Thread Armin Rigo
Hi Andrew, On Tue, Oct 22, 2013 at 11:10 PM, Andrew Francis andrewfr_...@yahoo.com wrote: 1) Would I be using the pypy-stm branch? (because there is no GIL) 2) Would I write some of this in RPython? (I am assuming yes) The pypy-stm branch has no GIL in the implementation, but its behavior is

Re: [pypy-dev] pypy-stm and lock-free data structures

2013-10-25 Thread Armin Rigo
Hi Andrew, On Thu, Oct 24, 2013 at 8:27 PM, Andrew Francis andrewfr_...@yahoo.com wrote: A bit more context - I have looked at the C code for the Go channel implementation and said wow, there is a lot of locking there! I also have been following conversations concerning race conditions and the

Re: [pypy-dev] A few notes trying to compile pypy

2013-10-26 Thread Armin Rigo
Hi, On Sat, Oct 26, 2013 at 10:25 AM, Maciej Fijalkowski fij...@gmail.com wrote: about libffi.h - Apple removed /usr/include and moved it somewhere else, no clue where. I also don't have access to Mavericks so I can't fix it. Ooooh. Traditionally, libffi.h was put in unexpectedly varying

Re: [pypy-dev] A few notes trying to compile pypy

2013-10-26 Thread Armin Rigo
Hi Kevin, Thanks for this report ! A quick note though: On Sat, Oct 26, 2013 at 7:18 AM, Kevin Burke k...@inburke.com wrote: - Once I got it installled I didn't realize there was an additional step after pypy-c was created. Note that this step, package.py, is not required to run the pypy-c

Re: [pypy-dev] pypi blog shows strange on planet.python.org

2013-10-27 Thread Armin Rigo
Hi Holger, On Sun, Oct 27, 2013 at 10:06 PM, holger krekel hol...@merlinux.eu wrote: The last Making coverage.py faster under pypy blog shows strangely on the Python planet, check it out: Maybe related: the formatting of http://morepypy.blogspot.com has changed recently, so it may be the case

Re: [pypy-dev] pypi blog shows strange on planet.python.org

2013-10-27 Thread Armin Rigo
Hi Alex, On Sun, Oct 27, 2013 at 10:18 PM, Alex Gaynor alex.gay...@gmail.com wrote: It's not unlikely I screwed up the formatted of the post :) If there's some specific way I can fix it let me know. Ah, I see :-) It's because you pasted too much html from the ReST output --- you included the

[pypy-dev] Fwd: LLVM stackmaps

2013-10-29 Thread Armin Rigo
Hi all, hi mjacob, Someone interested in the port to llvm could have a look at this: http://llvm-reviews.chandlerc.com/file/data/qnievreabgj3qqnco3ax/PHID-FILE-ofdo5nanmf23mhblqcga/D1981.diff It adds two different things. The first is stackmaps, which could replace shadowstack/asmgcc for

Re: [pypy-dev] trying out STM for some numbers on more cores

2013-10-29 Thread Armin Rigo
Hi Davide, On Tue, Oct 29, 2013 at 6:21 PM, Davide Del Vento ddve...@ucar.edu wrote: I don't know. But I do know that processor/thread binding (if that is what you mean by pin) is *extremely* important in Sandy Bridge, even more than on previous archs. And, oddly enough, in my experience is

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

2013-10-31 Thread Armin Rigo
Hi KaShining, On Thu, Oct 31, 2013 at 9:32 AM, KaShining mail2sh...@qq.com 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. You may have more luck if you upgrade Cython to the latest

Re: [pypy-dev] Using PyPy's GC

2013-11-04 Thread Armin Rigo
Hi, On Mon, Nov 4, 2013 at 12:57 AM, Maciej Fijalkowski fij...@gmail.com wrote: If I'm implementing my own language in RPython, can I use the same garbage collector that PyPy uses? Or do I have to write my own? Yes, you can use the same GC. More precisely, you *have* to use the same GC (or

Re: [pypy-dev] pypy about c-extension

2013-11-04 Thread Armin Rigo
Hi, On Mon, Nov 4, 2013 at 8:47 AM, KaShining mail2sh...@qq.com wrote: but after i gen the podpbpypy.so How? Armin ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] pypy about c-extension

2013-11-04 Thread Armin Rigo
Hi, On Mon, Nov 4, 2013 at 9:04 AM, KaShining mail2sh...@qq.com wrote: import podpbpypy ImportError: No module named podpbpypy seen can't find podpbpypy.so There is no point repeating what you already said. I'm asking, how did you build the .so in the first place. Armin

Re: [pypy-dev] pypy about c-extension

2013-11-04 Thread Armin Rigo
Hi, Then maybe this? The .so is produced by setup.py build in build/lib.linux-x86_64-2.7/podpbpypy.so. It can't be imported from there. You need setup.py install too. Armin ___ pypy-dev mailing list pypy-dev@python.org

Re: [pypy-dev] More strategies

2013-11-08 Thread Armin Rigo
Hi, On Fri, Nov 8, 2013 at 12:14 AM, William ML Leslie william.leslie@gmail.com wrote: I wonder a bit if it is worth introducing additional fast paths for clearly nonsense (eg, string) cases, when it's the sensible case (user-provided types that provide __eq__) that we should be optimising

Re: [pypy-dev] cffi python long

2013-11-08 Thread Armin Rigo
Hi Nathan, On Fri, Nov 8, 2013 at 4:35 PM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: Is there a nicer way to pass python long ints (bigint) into C efficiently? It depends what the C code wants to do with it. If it's just for passing around, you can use ffi.from_handle(). If the C code

Re: [pypy-dev] can we get stdlib-2.7.5 merged?

2013-11-11 Thread Armin Rigo
Hi Matti, On Sun, Nov 10, 2013 at 9:24 PM, Matti Picus matti.pi...@gmail.com wrote: There are only a handful (ok - 10, two others are from the nightly default) of failures on the stdlib-2.7.5 branch: http://buildbot.pypy.org/summary?branch=stdlib-2.7.5 It seems the major one is handling eintr

[pypy-dev] Preparing for the release of PyPy 2.2

2013-11-11 Thread Armin Rigo
Hi all, Preparing for the next release. The Linux binaries of PyPy 2.2, release candidate, are here: http://buildbot.pypy.org/nightly/release-2.2.x/ This corresponds to the release-2.2.x branch in the repo. There are a few bug reports that will likely *not* get fixed for lack of manpower: we

Re: [pypy-dev] Preparing for the release of PyPy 2.2

2013-11-11 Thread Armin Rigo
Re-hi, The OS/X release candidate (thanks Alex!): http://cobra.cs.uni-duesseldorf.de/~buildmaster/misc/pypy-2.2-osx.tar.bz2 Armin ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] More strategies

2013-11-12 Thread Armin Rigo
Hi Laurence, On Fri, Nov 8, 2013 at 5:28 PM, Laurence Tratt lau...@tratt.net wrote: my experience, Python programs that nominally use floats actually end up slinging lots of integers around since very few people can be bothered to write x = 1.0 instead of x = 1. I expect the other types are

Re: [pypy-dev] Preparing for the release of PyPy 2.2

2013-11-12 Thread Armin Rigo
Hi David, Any reason why the buildbot page http://buildbot.pypy.org/builders/build-pypy-c-jit-linux-armhf-raring is the only one missing the section Force build? It prevents us from asking for a build on the release-2.2.x branch. A bientôt, Armin.

Re: [pypy-dev] Preparing for the release of PyPy 2.2

2013-11-13 Thread Armin Rigo
Hi Matti, Thanks for doing all this work! Fwiw I plan to do the release tomorrow, but being a few days late on Windows wouldn't be new. Armin ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Preparing for the release of PyPy 2.2

2013-11-14 Thread Armin Rigo
Hi Matti, On Wed, Nov 13, 2013 at 1:01 AM, Matti Picus matti.pi...@gmail.com wrote: The sqlite3 issue was easy, we can simply replace the one on the buildbot with the 3.6.21 version. I saw the fix. Thanks! I have opened a branch for the tkinter changes, since they require a bit more work.

Re: [pypy-dev] More strategies

2013-11-14 Thread Armin Rigo
Hi Laurence, On Thu, Nov 14, 2013 at 10:47 AM, Laurence Tratt lau...@tratt.net wrote: I think that question can only really be answered by trying it out and seeing what the benchmarks say. My guess is that you still want both, but if people mix ints and floats even more often than I think they

Re: [pypy-dev] Preparing for the release of PyPy 2.2

2013-11-14 Thread Armin Rigo
Hi Matti. On Thu, Nov 14, 2013 at 11:40 AM, matti picus matti.pi...@gmail.com wrote: I would suggest that we ship pypy2.2 without a functioning Tkinter module, to be consistent with all previous pypy versions :) Ok, so I believe I can take this:

Re: [pypy-dev] More strategies

2013-11-14 Thread Armin Rigo
Hi Eli, On Thu, Nov 14, 2013 at 9:31 PM, Eli Stevens (Gmail) wickedg...@gmail.com wrote: From http://en.wikipedia.org/wiki/NaN#Encoding : The state/value of the remaining bits (i.e. other than the ones used to identify a NaN as NaN, including the quiet/signaled bits) are not defined by the

Re: [pypy-dev] More strategies

2013-11-14 Thread Armin Rigo
Hi Antonio, On Thu, Nov 14, 2013 at 2:35 PM, Antonio Cuni anto.c...@gmail.com wrote: W_FloatObjectPresevingTheBits will be created only by operations like struct.unpack, cffi.cast, etc. That's not enough: if you read one such float into a variable and then append that variable into another

Re: [pypy-dev] Preparing for the release of PyPy 2.2

2013-11-15 Thread Armin Rigo
Hi Amaury, On Tue, Nov 12, 2013 at 10:56 PM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: -Include a prebuilt TkInter??? Not only DLLs, but also header files and .lib. cffi need a development environment. Actually, why? Does tkinter really need more than sqlite3? It seems that in both

Re: [pypy-dev] List of finished NumPy functions // Progressbar

2013-11-16 Thread Armin Rigo
Hi Anatoly, On Sat, Nov 16, 2013 at 8:20 AM, anatoly techtonik techto...@gmail.com wrote: (...) But it ideally should be drawn as a horizontal completion line (with achievement milestones..?, historical period marks..?, future achievement goals..?). I suppose this answer is not going to

Re: [pypy-dev] I find a bug

2013-11-17 Thread Armin Rigo
Hi Bookaa, On Sun, Nov 17, 2013 at 12:48 AM, bookaa boo...@rorsoft.com wrote: -foo_py = prefix.join('foo.py').write(pass) +foo_py = prefix.join('foo.py') +foo_py.write(pass) Thanks ! Armin ___ pypy-dev mailing list

[pypy-dev] Windows version 2.2.1

2013-11-18 Thread Armin Rigo
Hi all, Here's the release candidate for PyPy 2.2.1 on Windows: it fixes the json decoding, and adds Tk support (thanks Matti!). Please tell me if there is some problem with it. http://buildbot.pypy.org/nightly/release-2.2.x/pypy-c-jit-68207-1567dba349e6-win32.zip On other platforms, PyPy

Re: [pypy-dev] Doing a 2.2.1 release

2013-11-24 Thread Armin Rigo
Hi Matti, Do you have a clue about http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/1207 ? A bientôt, Armin. ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] clarification cffi vs _ffi_ vs _ffi vs libffi vs _rawffi vs rffi

2013-11-27 Thread Armin Rigo
Hi Dima, On Wed, Nov 27, 2013 at 4:07 PM, Dima Tisnek dim...@gmail.com wrote: there seems to be some confusion (could be all mine) between N terms related to FFI: As a user of PyPy you only need to concern yourself with cffi and ctypes. The rest is all a number of more-or-less related

Re: [pypy-dev] clarification cffi vs _ffi_ vs _ffi vs libffi vs _rawffi vs rffi

2013-11-27 Thread Armin Rigo
Re-Hi, On Wed, Nov 27, 2013 at 5:24 PM, Armin Rigo ar...@tunes.org wrote: http://doc.pypy.org/en/latest/extending.html I updated that page. Armin ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

[pypy-dev] PyPy 2.2.1

2013-11-27 Thread Armin Rigo
. * If sys.maxunicode==65535 (on Windows and maybe OS/X), the json decoder incorrectly decoded surrogate pairs. * some FreeBSD fixes. Note that CFFI 0.8.1 was released. Both versions 0.8 and 0.8.1 are compatible with both PyPy 2.2 and 2.2.1. Cheers, Armin Rigo everybody

[pypy-dev] PyPy3 release?

2013-11-27 Thread Armin Rigo
Hi all, Any volunteer to handle the PyPy3 release corresponding to PyPy 2.2? A bientôt, Armin. ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

[pypy-dev] Leysin sprint (11-19 January 2014)

2013-11-30 Thread Armin Rigo
around -- bring a EU-format power strip if you have one. Armin Rigo ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] PyPy3 release?

2013-11-30 Thread Armin Rigo
Hi Rami, On Fri, Nov 29, 2013 at 8:20 PM, Rami Chowdhury rami.chowdh...@gmail.com wrote: What would this involve? I ask not only for my benefit but also for any other newbies that may be lurking here and thinking about getting involved :-) http://doc.pypy.org/en/latest/how-to-release.html A

Re: [pypy-dev] Pluggable HTM

2013-12-03 Thread Armin Rigo
Hi Dimitri, On Wed, Nov 27, 2013 at 9:17 AM, Dimitri Vorona alen...@googlemail.com wrote: the original STM proposal spoke of HTM as of a thing of a far future. Now, Haswells are out and provide built-in HTM support in form of TSX. In the near future I expect more and more systems to have it.

[pypy-dev] Integrating CPython and PyPy, maybe

2013-12-03 Thread Armin Rigo
Hi all, Starting from last night, the nightly builds of PyPy are able to run this kind of code: http://bpaste.net/show/155166/ (You have to adjust the libpython2.x.so path manually.) The idea is to link in the libpython.so, using cffi. Then you can use it much like you would in C. For

Re: [pypy-dev] Questions about pypy log

2013-12-07 Thread Armin Rigo
Hi Andrea, On Fri, Dec 6, 2013 at 11:24 AM, andrea.jer...@studenti.univr.it wrote: I'm Andrea Jeradi, a computer science student of university of Verona (Italy). I'm doing a project and I'm using pypy. On Internet I have not found explanation about the meaning of some entry of the log. The

Re: [pypy-dev] Questions about pypy log

2013-12-09 Thread Armin Rigo
Hi again, On Mon, Dec 9, 2013 at 10:06 AM, Andrea Jeradi andrea.jer...@studenti.univr.it wrote: (...) i need to understand the meaning of the jit-summary, and for completeness what the entry of the summary refers to. As I said, half the entries are very internal. I could try to explain them

Re: [pypy-dev] Compiling stmgc-c4 fails on 32bit

2013-12-09 Thread Armin Rigo
Hi Jean-Philippe, On Sun, Dec 8, 2013 at 8:46 PM, Jean-Philippe Caissy jpcai...@piji.ca wrote: I'm trying to compile stmgc-c4 on a fresh Ubuntu 12.04 32bit machine (lxc containers if that matters), and it fails. However, a fresh 12.04 64bit installation, it compiles without any problem. For

Re: [pypy-dev] why logging in pypy not need acquire lock?

2013-12-24 Thread Armin Rigo
Hi KaShining, On Tue, Dec 24, 2013 at 9:15 AM, KaShining mail2sh...@qq.com wrote: why logging in pypy not need acquire lock? left from pypy whle right from cpython PyPy's stdlib is from CPython 2.7.3, where it doesn't acquire a lock either. It seems it was some bug that was discovered and

Re: [pypy-dev] Interested in GSoC 2014

2013-12-24 Thread Armin Rigo
Hi Prasad, On Tue, Dec 24, 2013 at 7:41 AM, Prasad Joshi prasadjoshi...@gmail.com wrote: After going through GSoC 2013 page (https://wiki.python.org/moin/SummerOfCode/2013), I think I would be interested in Core Python or PyPy. Please let me know how should I start. PyPy is most active on

Re: [pypy-dev] Haswell System

2014-01-04 Thread Armin Rigo
Hi all, (sent for the pypy-dev mailing list) A quick status update about STM. As I've said on IRC, I am *again* looking at a new approach. This would change the core of STM, but lets us keep most of the work we did on top of it, i.e. inside PyPy and PyPy's JIT. The pre-prototypes (called c5

Re: [pypy-dev] ctypes create_string_buffer

2014-01-10 Thread Armin Rigo
Hi, On Fri, Jan 10, 2014 at 2:52 PM, Kenny Lasse Hoff Levinsen kennylevin...@gmail.com wrote: On 09/01/2014, at 14.30, HY lightdarkad...@163.com wrote: import ctypes as C s1= 0* 1024* 1024* 10 # mem engross add 10M bytes b1= C.create_string_buffer(s1 ) # CPU 1 core 100% and mem engross add

Re: [pypy-dev] ctypes create_string_buffer

2014-01-12 Thread Armin Rigo
Hi, On Sun, Jan 12, 2014 at 6:28 AM, HY lightdarkad...@163.com wrote: I test 2f0d7dced731 memory isn't large engross. but at the AMD 5000+ CPU, 5 secs CPU 100%. I think this has a BUG. :) Yes :-) You can see why it's slow by following the logic in pure Python in lib_pypy/_ctypes/, maybe by

Re: [pypy-dev] ctypes create_string_buffer

2014-01-13 Thread Armin Rigo
Hi HY, On Mon, Jan 13, 2014 at 2:55 AM, HY lightdarkad...@163.com wrote: thanks you reply my message. I think the string is pure struct, mybe should special process; want a little of change as soon as possible enablement. I have a little think of a way, whether add shareptr class in ctypes

[pypy-dev] pypyjit/test_pypy_c

2014-01-21 Thread Armin Rigo
Hi all, There are failures in pypyjit/test_pypy_c/test_string.py that shows that the JIT gets much worse code in some cases. This is probably related to the refactor-str-types branch merge (at least the dates match). I found and fixed one issue, which was that some code in stringmethods.py has

[pypy-dev] STM minor collections

2014-01-22 Thread Armin Rigo
Hi Remi, I thought about another possible way to handle minor collections in stm-c7. If we synchronize the threads to do minor collections, then we no longer need to force minor collections after each transaction. This is possible if we use a single coordinated nursery instead of one per thread.

Re: [pypy-dev] PyPy 2 unicode class

2014-01-22 Thread Armin Rigo
Hi Johan, On Wed, Jan 22, 2014 at 8:01 AM, Johan Råde johan.r...@gmail.com wrote: (I hope this makes more sense than my ramblings on IRC last night.) All versions you gave make sense as far as I'm concerned :-) But this last one is the clearest indeed. It seems that Python 3 went that way

Re: [pypy-dev] PyPy 2 unicode class

2014-01-23 Thread Armin Rigo
Hi Oscar, Thanks for explaining the caching in detail :-) On Thu, Jan 23, 2014 at 2:27 PM, Oscar Benjamin oscar.j.benja...@gmail.com wrote: big saving. If the string comes from anything other than utf-8 the indexing cache can be built while decoding (and reencoding as utf-8 under the hood).

Re: [pypy-dev] pypyjit/test_pypy_c

2014-01-23 Thread Armin Rigo
Hi Manuel, On Tue, Jan 21, 2014 at 1:50 PM, Manuel Jacob m...@manueljacob.de wrote: So we have to solve this in a non-technical way. Everyone should feel responsible for tests that fail and check whether he broke that test by accident. If not, he should feel free to blame others on IRC or the

Re: [pypy-dev] Questions on stdlib-2.7.5 failures

2014-01-23 Thread Armin Rigo
Hi Christian, On Fri, Jan 24, 2014 at 3:40 AM, Christian Hudon chr...@pianocktail.org wrote: First, I kicked the buildbots yesterday, and there are a *lot* of errors due to tests not being able to import the MAXREPEAT constant from the _sre module. But it seems to me that it is defined in

Re: [pypy-dev] Questions on stdlib-2.7.5 failures

2014-01-24 Thread Armin Rigo
Hi Christian, On Fri, Jan 24, 2014 at 8:54 AM, Armin Rigo ar...@tunes.org wrote: pypy/module/_sre/__init__.py... Am I missing something? Are the errors due to a build problem or something else? This is merely a detail for a deeper an issue. CPython's re format changed between 2.7.3

Re: [pypy-dev] PyPy 2 unicode class

2014-01-24 Thread Armin Rigo
Hi all, Thanks everybody for your comments on this topic. Our initial motivation for doing that is to simplify RPython by getting rid of the RPython unicode type. I think that the outcome of these mails is that there is no single obvious answer as to whether the change would benefit or hurt

Re: [pypy-dev] cppyy and callbacks

2014-01-24 Thread Armin Rigo
Hi, On Thu, Jan 23, 2014 at 10:36 PM, wlavrij...@lbl.gov wrote: I was considering the possibility of taking an index or id() of the object and just casting it into void* form, and then converting it back and using it to look up objects in a list/dict somewhere.. Alex Pyattaev did this (is

Re: [pypy-dev] Validate SSL/TLS

2014-01-24 Thread Armin Rigo
Hi, On Thu, Jan 23, 2014 at 5:28 PM, Maciej Fijalkowski fij...@gmail.com wrote: Since I have absolutely no idea what you're talking about, let's start with: Same for me. Also, using another SSL library like PyOpenSSL is a good idea anyway --- on both CPython and PyPy. If I had a choice I'd

Re: [pypy-dev] PyD and PyPy [was Boost.Python and PyPy -- status?]

2014-01-24 Thread Armin Rigo
Hi Russel, On Sun, Jan 19, 2014 at 6:28 PM, Russel Winder rus...@winder.org.uk wrote: I am delving into PyD just now to get it working with CPython 3 as well as CPython 2. Can you point me towards the best way of trying to make this also work with PyPy and PyPy3? Sorry, you're not getting

Re: [pypy-dev] PyD and PyPy [was Boost.Python and PyPy -- status?]

2014-01-24 Thread Armin Rigo
Hi Piotr, On Fri, Jan 24, 2014 at 3:11 PM, Piotr Skamruk piotr.skam...@gmail.com wrote: Probably http://pyd.dsource.org/ is this about what You are asking. It's wrapper of python api for http://dlang.org/ I actually guessed that much from googling. What I'm asking is the kind of C++ code that

Re: [pypy-dev] cppyy and callbacks

2014-01-24 Thread Armin Rigo
Hi Wim, On Fri, Jan 24, 2014 at 6:56 PM, wlavrij...@lbl.gov wrote: By default, there is memory tracking, auto-casting, overloading, template instantiation (with cling; partially with cint), etc. And if that is not desired, a Python layer can be written to do things differently. E.g. to

Re: [pypy-dev] Validate SSL/TLS

2014-01-27 Thread Armin Rigo
Hi Donald, On 27 January 2014 00:07, Donald Stufft don...@stufft.io wrote: The CPython developers have thus far decided that back porting hostname verification to CPython 2.x is not worth breaking the policy of no new features in 2.7. I disagree with this conclusion fwiw. You're

Re: [pypy-dev] Help with memory usage

2014-02-03 Thread Armin Rigo
Hi Matheus, On 3 February 2014 20:07, Matheus Salvia matheus2...@gmail.com wrote: Last but not least, is there a way to change pypy from using a GC to using refcount like CPython? No, PyPy cannot use refcounting. That was the information you needed? This is still too vague to know why

[pypy-dev] Fwd: This old address is now deprecated

2014-02-04 Thread Armin Rigo
Hi all, The address pypy-...@codespeak.net has been deprecated and cannot be used any more. Armin ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] PyPy 2.2.1 segfault

2014-02-08 Thread Armin Rigo
Hi Vasily, On 8 February 2014 07:13, Vasily Evseenko svp...@gmail.com wrote: I've attached program that segfaults pypy. No external modules used and its works under CPython. Thanks! Fixed in 3a0ef8f31265. The problem was caused by a list of floats that contains nan values (the Z variable in

Re: [pypy-dev] crash with high number of threads in libpypy-c

2014-02-08 Thread Armin Rigo
Hi Roberto, On 8 February 2014 14:14, Roberto De Ioris robe...@unbit.it wrote: KeyError object at 0x7f60ee6d1688 RPython traceback: File rpython_memory_gctransform_shadowstack.c, line 425, in switch_shadow_stacks File rpython_rtyper_lltypesystem_rdict.c, line 8053, in

Re: [pypy-dev] PyPy Intermediate C Files

2014-02-18 Thread Armin Rigo
Hi Kirk, On 17 February 2014 21:33, Kirk Liberty kirk.libe...@gmail.com wrote: It's it correct to assume that the generated C code will be identical regardless of the computer PyPy it's translated on? This allowing for translation on one machine, and compilation on another? No, it's wrong:

<    1   2   3   4   5   6   7   8   9   10   >