Armin Rigo | 25 Jul 10:24 2014

libdynd

Hi,

Feedback, from Travis Oliphant at EuroPython: libdynd
(https://github.com/ContinuumIO/libdynd) might be the longer-term
future of NumPy, and it looks like it would be much more natural to
bind to it from PyPy (via cffi).  Worth a look I believe.  It
certainly looks to me like such a cffi binding would be much more
user-friendly than numpypy, in the sense that missing functionality
would be far easier to contribute back.

A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev <at> python.org
https://mail.python.org/mailman/listinfo/pypy-dev
Antonio Cuni | 24 Jul 19:26 2014
Picon

wrong user mapped in the issue tracker

Hi,

I was looking at this issue:

and I noticed that pypy's user "amaury" has been mapped to bitbucket's user "amaury", which unfortunately it's another physical person.

I don't know much about the migration of the issue tracker, so I don't even know if it's possible and how easy/hard is to fix it, just wanted to point out.

ciao,
Anto
_______________________________________________
pypy-dev mailing list
pypy-dev <at> python.org
https://mail.python.org/mailman/listinfo/pypy-dev
Armin Rigo | 23 Jul 18:14 2014

For py3k...

Hi all,

A module mentioned today in a EuroPython lightning talk: "lzma"
reimplemented in cffi (compatible with the one from Python 3.3's
stdlib).

    https://pypi.python.org/pypi/lzmaffi

A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev <at> python.org
https://mail.python.org/mailman/listinfo/pypy-dev
Dimitri Vorona | 17 Jul 15:06 2014

Patchpoints in LLVM

Hi,

just wanted to link this discussion http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-October/066573.html and this piece of docs http://llvm.org/docs/StackMaps.html. As far as I understand, the lack of patchpoints (i.e. a way to patch dynamically generated code) was the major burden on the way to use LLVM for code generation for PyPy. 

The functionality was implemented as a part of FTL, LLVM-based JavaScript compiler (http://blog.llvm.org/2014/07/ftl-webkits-llvm-based-jit.html)

Regards,
Dimitri.
_______________________________________________
pypy-dev mailing list
pypy-dev <at> python.org
https://mail.python.org/mailman/listinfo/pypy-dev
cclauss | 16 Jul 14:29 2014

Re: Support for current versions of Pypy on Heroku and Cloud Foundry platforms?

Hi Folks,

    The plan is to support Pypy on Heroku, but we need to have full libffi support before we move forward. As it stands, the following formulas produce a broken version of PyPy and Pypy3.  Does anyone on this list have the required skills to suggest a working solution?


On Jun 18, 2014, at 6:06, Alex Gaynor <alex.gaynor <at> gmail.com> wrote:

Hi Chris,

Are you looking for an Infrastructure as a Service (something like AWS, or Rackspace Cloud) or a Platform as a Service (Heroku)?

Typically IaaS providers just give you a bare linux box, where you can of course install your own PyPy; as you've seen it looks like the PyPy on Heroku is out of date. I think the easiest move is probably to look into writing a custom build pack for Heroku, if that's what you're interested in.

Alex

PS: Disclaimer, I work at Rackspace.


On Tue, Jun 17, 2014 at 6:19 PM, cclauss <cclauss <at> me.com> wrote:
Hi Folks,

    Currently Heroku only has Pypy 1.9 on an unsupported, experimental basis.

https://devcenter.heroku.com/articles/python-runtimes#supported-python-runtimes
and https://github.com/heroku/heroku-buildpack-python/issues/139

    Other Cloud Foundry-based IaaS offering (IBM BlueMix, etc.) seem to use similar buildpacks.
https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/Buildpacks

    Do any of you know of an Infrastructure as a Service provider that supports current versions of Pypy?

Thanks for any pointers that you can provide.  Chris Clauss
_______________________________________________
pypy-dev mailing list
pypy-dev <at> python.org
https://mail.python.org/mailman/listinfo/pypy-dev



--
"I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084
_______________________________________________
pypy-dev mailing list
pypy-dev <at> python.org
https://mail.python.org/mailman/listinfo/pypy-dev
William ML Leslie | 16 Jul 00:17 2014
Picon

Fwd: Access the name of variable that is being assigned

Ack, resend because pypy-dev does not set reply-to ...

On 16 July 2014 03:55, anatoly techtonik <techtonik <at> gmail.com> wrote:
> On Tue, Jul 15, 2014 at 12:50 PM, Yichao Yu <yyc1992 <at> gmail.com> wrote:
>> On Tue, Jul 15, 2014 at 5:05 PM, anatoly techtonik <techtonik <at> gmail.com> wrote:
>> I guess it would be better if you can describe what you really want to do.
>
> I described. Or you need use case or user story? I think I want to link
> object instances to variable names without to print those names
> (if possible) in __repr__ and debug messages to save time on
> troubleshooting.

The most common practice is to pass some kind of debugging info to the
constructor, otherwise, setting debug info on the instance is ok, too.

my_object = SomeClass()
my_object.debug_info = 'This is the typical case'

You can also use the inspect module to grab the source line of the caller:

http://codepad.org/YvStcEMv

--

-- 
William Leslie

Notice:
Likely much of this email is, by the nature of copyright, covered
under copyright law.  You absolutely MAY reproduce any part of it in
accordance with the copyright law of the nation you are reading this
in.  Any attempt to DENY YOU THOSE RIGHTS would be illegal without
prior contractual agreement.
anatoly techtonik | 15 Jul 11:05 2014
Picon

Access the name of variable that is being assigned

Hi,

Is it possible at all to define a class in Python that
can read name of variable it is assigned to on init?

  >>> MyObject = SomeClass()
  >>> print(MyObject)
  'MyObject'

For this to work, SomeClass __init__ needs to know
what variable name is currently waiting to be
assigned. But at the time __init__ is executed,
MyObject is not entered global or local space yet.

I know that this is possible to do on AST level, but
AST is inaccessible when program is running, so
what is the corresponding structure to track that?
(links to source are appreciated)

1. Is it possible to do this in CPython and PyPy?
2. Is it possible to do this in generic way?
3. Is there any stack of assignments?
3.1. Is this stack accessible?

Thanks.
--

-- 
anatoly t.
John Smith | 8 Jul 19:27 2014
Picon

Getting involved

As a less objectionable alternative, what about a package which when passed code (string/code object/not sure) returns a newly compiled object with tail call optimization?
 
J
_______________________________________________
pypy-dev mailing list
pypy-dev <at> python.org
https://mail.python.org/mailman/listinfo/pypy-dev
Yichao Yu | 5 Jul 11:34 2014
Picon

Unable to build pypy with '--shared' option

Hi,

I have got the following error (see below, with a lot of other
compiler warnings) when trying to compile pypy with the '--shared'
option during the last stop (compile_c).

I've seen similar issues without --shared before and it was solved by
setting the CFLAGS to -O1 but that doesn't seem to help this time.

Is it possible to fix this?

Yichao Yu

Compiler version: gcc 4.9.0 (gcc-multilibs from ArchLinux official repo).

[translation:ERROR]     Traceback (most recent call last):
[translation:ERROR]       File "app_main.py", line 75, in run_toplevel
[translation:ERROR]       File
"/home/yuyichao/projects/mlinux/pkg/all/pypy-hg/src/pypy/rpython/translator/c/gcc/trackgcroot.py",
line 2086, in <module>
[translation:ERROR]         tracker.process(f, g, filename=fn)
[translation:ERROR]       File
"/home/yuyichao/projects/mlinux/pkg/all/pypy-hg/src/pypy/rpython/translator/c/gcc/trackgcroot.py",
line 1979, in process
[translation:ERROR]         tracker = parser.process_function(lines, filename)
[translation:ERROR]       File
"/home/yuyichao/projects/mlinux/pkg/all/pypy-hg/src/pypy/rpython/translator/c/gcc/trackgcroot.py",
line 1494, in process_function
[translation:ERROR]         table = tracker.computegcmaptable(self.verbose)
[translation:ERROR]       File
"/home/yuyichao/projects/mlinux/pkg/all/pypy-hg/src/pypy/rpython/translator/c/gcc/trackgcroot.py",
line 53, in computegcmaptable
[translation:ERROR]         self.parse_instructions()
[translation:ERROR]       File
"/home/yuyichao/projects/mlinux/pkg/all/pypy-hg/src/pypy/rpython/translator/c/gcc/trackgcroot.py",
line 215, in parse_instructions
[translation:ERROR]         self.find_missing_visit_method(opname)
[translation:ERROR]       File
"/home/yuyichao/projects/mlinux/pkg/all/pypy-hg/src/pypy/rpython/translator/c/gcc/trackgcroot.py",
line 245, in find_missing_visit_method
[translation:ERROR]         raise UnrecognizedOperation(opname)
[translation:ERROR]     UnrecognizedOperation: rex64
[translation:ERROR]     make: *** [implement_1.gcmap] Error 1
[translation:ERROR]     """)
Benedek Zoltan | 4 Jul 17:01 2014

compiling with 4G ram

Hi,

Recently I tried to compile Pypy on a Linux x86_64 machine with only 4G RAM, according to the instructions:


I tried by CPython2.6 by the command:

PYPY_GC_MAX_DELTA=200MB python2.6 --jit loop_longevity=300 ../../rpython/bin/rpython -Ojit targetpypystandalone

I had to remove the --jit option and the compiling process uses all the ram.

Is there a way to reduce the used memory amount, or I have no chance to try Pypy on this machine?

Thanks
Zoltan

_______________________________________________
pypy-dev mailing list
pypy-dev <at> python.org
https://mail.python.org/mailman/listinfo/pypy-dev
Yichao Yu | 4 Jul 02:46 2014
Picon

How to get transparent proxy working.

Hi,

I found the transparent proxy in pypy
 recently. However, the example from the document doesn't seem to work
here[1]. Many other builtin types (including tuple, dict, int) and the
types that inherit from them does not work either. `object`, however,
can be wrapped but doesn't seem to behave correctly either. (add
doesn't work)

I am using the latest version (as of a few hours ago at least) from
bitbucket (28a1ebabc3e4) and I have recompiled it with
--objspace-std-withtproxy just to make sure it is enabled.

Is it broken or am I missing anything?

Yichao Yu

[1] http://nbviewer.ipython.org/gist/yuyichao/6e4ca22b9aa52bd02661

Gmane