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

2011-05-13 Thread William ML Leslie
On 14 May 2011 06:27, Amaury Forgeot d'Arc wrote: > Also, there are probably other directions that we have not yet explored: > - implement another C API better suited to pypy > - a SWIG backend which emits ctypes code or similar > And probably others... Not to mention cppyy, which might be a good

Re: [pypy-dev] SmallTuples

2011-05-25 Thread William ML Leslie
On 26 May 2011 14:15, Alex Gaynor wrote: > Well, IMO the issue is you can end up with a ton of guard_class that are > more precise than you need, plus you have to manually specialize for each > length, whereas with the other approach you can just automatically apply it > to all tuples. With the c

Re: [pypy-dev] SmallTuples

2011-05-25 Thread William ML Leslie
On 26 May 2011 14:23, William ML Leslie wrote: > On 26 May 2011 14:15, Alex Gaynor wrote: >> Well, IMO the issue is you can end up with a ton of guard_class that are >> more precise than you need, plus you have to manually specialize for each >> length, whereas with the o

Re: [pypy-dev] SmallTuples

2011-05-26 Thread William ML Leslie
On 26 May 2011 16:00, Amaury Forgeot d'Arc wrote: > 2011/5/26 William ML Leslie : >> The python tuple is intended to be a heterogeneous data structure, as >> they are in RPython. The length of a tuple is conceptually part of the >> type, which means that tuple length w

Re: [pypy-dev] Object identity and dict strategies

2011-07-08 Thread William ML Leslie
On 8 July 2011 17:58, holger krekel wrote: > IOW, i think the issue here is that iterating over keys of a dict usually > gives the exact same ("is") objects in CPython whereas pypy trunk does not > provide that at least for ints. I couldn't find anything precise in the official documentation on t

Re: [pypy-dev] Object identity and dict strategies

2011-07-08 Thread William ML Leslie
On 8 July 2011 19:52, Armin Rigo wrote: > Hi William, Hi Armin, everybody, > On Fri, Jul 8, 2011 at 10:31 AM, William ML Leslie > wrote: >> On another note: what Alex talks about as being two different cases >> are just one with the small int optimisation - all references

Re: [pypy-dev] Object identity and dict strategies

