On Fri, Sep 26, 2014, at 12:22, Timothy Baldridge wrote:
> I have a JIT I've been working on for a few days now, and initial results
> were awesome, the JIT log showed just a few assembly ops to execute each
> iteration of a simple "count to 1" loop. However, then I changed
> something and the
On Sun, Jun 8, 2014, at 22:18, wpf wrote:
> Hi All
>
> I am trying to use the Pypy under Ubuntu 12.04, and pypy version as
> below
>
> ~$ pypy --version
> Python 2.7.6 (2.3+dfsg-1~ppa0, May 20 2014, 09:11:18)
> [PyPy 2.3.0 with GCC 4.6.3]
>
> -$ python --version
> Python 2.7.3
>
> and when
On Thu, Apr 17, 2014, at 15:42, Ryan Gonzalez wrote:
> I’m writing a scripting language using RPython. I have a base class for
> all
> my objects. Now, I have an exception object. The exception object needs
> to
> derive from my base class in order for me to use polymorphism inside the
> interprete
On Tue, Apr 15, 2014, at 21:31, Bogdan Opanchuk wrote:
> Hello,
>
> I would like to use the RPython toolchain in my project. The problem
> is, RPython is currently hidden inside PyPy and therefore not readily
> available. I found this thread
> https://mail.python.org/pipermail/pypy-dev/2012-Octobe
On Wed, Mar 26, 2014, at 21:51, Kevin Modzelewski wrote:
> On Wed, Mar 26, 2014 at 9:32 PM, Benjamin Peterson
> wrote:
>
> >
> >
> > On Wed, Mar 26, 2014, at 21:17, Kevin Modzelewski wrote:
> > > On Wed, Mar 26, 2014 at 1:52 PM, Benjamin Peterson
> >
On Wed, Mar 26, 2014, at 21:17, Kevin Modzelewski wrote:
> On Wed, Mar 26, 2014 at 1:52 PM, Benjamin Peterson
> wrote:
>
> >
> > There are several reasons. Two of the most important are
> > 1) PyPy's internal representation of objects is different from
> >
On Wed, Mar 26, 2014, at 13:47, Kevin Modzelewski wrote:
> Hi all, thanks for the responses, but I guess I should have been more
> explicit -- I'm curious about *why* PyPy is slow on existing extension
> modules and why people are being steered away from them. I completely
> support the push to mo
On Thu, Jan 23, 2014, at 06:40 PM, Christian Hudon wrote:
> Hello,
>
> I'm working again on the stdlib-2.7.5 branch of Pypy. I have a couple
> questions, but since nobody seems to be around on irc right now, I'm
> asking them here. :-)
Cool. Did you see lib-python/stdlib-upgrade.txt?
>
> Firs
Presumably, you can just use get/setenv()
2013/10/31 Ryan Gonzalez :
> I am writing a tool in RPython that needs to access environment variables.
> Now, all has been going well, but I noticed something interesting. The
> RPython translator sees os.environ as constant. But, will it still be
> const
2012/12/20 Jonathan Slenders :
> Personally, I think this is a very clean solution for Twisted's
> @defer.inlineCalbacks, Tornado's @gen.engine, and similar functions in other
> async frameworks.
>
> Just sharing this information, but I'd also like to know whether Python code
> developers would con
2012/12/6 Leonardo Santagada :
> On Thu, Dec 6, 2012 at 8:14 AM, Maciej Fijalkowski wrote:
>> * xml literals are unsupported
>
>
> They are only supported in firefox and flash so I don't think too many
> people use it, but then if needed you can try
> https://github.com/laverdet/js-xml-literal
Al
2012/9/18 haael :
> OK, so where could I start from? Is there for example some list of flow
> graphs opcodes?
You can use the graphviewer described in the documentation.
> In the current approach in a binary there is a compiled machine code, the
> flow graph representation and the JIT compiler. I
2012/9/18 haael :
>> Most of the JIT code is not C-backend specific. Backends are along the
>> line of x86, arm, PPC. If you want to create a say LLVM backend, you
>> would reuse most of the JIT code.
>
>
> So I don't understand anything again. Where exactly JIT is coded? What is
> the difference b
2012/9/16 haael :
>
> OK, I read almost all the documentation I found on the web page. But I still
> don't understand few things.
>
> There are 3 layers in the whole picture. The user application written in
> Python, the Python interpreter written in RPython and the RPython
> interpreter itself.
>
2012/9/6 Timothy Baldridge :
>
> Nice, but that completely missed the point of my question. I know this
> wouldn't be a problem in this exact case. The question is: when is the GC
> free to free data passed into a function's arguments. Will that function
> hold on to all data passed in through argu
2012/9/6 Timothy Baldridge :
> Let's imagine that I have some code like the following in RPython:
>
>
> def wrapper_func(arg1, arg2):
> return inner_func(arg2)
>
> def inner_func(x):
>for y in range(x):
> # do something here
> pass
>return -1
>
> bigint = 100
>
> wrapper
2012/7/30 Marcus Smith :
> Hello:
>
> I'm working on trying to get the pip test suite passing for pypy.
> I need to figure out the mechanism that turns on/off the use of
> __pycache__ folders.
> locally in my pypy v1.9 install, I only see normal *.pyc files for installed
> distributions.
> In Trav
Hello pypy-dev,
As some of you may know, this past year I wrote a chapter about PyPy
for Architecture of Open Source Applications Volume 2. It has brought
to my attention that my communication with the PyPy community about it
was poor. Since it deeply involved the PyPy project, I should have
been m
2012/4/28 Timo Paulssen :
> Hello there,
>
> I was writing a few test cases for numpypy to make sure it behaves like
> numpy does when confronted with objects that have either an __int__, an
> __index__ or both (rule of thumb: index is prefered, but int is accepted in
> absence of index).
>
> Now,
2012/4/11 Hong Minhee :
> I reported https://bugs.pypy.org/issue1126 which shows that __exit__
> is not called in certain cases when I think it should be. The code to
> reproduce the bug is there. The code works on CPython.
>
> It was closed as invalid saying this is a GC issue, but I don't think
2012/3/27 Maciej Fijalkowski :
> There is no reason not to.
Is it useful for something?
--
Regards,
Benjamin
___
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev
2012/3/18 Nathan Alday :\
> It's not clear to me what the issue is. Is there another type that has a
> replace method that is confusing the type inference system?
It appears the annotator sees someone passing None into tokenize.
--
Regards,
Benjamin
_
Try running it from the top of the pypy source tree.
2012/3/15 Alexander Sedov :
> 2012/3/15 Ronny Pfannschmidt :
>> Hello Alexander,
>>
>>
>> for testing,
>> please use the shipped pytest by using pytest.py
> Fails for me with multiple:
> E AttributeError: TestParsetring instance has no att
2012/3/12 Peter Cock :
> Given http://doc.pypy.org/en/latest/extending.html describes this
> mixed module approach as the "most advanced and powerful way"
> of calling C code, does that mean in this particular case there are
> no low handing fruit to speed up using zlib in PyPy?
Do you know the sl
2012/3/10 Bent Phillipsen :
> These results are really impressive. With pypy numerical analysis can be
> performed efficiently in pure python using lists as arrays (i.e. without
> using numpy).
That's great to hear!
>
> By the way: I have observed, that the assert statement is not fully
> imple
2012/2/6 Alexander Sedov :
> Wasted two hours trying to get into IRC channel and post this. Please
> someone, commit this minor, useless patch.
> http://paste.pocoo.org/show/546747/
If it's minor and useless, why should it go in?
--
Regards,
Benjamin
___
2012/1/30 Serhat Sevki Dincer :
> Hi,
> Suppose you have a function to validate local/international phone numbers
> (one space between number groups, no space at start/end, no zero at start)
> like:
>
> def validatePhone(v):
> if not (9 < len(v) < 19 and '0' < v[0]): # recall ' ' < '0'
>
2012/1/23 Andrew Francis :
> ll_thread.start_new_thread(T1)
> ll_thread.start_new_thread(T2)
Try this:
ll_thread.ll_start_new_thread(T1)
ll_thread.ll_start_new_thread(T2)
--
Regards,
Benjamin
___
pypy-dev mailing list
pypy-dev@pyth
2011/12/13 Timothy Baldridge :
> For some time now, I've been working on my Clojure/pypy
> implementation. However, I'm starting to wish I had a few Clojure
> facilities while writing my rpython clojure interpreter. Basically I
> would love to have macros, protocols, symbol resolution, and a ton of
2011/12/11 Bengt Richter :
> Just musing -- if pypy can discover pure functions (or functions with simple
> static
> global side effects) and the jit transforms them into machine code in a
> runtime memory-resident
> image somewhere, could this image be transformed with some .so boilerplate
> and m
2011/12/9 Rinu Boney :
> Can almost any language be implemented in RPython and be faster ?
> ( like can we implement a langugae like java ? )
Presumably, though I think you'd have to work to beat HotSpot.
--
Regards,
Benjamin
___
pypy-dev mailing list
2011/12/9 Alexander Golec :
> Hey all,
>
> When the RPython receives the code objects, are all the objects that the
> interpreter would push and pop on the stack already present? Or does the
> abstract interpreter handle creating those objects as well?
>
> In other words, is interpretation abstra
2011/12/9 Alexander Golec :
> Also, if you take a look at gateway.py, you can see that type is being
> called. Does the interpreter treat class definitions and calls to type
> differently?
>
> https://bitbucket.org/pypy/pypy/src/94737f156c30/pypy/interpreter/gateway.py
That happens before the flow
2011/12/9 Alexander Golec :
> So at no point reachable from the entry_point (or is it run?) of the program
> can you create classes and functions?
All the classes that there will ever by instances of in the RPython
program are known at translation.
--
Regards,
Benjamin
___
2011/12/9 Alexander Golec :
> Hey all,
>
> Sorry to keep asking questions on the mailing list, but I've been doing my
> semester research project on PyPy, and my deadline is beginning to loom...
>
> I have a question concerning what I think is a conflict between the RPython
> coding guide and the 2
2011/12/9 Alexander Golec :
> I think it's coming together now, then. So then the code for object spaces
> are shared between PyPy and the RPython compiler, as is the code for abstract
> interpretation? The thing that triggered this was me wondering what does the
> interpretation of the bytecode
2011/12/9 Alexander Golec :
> So the RPython compiler reuses interpreter code from PyPy to perform bytecode
> interpretation on the objects that the were given it by the standard CPython
> dis module? Namely I'm thinking of the bits that handle branching code, where
> the interpreter must effect
2011/12/9 Alexander Golec :
> I guess that's bugging me is where does the flow object space live? It is in
> RPython or the PyPy interpreter?
The flow space is not RPython. It's in pypy/objspace/flow
> Also, does RPython exist as a standalone thing, i.e. can I say 'rpython
> something.py' and g
2011/12/9 Alexander Golec :
> Hi Armin,
>
> Thanks for the answer, but I'm having a hard time wrapping my head around
> this. I'm reading about object spaces, and I keep wondering how do the object
> spaces find their way into the CPython interpreter. In other words, since
> there is an element
2011/12/8 Rinu Boney :
> [ forgive me if it is a dumb question ]
> is there any article or a tutorial that shows how to use the rpython toolkit
> for a beginner ( just to hack around and learn stuff ) ?
> what is the relation between rpythonic
> ( http://code.google.com/p/rpythonic/ ) and rpython ?
2011/12/5 Alexander Golec :
> Hey all,
>
> I'm preparing a presentation for Alfred Aho at Columbia, and I'd like to ask
> how are namespaces translated during the translation phase. Are they
> implemented dynamically, or are they actually compiled down to C?
I assume you mean modules? They're al
2011/12/4 Valentin Perrelle :
> Hi,
>
> Last months i played a bit with syntax extension in order to develop a
> network programming paradigm inspired by the Unreal Script language. I did
> that with LUA and the help of metalua which use a lua lua compiler. I was
> wondering if i could do the same
2011/12/3 Alexander Golec :
> Hi all,
>
> I'm a student at Columbia University, and I'm taking a graduate course with
> Alfred Aho, the author of the dragon book, on advanced compilers techniques.
> I've been researching the pypy project in general, and rpython in particular,
> and I'd like to a
2011/11/25 Serhat Sevki Dincer :
> I wrote a tiny grep with multi-line match support, and compared its
> speed under pypy 1.7 with grep and CPython 2.7.1 (on ubuntu 11.04
> laptop).
> No special algorithm/implementation is employed; it is bare re module.
>
> input: Plone 4.1.2 eggs directory, size
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
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
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
2011/10/18 holger krekel :
> On Tue, Oct 18, 2011 at 09:21 -0400, Benjamin Peterson wrote:
>> 2011/10/18 Carl Friedrich Bolz :
>> > Hi all,
>> >
>> > Now that we are getting in some money for our Py3k [1] and Numpy [2]
>> > funding proposals
2011/10/18 Carl Friedrich Bolz :
> Hi all,
>
> Now that we are getting in some money for our Py3k [1] and Numpy [2]
> funding proposals (thank you very very much, for everybody who
> contributed!) it is time to think more concretely about the actual
> execution.
>
> Therefore I want to ask for PyPy
2011/10/6 Benjamin Peterson :
> 2011/10/6 Ram Rachum :
>>
>> On Thu, Oct 6, 2011 at 3:16 PM, Benjamin Peterson
>> wrote:
>>>
>>> 2011/10/6 Ram Rachum :
>>> > Why is PyPy's executable called `pypy-c.exe` on Windows? I just renamed
>>&g
2011/10/6 Ram Rachum :
>
> On Thu, Oct 6, 2011 at 3:16 PM, Benjamin Peterson
> wrote:
>>
>> 2011/10/6 Ram Rachum :
>> > Why is PyPy's executable called `pypy-c.exe` on Windows? I just renamed
>> > mine
>> > to `pypy.exe`, is that
2011/10/6 Ram Rachum :
> Why is PyPy's executable called `pypy-c.exe` on Windows? I just renamed mine
> to `pypy.exe`, is that okay?
Because it's generated by the "C" backend.
--
Regards,
Benjamin
___
pypy-dev mailing list
pypy-dev@python.org
http://
2011/9/23 Steven D'Aprano :
>
> So the question is: would it be a burden for PyPy to make any guarantees
> about the stability of bytecode?
I would say not without great benefit. If you're doing something that
requires changing bytecode, the obvious answer is to add some syntax
instead.
--
Reg
2011/9/23 Steven D'Aprano :
> Hi guys,
>
> Over on the python-ideas mailing list, there is a long thread about the
> default argument hack in functions, used for micro-optimizations,
> early-binding, and monkey-patching. Various alternatives are being argued
> about. One proposal put forward involv
2011/9/20 matti picus :
> I would really love to have 2 dimensional matrices in micronumpy, and am
> willing to donate some hours of coding. There seems to be a number of
> "heads" on the mercurial tree that use numpy in their keyword. Can anyone
> give me pointer as to what branch (maybe just tip?
This would probably be easier if you showed us the code.
2011/9/17 Boris :
> Hi,
>
> I've been trying out writing my own interpreter using the PyPy framework
> recently, as a bit of fun. I've been trying to get the JIT to optimize a
> trivial loop down to the minimal amount of operations. With jud
2011/9/12 Yury Selivanov :
> Hello Antonio,
>
> And what are the rough time-estimates?
This is partial a function of how fast the funding comes in. :)
--
Regards,
Benjamin
___
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/li
2011/8/16 Yury Selivanov :
> Re option #1, just trying to start a discussion:
>
> I know it's a hard topic, but why not to adapt python 3? Python 3 is the
> future, everybody understands and accepts that. Pypy doesn't have
> substantially good support of c-extenstions, so, let's say, numpy has
2011/8/16 Yury Selivanov :
> Is it possible for pypy core developers to create a high-level roadmap with
> what needs to be done and where? Should python3 be another translation
> target? Will it be required to touch rpython spec? What data structures
> need to be introduced? etc. I don't t
2011/8/16 Timur Tkachev :
> 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 some light on this topic. Last poll in your blog regarding what's
> holding off the pypy usage & a
https://bitbucket.org/alex_gaynor/pypy-postgresql/overview
2011/7/6 Christian Jensen :
> What is the best way to work with Postgres via Django? Is it still
> slow or have there been recent developments?
>
> Sent from my iPhone
> ___
> pypy-dev mailing li
2011/6/22 Christian Tismer :
> Hi friends,
>
> the subject line says it all...
>
> I'm in the progress of updating stackless to use mercurial on
> python.org and talked to Martin v. Loewis who pointed out
> the restrictions of Bitbucket.
> Besides the impression that Bitbucket is pretty slow, it is
2011/6/14 Amaury Forgeot d'Arc :
> 2011/6/14 Benjamin Peterson :
>>> In examining this, I noted the translation option -- shared
>>> (http://codespeak.net/pypy/dist/pypy/doc/config/translation.shared.html).
>>> Shame on me for not seeing this earlier, but what
2011/6/14 VanL :
> Thanks for the reply.
>
> On 6/14/2011 10:49 AM, Benjamin Peterson wrote:
>>
>> 2011/6/14 VanL:
>>>
>>> Is it possible to create an embeddable libpypy.so/dll? Are there any
>>> visible
>>> entry points into code created
2011/6/14 VanL :
> Is it possible to create an embeddable libpypy.so/dll? Are there any visible
> entry points into code created by the pypy toolchain?
No.
--
Regards,
Benjamin
___
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailm
2011/6/6 Da_Blitz :
> Hi
>
> pypy 1.5 does not display a warning when using the os.tempnam and
> os.tmpnam functions. use of these functions is not recommended as they
> can cause security issues and hence python issues a RuntimeWarning
>
>
> below is a patch to app_posix.py to make it act more lik
2011/6/2 Timothy Baldridge :
> What does error mean, when running the translator against my rpython code?
>
> [translation:ERROR] AttributeError': 'FrozenDesc' object has no
> attribute 'rowkey'
>
> Can anyone give me some insight?
>
> Thanks.
>
> Timothy
>
>
> The code:
>
> class Runtime(Obj):
>
2011/5/25 Alex Gaynor :
> I have a question about SmallTuples. Why do we have multiple classes,
> rather than doing the "hack" of mallocing a single block of memory for the
> entirety of the object, since it is immutable and we can know the needed
> space up front, CPython uses this "hack" for str
2011/5/20 Gabriel Jacobo :
> On Vie 20 May 2011 16:47:54 Benjamin Peterson escribió:
>> 2011/5/20 Gabriel Jacobo :
>> > On Vie 20 May 2011 13:44:15 Benjamin Peterson escribió:
>> >> 2011/5/20 Gabriel Jacobo :
>> >> > On Jue 19 May 2011 20:59:49 B
2011/5/20 Gabriel Jacobo :
> On Vie 20 May 2011 13:44:15 Benjamin Peterson escribió:
>> 2011/5/20 Gabriel Jacobo :
>> > On Jue 19 May 2011 20:59:49 Benjamin Peterson escribió:
>> >> 2011/5/19 Gabriel Jacobo :
>> >> > Hi All! I have a quick q
2011/5/20 Gabriel Jacobo :
> On Jue 19 May 2011 20:59:49 Benjamin Peterson escribió:
>> 2011/5/19 Gabriel Jacobo :
>> > Hi All! I have a quick question for the RPython gurus, are properties
>> > supported?
>>
>> No.
>
> Ok, thanks for the answer. How w
2011/5/19 Gabriel Jacobo :
> Hi All! I have a quick question for the RPython gurus, are properties
> supported?
No.
> I thought from reading pypy tests and some mentions in IRC logs that they
Tests are not RPython.
--
Regards,
Benjamin
___
pypy-dev
72 matches
Mail list logo