2011-07-11 Thread William ML Leslie
On 9 July 2011 18:17, Armin Rigo wrote: > Hi, > > On Sat, Jul 9, 2011 at 5:20 AM, William ML Leslie > wrote: >> My point about small integers (...) > > I think that your point about small integers is broken (even assuming > that smallints are enabled by default,

Re: [pypy-dev] Object identity and dict strategies

2011-07-11 Thread William ML Leslie
On 11 July 2011 20:29, Bengt Richter wrote: > On 07/10/2011 09:13 PM Laura Creighton wrote: >> >> What do we want to happen when somebody -- say in a C extension -- takes >> the id of an object >> that is scheduled to be removed when the gc next runs? > > IMO taking the id should increment the obj

Re: [pypy-dev] Object identity and dict strategies

2011-07-11 Thread William ML Leslie
On 11 July 2011 23:21, Bengt Richter wrote: > On 07/11/2011 01:36 PM William ML Leslie wrote: >> >> On 11 July 2011 20:29, Bengt Richter  wrote: >>> >>> On 07/10/2011 09:13 PM Laura Creighton wrote: >>>> >>>> What do we want to happen when

Re: [pypy-dev] Object identity and dict strategies

2011-07-11 Thread William ML Leslie
On 12 July 2011 00:21, William ML Leslie wrote: > Referential equivalence, which is a slightly more complicated (yet > much better defined) idea says that x and y are equivalent when no > operation can tell the difference between the two objects. Ack, sorry. I meant Referential Tra

Re: [pypy-dev] djangobench performance

2011-09-01 Thread William ML Leslie
On 1 September 2011 15:29, Fenn Bailey wrote: > The results were a little surprising (and not in a good way): > http://pastie.org/2463906 ... > Any ideas as to why the performance drop-off would be so significant? N = 200 means most of the benchmarks probably won't even JIT, so that might be a st

Re: [pypy-dev] Realtime communication and webserver to use with pypy?

2011-09-29 Thread William ML Leslie
On 30 September 2011 13:39, John Anderson wrote: > In cpython I deploy using gevent or gunicorn for high performance/low memory > usage with the ability to be non-blocking for realtime communication using > socket.io. > If I want to move to using PyPy... what are my options for this type of > setu

Re: [pypy-dev] How to organize the py3k branch (was: [pypy-commit] pypy py3k: Remove print statement)

2011-10-13 Thread William ML Leslie
On 13 October 2011 19:55, Antonio Cuni wrote: > - support for py2 and py3 in the same branch, with minimal duplication of > code.  This would mean that e.g. in ast.py you would have tons of "if py2: > enable_print_stmt()", etc.  Personally, I think that the codebase would > become too cluttered.

Re: [pypy-dev] Maintaining an exhaustive list of supported and non-supported packages

2011-10-24 Thread William ML Leslie
On 24 October 2011 18:27, Jonathan Livni wrote: > Would it be possible to maintain a user-generated exhaustive list of > supported and non-supported packages? Not only would it be possible, it is currently done! https://bitbucket.org/pypy/compatibility/wiki/Home We should probably link here fro

Re: [pypy-dev] Slow sqlite user defined functions with pypy.

2011-11-16 Thread William ML Leslie
Ack. On 17 November 2011 12:23, William ML Leslie wrote: > On 17 November 2011 12:13, Elefterios Stamatogiannakis > wrote: >> Pypy seems to not jit at all when a (pypy) Python function is called from C. > > Calls to native functions must be residualised, as there is no way to

Re: [pypy-dev] OS

2011-12-10 Thread William ML Leslie
With a little work it would be possible to target ring0 with rpython, but the real question is why you would want to. There are many other languages better suited to the task. On 11/12/2011 1:01 PM, "Rinu Boney" wrote: can RPython be converted to low level code as to create something like a kern

Re: [pypy-dev] OS

2011-12-11 Thread William ML Leslie
On 11/12/2011, Rinu Boney wrote: > which are the languages suited for it other than c/c++ ? Of the safe languages that I know have been used for operating systems, there have been C# (Singularity, Windows 8?), Java (JNode), and Haskell (fillet-o-fish); but there are languages that are perhaps bet

Re: [pypy-dev] STM

2012-01-05 Thread William ML Leslie
On 5 January 2012 10:30, Armin Rigo wrote: > Hi all, > > (Andrew: I'll answer your mail too, but this is independent) > > Sorry if this mail is more general than just pypy-dev, but I'll post > it here at least at first.  When thinking more about STM (and also > after reading a paper that cfbolz po

Re: [pypy-dev] Global executable naming policy

2012-02-16 Thread William ML Leslie
On 17 February 2012 13:41, Aaron DeVore wrote: > There currently isn't an official naming scheme for the PyPy > executable for system installations. Of the 3 setups I've seen, the > official build uses pypy, Arch Linux uses pypy, and Gentoo Linux uses > pypy-c. I brought up the similar issue of ho

Re: [pypy-dev] Global executable naming policy

2012-02-16 Thread William ML Leslie
On 17 February 2012 16:21, Aaron DeVore wrote: > Gentoo's CPython package gives python, python2, python3, python2.x, > and python3.x. Gentoo's PyPy package allows parallel PyPy versions by > appending a version number. The names I listed would bring PyPy up to > the level of CPython. Sure, but th

Re: [pypy-dev] libgmp

2012-02-23 Thread William ML Leslie
On 24 February 2012 13:05, William ML Leslie wrote: > On 24 February 2012 12:56, Timothy Baldridge wrote: >> For a project I'm working on, I'd like to have support for gmp in >> pypy. I have a ctypes pypy module, but from what I understand, pypy's >> ctype

Re: [pypy-dev] change of strategy for the py3k branch?

2012-05-30 Thread William ML Leslie
On 31 May 2012 15:20, Justin Bogner wrote: > The other solution is to split the current pypy tree in two. Having a > translator and an interpreter as separate repositories makes the > translator more accessible as a tool, and projects to implement other > languages' interpreters need only depend o

Re: [pypy-dev] change of strategy for the py3k branch?

2012-05-31 Thread William ML Leslie
On 31 May 2012 04:42, Maciej Fijalkowski wrote: > On Wed, May 30, 2012 at 7:24 PM, Martijn Faassen > wrote: >> >> Hi there, >> >> Just throwing in my little bit: any change that is made that would >> make it easier to run Python 2 and Python 3 interpretors in the same >> process would interesting

Re: [pypy-dev] Dependence Graphs in Pypy?

2012-08-08 Thread William ML Leslie
On 09/08/2012, Tim Henderson wrote: > Fortunately, I don't need a complete call graph. To get started I really > only need procedure level dependency graphs (with control and > data-dependencies). This graph is essentially a CFG with extra edges for > different types of data dependencies. Thanks t

Re: [pypy-dev] pypq in RPython

2012-11-12 Thread William ML Leslie
On 13/11/2012, Nick Fankhauser wrote: > Hi! > > I'm trying to compile one of my python applications using "translate.py". > Because the application needs access to postgreSQL, it's using pypq. The > application runs fine in python, and pypy as well. > Using the error messages from translate.py, I

Re: [pypy-dev] PyPy in getting started

2012-12-24 Thread William ML Leslie
Ugh, hit the wrong reply button. On 24 December 2012 19:24, William ML Leslie wrote: > On 24 December 2012 19:03, anatoly techtonik wrote: >> Hi, >> >> The PyPy description in getting started is still too scientific. I attach a >> patch with accessibility fix. =) But

Re: [pypy-dev] x is y <=> id(x)==id(y)

2013-05-06 Thread William ML Leslie
On 6 May 2013 17:03, Amaury Forgeot d'Arc wrote: > 2013/5/6 Armin Rigo >> >> On Sun, May 5, 2013 at 10:40 PM, Michael Hudson-Doyle >> wrote: >> > I want to say something about negative zeroes here >> >> Right: on floats it's not actually the usual equality, but equality of >> the bit pattern

Re: [pypy-dev] Killing OOType? (was Re: Translating pypy on FreeBSD with CLI backend)

2013-05-21 Thread William ML Leslie
On 22 May 2013 16:11, James Lan wrote: > I really wish pypy is able to support jvm, cli and dalvik, so that it is > possible to write core business logic in python which runs everywhere. > > Is there any plan to implement a better ootype as well as OO backends? Nobody is working on any of the OO

Re: [pypy-dev] comparing strings using is does not works

2013-06-05 Thread William ML Leslie
On 6 June 2013 16:09, Amaury Forgeot d'Arc wrote: > Don't use "is" with immutable objects (except with the singletons: None, > True, False) Never with True or False either. It's required to work by the language definition, but it's still nonsense. -- William Leslie Notice: Likely much of this

Re: [pypy-dev] parallel building

2013-07-22 Thread William ML Leslie
On 22 July 2013 16:18, Nathan Hurst wrote: > On Sun, Jul 21, 2013 at 08:25:46PM -0700, Alex Gaynor wrote: >> No, there currently isn't a way to parallelize building. > > Ok. Is it hard or just low priority? It's mostly pretty hard, although it's not the same reason through each of the stages inv

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

2013-08-12 Thread William ML Leslie
On 12 August 2013 17:38, Armin Rigo 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 to the GC interface you expect to make, if any? -- William Leslie Notice: Likely much of this email is, by the nature of c

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

2013-11-04 Thread William ML Leslie
The blog post describes how to produce a cpython module .so for your schema. Needless to say that is pointless on pypy. On 04/11/2013 7:09 PM, "Armin Rigo" wrote: > Hi, > > On Mon, Nov 4, 2013 at 9:04 AM, KaShining wrote: > > import podpbpypy > > ImportError: No module named podpbpypy > > > > se

Re: [pypy-dev] More strategies

2013-11-07 Thread William ML Leslie
On 8 November 2013 09:18, Laurence Tratt wrote: > Looking up floats and longs is > now much faster; for many other types (e.g. strings or user objects whose > class does not override __eq__) these return immediately. I wonder a bit if it is worth introducing additional fast paths for clearly nons

[pypy-dev] Fwd: Access the name of variable that is being assigned

2014-07-15 Thread William ML Leslie
Ack, resend because pypy-dev does not set reply-to ... On 16 July 2014 03:55, anatoly techtonik wrote: > On Tue, Jul 15, 2014 at 12:50 PM, Yichao Yu wrote: >> On Tue, Jul 15, 2014 at 5:05 PM, anatoly techtonik >> wrote: >> I guess it would be better if you can describe what you really want to

Re: [pypy-dev] PyPy for analysis?

2014-09-07 Thread William ML Leslie
Ugh, thanks Gmail (: On 8 September 2014 01:33, William ML Leslie wrote: > On 7 September 2014 21:42, Scott West > wrote: > >> Hello all, >> >> I was looking recently into trying to do some simple static analysis of >> Python programs (to experiment with w

Re: [pypy-dev] mix-and-match approach to implementation decisions

2015-02-14 Thread William ML Leslie
On 14 February 2015 at 19:48, anatoly techtonik wrote: > Hi, > > Reading http://rpython.readthedocs.org/en/latest/ to see if I can > understand the text without a formal CS education. What does > "mix-and-match approach to implementation decisions" mean? > It means that making one decision - lik

Re: [pypy-dev] mix-and-match approach to implementation decisions

2015-02-14 Thread William ML Leslie
​I guess it's reasonable to ask how true this is of rpython. What options are there, and how do they exclude / depend on one another? In the l*o*p problem, it now ignores all p but one, and rpython doesn't concern itself with l.​ Maybe it's the gc * o problem now? -- William Leslie Notice: Li

Re: [pypy-dev] How to use interperter level code from a module for app level code in another module

2015-06-08 Thread William ML Leslie
On 8 June 2015 at 21:22, Yicong Huang wrote: > By reading modules in pypy/module, finally we found out the workaround > method. > > For most of modules in 'pypy/module', their interp code could not be > imported or used by other module's app code. > But there is special module '__pypy__', it expo

Re: [pypy-dev] How to use interperter level code from a module for app level code in another module

2015-06-09 Thread William ML Leslie
On 9 June 2015 at 19:39, Amaury Forgeot d'Arc wrote: > 2015-06-09 11:34 GMT+02:00 Yicong Huang : > >> No, I' am trying to call interp code from app code, and found the module >> could not be imported: >> >> import select => ImportError: No module named select >> import pypy.module.select

Re: [pypy-dev] is the handling of python signals a language implementation detail?

2015-08-10 Thread William ML Leslie
On 8 August 2015 at 19:32, Laura Creighton wrote: > I am reading 18.8.1.1 and 18.8.1.2 in > https://docs.python.org/3/library/signal.html which clearly is written > from the CPython point of view. > > A Python signal handler does not get executed inside the low-level > (C) signal handler. Inst

Re: [pypy-dev] type inference error

2015-08-27 Thread William ML Leslie
On 28 August 2015 at 04:23, Andrey Ayupov wrote: > Hello, > > Hopefully a very simple question. I am trying out RPython toolchain. pypy > 2.6, python 2.7. I am using the translator shell. > > Here's my simple example: > > python bin/translatorshell.py > > class mtype(): > def __init__(self): >

Re: [pypy-dev] type inference error

2015-08-27 Thread William ML Leslie
On 28 August 2015 at 13:34, William ML Leslie wrote: > def entry(x, y): > m = mtype() > return mmm(m) > er I meant: def entry(): m = mtype() return mmm(m) t = Translation(entry, []) -- William Leslie Notice: Likely much of this email is, by the nature of copyri

Re: [pypy-dev] FIY: Basic Block Versioning JIT

2015-09-29 Thread William ML Leslie
On 29 September 2015 at 21:18, Carl Friedrich Bolz wrote: > One thing that's very cool in BBV that I'm not aware of any other JIT > doing is to have type-specialized entry points for uninlinable methods. > Ie if a method is not inlined then the caller calls a type specialized > entry point with al

Re: [pypy-dev] PyPy doesn't implement the most important module!

2015-10-22 Thread William ML Leslie
On 22 October 2015 at 19:14, Maciej Fijalkowski wrote: > pypy will not automatically pick up packages from site-packages of > cpython. you need to install them separately, preferably in a > virtualenv. It comes with cpython, as part of the 'frozen' module system. https://docs.python.org/2/librar

Re: [pypy-dev] Question about "__extend__" hacks (in pypyjit module)

2016-02-08 Thread William ML Leslie
On 9 February 2016 at 10:24, Maciej Fijalkowski wrote: > __extend__ hacks add extra methods to classes See rpython.tool.pairtype and rpython.tool.test.test_pairtype for more information on this pattern. -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered

Re: [pypy-dev] fix libpypy-c.so needing certein versions

2016-06-22 Thread William ML Leslie
On 22 June 2016 at 18:19, Armin Rigo wrote: > http://pypy.org/download.html#linux-binaries-and-common-distributions The portable builds linked from that page work really well if you're on a gnu/linux (thanks, squeaky!) - try those out first. -- William Leslie Notice: Likely much of this em

Re: [pypy-dev] pickle numpy array from pypy to cpython?

2016-06-23 Thread William ML Leslie
On 24 June 2016 at 12:14, Eli Stevens (Gmail) wrote: > I'm trying to construct some data that includes numpy arrays in pypy, > pickle it, then unpickle it in cpython (to use some > non-pypy-compatible libs). > > However, the actual class of the pickled array is _numpypy.multiarray, > which cpython

Re: [pypy-dev] Django DateField default value and migrations fail

2016-08-17 Thread William ML Leslie
Darn reply-to not being set. Sorry Sergey. On 17 August 2016 at 17:21, William ML Leslie wrote: > On 17 August 2016 at 16:50, Sergey Kurdakov wrote: >> >> still causes error of the kind: >> >> topics/migrations/#migration-serializing" % (value, get_docs_

Re: [pypy-dev] Django DateField default value and migrations fail

2016-08-17 Thread William ML Leslie
rg) > File > "/usr/local/lib/pypy2.7/dist-packages/django/db/migrations/writer.py", line > 540, in serialize > "topics/migrations/#migration-serializing" % (value, get_docs_version()) > ValueError: Cannot serialize: 'datetime.date'>> > >

Re: [pypy-dev] Django DateField default value and migrations fail

2016-08-17 Thread William ML Leslie
On 17 August 2016 at 19:53, Yury V. Zaytsev wrote: > On Wed, 17 Aug 2016, Sergey Kurdakov wrote: > >> class TestClass(models.Model): >> >> start_date = models.DateField( >> verbose_name=u'start date', >> default=today, >> ) >> >> so I just wrap required function call in

Re: [pypy-dev] Any known tricks or effort made to make the PyPy source code build faster?

2016-08-29 Thread William ML Leslie
On 30/08/2016 9:53 am, "Wang, Peter Xihong" wrote: > > Hi, > > > > By default, it appears most of the time during the build/compile process, only 1 single CPU core is busy, signaling missing of parallel compiling. Is there any best known practice to make it faster? > > Not at the moment. The ST

Re: [pypy-dev] Build Pypy with different Interpreters

2016-09-08 Thread William ML Leslie
On 8 September 2016 at 19:40, Jan Brohl wrote: > Is it possible to build different interpreters like Stackless, IronPython > or Jython? > ​That was actually the original motivation for creating pypy - maintaining all those different python implementations was a lot of unnecessary work. ​Stackle

Re: [pypy-dev] Build Pypy with different Interpreters

2016-09-08 Thread William ML Leslie
On 8 September 2016 at 22:38, Jan Brohl wrote: > Sorry, for the typo - I was asking if it is possible to build pypy *with* > different interpreters instead of just cpython and pypy. > ​That makes sense, it fits with your other question (: The translator operates on functions that have been byte

Re: [pypy-dev] Build Pypy with different Interpreters

2016-09-08 Thread William ML Leslie
On 8 September 2016 at 22:38, Jan Brohl wrote: > Sorry, for the typo - I was asking if it is possible to build pypy *with* > different interpreters instead of just cpython and pypy. > > (using eg "ipy64" instead of "pypy" or "python" in the translation step > described at > http://doc.pypy.org/en

Re: [pypy-dev] RFC: draft idea for making for loops automatically close iterators

2016-10-17 Thread William ML Leslie
Have you considered Custodians, a-la racket? I suspect that adding resources to and finalising custodians requires less defensiveness than marking all iterables as resources, but I've yet to see someone implement them in python. https://docs.racket-lang.org/reference/custodians.html -- William

Re: [pypy-dev] RFC: draft idea for making for loops automatically close iterators

2016-10-22 Thread William ML Leslie
*shrug* The real solution to relying on implementation-defined behaviour isn't to emulate that behavour through even more pervasive user-visible (and user-breakable) generator madness, but to use static analysis tools as part of the development process that can detect and report common violations

Re: [pypy-dev] RFC: draft idea for making for loops automatically close iterators

2016-10-22 Thread William ML Leslie
A quick definition: A resource is something, typically represented as a program object, whose timely disposal is relevant for the correct operation of the program. Typically, it can't be closed too late (in the case of files, the process may end before all writes are flushed), but it often can't

Re: [pypy-dev] PYPY:why withprebuiltint option is off default? The speed is slower after I open it.

2016-12-14 Thread William ML Leslie
On 14 December 2016 at 15:19, 张耀 wrote: > Hi, every experts: >Recently I'm trying to move my old project from python to pypy. In the > past, I have do some optimizations for python interpreter. One Important > thing is modify python default integer object cache range(default is from -5 > t

Re: [pypy-dev] Object pinning

2016-12-22 Thread William ML Leslie
On 22 December 2016 at 15:56, Kunshan Wang wrote: > Hi folks, Hi Kunshan! > > I have a question regarding object pinning in RPython. > > Consider the following snippet from rpython/rtyper/lltypesystem/rstr.py > > @jit.oopspec('stroruni.copy_contents(src, dst, srcstart, dststart, > length)')

Re: [pypy-dev] Fwd: Re: Adding init/variables to W_Root

2017-01-11 Thread William ML Leslie
On 12 January 2017 at 09:08, Frank Wang wrote: > def binaryoperation(operationname): > """NOT_RPYTHON""" > def opimpl(self, *ignored): > operation = getattr(self.space, operationname) > w_2 = self.popvalue() > w_1 = self.popvalue() > w_result = operation(w_1

Re: [pypy-dev] cppyy fails to build on gcc 5 and clang

2017-01-18 Thread William ML Leslie
On 18 January 2017 at 21:02, Antonio Cuni wrote: > Hi Tobias, > > Note also that capnpy is serialization only: there is no support for RPC > stuff. > Although if you want to work on it, I've got some preliminary support for it in my fork that I mostly ripped from an internal CapTP implementation

[pypy-dev] Fwd: [MoreVMs'17] Call for Contributions: 1st Workshop on Modern Language Runtimes, Ecosystems, and VMs at 2017

2017-01-27 Thread William ML Leslie
Hello pypy contributors and rpython users, In case any of you missed this CFP this looks like an exciting workshop! -- Forwarded message -- From: Stefan Marr Date: 6 December 2016 at 00:56 Subject: [MoreVMs'17] Call for Contributions: 1st Workshop on Modern Language Runtimes, Ec

Re: [pypy-dev] What is RuntimeTypeInfo?

2017-03-14 Thread William ML Leslie
On 14 March 2017 at 11:17, John Zhang wrote: > Hi all, > Can anyone does the favour for me by explaining the story of RuntimeTypeInfo > in RPython? Hi John! The RTTI are a hook that the backend can implement, there is a fair bit of flexibility in what values they can take. The hooks in the C ba

Re: [pypy-dev] What is RuntimeTypeInfo?

2017-03-15 Thread William ML Leslie
On 16 March 2017 at 11:47, John Zhang wrote: > Hi Carl, Armin, William, > I have thought about modifying the JIT code instruction set, descriptors and > runtime rewrite etc. to encode the MuTyped CFG (which is a further type and > ops specialisation towards the Mu MicroVM) for Mu back-end. But I p

Re: [pypy-dev] Integer division

2017-06-01 Thread William ML Leslie
On 1 June 2017 at 20:53, Armin Rigo wrote: > Hi, > > On 31 May 2017 at 17:11, Tuom Larsen wrote: > > # k = i//j # 2.12 seconds > > k = int(i/j) # 0.98 seconds > > Note first that if you don't do anything with 'k', it might be optimized > away. > > I just wrote a pure C ex

[pypy-dev] Fwd: [CfP][Meta'17] Workshop on Meta-Programming Techniques and Reflection

2017-06-29 Thread William ML Leslie
-- Forwarded message -- From: Stefan Marr Date: 29 June 2017 at 23:22 Subject: [CfP][Meta'17] Workshop on Meta-Programming Techniques and Reflection To: mlvm-...@openjdk.java.net Call for Papers: Meta’17

Re: [pypy-dev] Asking for help

2017-07-02 Thread William ML Leslie
On 3 July 2017 at 11:16, Meide Zhao wrote: > Hi all, > > I'm trying to build pypy from source on ubuntu 12.04 LTS but can't get it > to work (see error messages below). Can someone help me and let me know the > correct steps since I'm new to pypy? > ​Hi! 12.04 reached End Of Life at the end of A

Re: [pypy-dev] Asking for help

2017-07-02 Thread William ML Leslie
​Also: Please don't run compilers with sudo.​ On 3 July 2017 at 11:16, Meide Zhao wrote: > (4)build pypy > cd ~/pypy/pypy/pypy/goal/ > sudo ../../rpython/bin/rpython --opt=jit targetpypystandalone.py > > -- William Leslie Notice: Likely much of this email is, by the nature of copyright

Re: [pypy-dev] Asking for help

2017-07-02 Thread William ML Leslie
On 3 July 2017 at 15:47, Meide Zhao wrote: > Thanks a lot Leslie. > > Can I use the newer version of Ubuntu like 16.04 or 17.04? Which Linux and > which version do you use? > Tannit (which does the automatic linux-64 builds) has GCC 4.8.2, so even something that old should work. I'm not sure if

Re: [pypy-dev] Static bytecode instruction optimization and pypy (JIT?) optimization

2017-07-10 Thread William ML Leslie
On 10 July 2017 at 11:10, Rocky Bernstein wrote: > In looking at Python bytecode over the years, I've noticed that it does very > little to no traditional static-compiler optimization. Specifically: > > > Yes, over the years more compiler optimization has been done but it's still > pretty sparse.

Re: [pypy-dev] Static bytecode instruction optimization and pypy (JIT?) optimization

2017-07-11 Thread William ML Leslie
On 11 July 2017 at 18:22, Rocky Bernstein wrote: > There's too much generalization and abstraction in the discussion at least > for me. So let me try to make this a little more concrete with real > examples. First note that, although Python, yes, does "optimize" "if 0:" > away, as soon as > you do

Re: [pypy-dev] Static bytecode instruction optimization and pypy (JIT?) optimization

2017-07-11 Thread William ML Leslie
2017 at 18:53, Rocky Bernstein wrote: > > > On Tue, Jul 11, 2017 at 4:35 AM, William ML Leslie > wrote: >> >> On 11 July 2017 at 18:22, Rocky Bernstein wrote: >> > There's too much generalization and abstraction in the discussion at >> > least >&

Re: [pypy-dev] Static bytecode instruction optimization and pypy (JIT?) optimization

2017-07-11 Thread William ML Leslie
On 11 July 2017 at 19:28, Carl Friedrich Bolz wrote: > On 11/07/17 10:37, Rocky Bernstein wrote: >> Sure but that's a straw argument and has a lot of packed opinions in it. >> Things like "run my program exactly like I expect" is loaded with >> opinions. As has already been noted, Python removes

Re: [pypy-dev] Mysterious IndexError in service running with PyPy

2017-12-19 Thread William ML Leslie
Where is the code that changes the size of self.heap? How do we know that size(self.heap) is constant? My guess is that some thread changes this; but l is not recomputed. On 18 Dec 2017 6:59 PM, "hubo" wrote: > I'm reporting this issue in this mail group, though I don't know if it is > related w

[pypy-dev] [CFP] Workshop on Virtual Machines and Language Implementations (VMIL’18)

2018-06-14 Thread William ML Leslie
Stefan Marr had sent this on some JVM lists; but it's super relevant for those of us doing research on or with pypy, too. Call for Papers Workshop on Virtual Machines and Language Implementatio

Re: [pypy-dev] A quick question for you!

2018-06-18 Thread William ML Leslie
On 18 June 2018 at 22:18, Etienne Robillard wrote: > Hi, > > Quick question: Does anyone of you know what is the effect of enabling > gc.enable() in sitecustomize.py when using PyPy? Can it reduce latency for > long-lived WSGI applications? > gc is enabled by default. you only need to use gc.ena

Re: [pypy-dev] let's clean up open branches

2019-02-11 Thread William ML Leslie
r on the > branch, and date. > > William ML Leslie 2017-01-24 12:54 +1100 > taskengine-sorted-optionals > William ML Leslie 2017-01-24 18:55 +1100 > inline-taskengine > Sorry, i closed one branch in this series and forgot the rest. Feel free to delete these. _

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

2019-07-16 Thread William ML Leslie
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? ___ pypy-dev mailing list pypy-dev@python.org https://mail.pytho

Re: [pypy-dev] windows 64 bit

2020-04-14 Thread William ML Leslie
On Tue, 14 Apr 2020, 4:35 pm Steven Mathews, wrote: > I saw pypy is windows 32bit. > > Does that mean my code won't be able to use 32GB of RAM, only 4GB ? > Correct. For more detail, please see the FAQ entry here: https://doc.pypy.org/en/latest/faq.html#what-is-needed-for-windows-64-support-of

Re: [pypy-dev] Contributing Polyhedral Optimisations in PyPy

2020-12-17 Thread William ML Leslie
On Fri, 18 Dec 2020 at 05:14, muke101 via pypy-dev wrote: > > I'm doing a computer science masters and am looking for an appropriate > project to take on for a dissertation related to Polyhedral optimisations. > Talking to my professor, we both think trying to implement the model and it's > loo