Re: [pypy-dev] Differences performance Julia / PyPy on very similar codes

2020-12-24 Thread Bengt Richter
scover that a CPU shortcutting multiply by zero affects a subset of your computations. > Cheers, > > Carl Friedrich > ___ > pypy-dev mailing list > pypy-dev@python.org > https://mail.python.org/mailman/listinfo/pypy-dev Happy Holidays! -- Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] PyPy 3 for Windows 64-bit systems - no download link available

2018-10-28 Thread Bengt Richter
subtracting 1, whereas for a signed maxint, the intermediate value would have to be specialcased or the value written maybe like (2**62-1)+(2**62) ? Or does it involve a bigint representation somewhere? Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] State of GUI toolkits with PyPy?

2015-09-20 Thread Bengt Richter
qubes-os.org/doc/HCL/ Maybe something analogous could be done for pypy compatibility? 4) BTW, they seem to be using cpython2.7 a lot, and I'm sure speedup would be good ;-) It's an interesting project. Security by compartmentalization, using xen and fedora, with others coming. Just th

[pypy-dev] Pycket: A Tracing JIT For a Functional Language

2015-05-10 Thread Bengt Richter
Further evidence of your good rpython effects beyond pypy: http://lambda-the-ultimate.org/node/5152 http://homes.soic.indiana.edu/samth/pycket-draft.pdf in case any of you hadn't seen it yet. Kudos. ___ pypy-dev mailing list pypy-dev@python.org https:

Re: [pypy-dev] Vectorizing numpy traces

2015-02-25 Thread Bengt Richter
rds On Wed, Feb 25, 2015 at 1:12 AM, Bengt Richter wrote: On 02/24/2015 11:17 PM Maciej Fijalkowski wrote: Hi Richard. I will respond inline On Tue, Feb 24, 2015 at 8:18 PM, Richard Plangger wrote: hi, [...] (1) Is there a better way to get loops hot? no, not really (you can l

Re: [pypy-dev] Vectorizing numpy traces

2015-02-24 Thread Bengt Richter
o the checkpoint module where everything would be restored as it was checkpointed, and execution would continue as if just returning from the call to the checkpointing method, which would be after the forced warmup prelude. Sorry if I am intruding. Regards, Bengt Ri

Re: [pypy-dev] Python Obfuscation Challenge (fwd)

2014-09-04 Thread Bengt Richter
On 09/04/2014 07:27 PM Laura Creighton wrote: Not important but I just received this in the mail. Those of you who read python-announce will have got it as well. --- Forwarded Message Return-Path: From: Serge Guelton To: python-announce-l...@python.org Subject: Python Obfuscation Challe

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

2014-07-15 Thread Bengt Richter
self._names or ["(unassigned)"])) def __repr__(self): return '<%s obj: %r %r %s>' %( self.__class__.__name__, self.args, self.kw, 'assigned to: %s'%( ', '.join(r

Re: [pypy-dev] Why CFFI is not useful - need direct ABI access 4 humans

2014-04-03 Thread Bengt Richter
n language design ;-) When you want to write your compiler, python is there. Or you may find racket's ability to define alternate syntax languages interesting: http://docs.racket-lang.org/guide/languages.html Their home pages is http://racket-lang.org/ Have fun ;-) Regards

Re: [pypy-dev] Why CFFI is not useful - need direct ABI access 4 humans

2014-03-30 Thread Bengt Richter
On 03/30/2014 05:32 PM Leonardo Santagada wrote: On Sun, Mar 30, 2014 at 9:36 AM, anatoly techtonikwrote: On ABI level tools can be more useful, and there is where idea intersects with CFFI. It doesn't cancel the fact that people need safe feet injury prevention interfaces. Look for my previous

Re: [pypy-dev] Pypy garbage collection

2014-03-18 Thread Bengt Richter
PMJI, but I wonder if some of these objects could come from trivial re-instatiations instead of re-use of mutable objects, e.g., fishing out one attribute to use together with a new value as init values for an (unnecessarily) new obj. obj = ObjClass(obj.someattr, chgval) where obj.chg =

Re: [pypy-dev] PyPy3 release?

2013-12-03 Thread Bengt Richter
ementation* of the python lanaguage, ISTM the implementation should do whatever the version of the python *language* implies (2.7.3 as of now?). The version of the implementation (pypy or other) would seem to be orthogonal. No? Regards, Bengt Richter __

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

2013-09-11 Thread Bengt Richter
~/.bash_profile? Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] PyPy doesn't make code written in C faster

2013-05-31 Thread Bengt Richter
thing completely different: ``nothing is true'' >>>> The bench run: [14:49 ~/wk/py/clp]$ python NathanHurst.py factorial 1.36516094208 Str time 2.93479013443 my rec time 1.45956683159 equal string: True strL rec time 1.34501504898 equal string:

Re: [pypy-dev] understanding and fixing rtyper warnings

2013-04-04 Thread Bengt Richter
ass it to/through one/few place/s that can be monitored on the way to becoming keys (which I guess never happens?)). Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Slow int code

2013-03-04 Thread Bengt Richter
other unicode or wchar_t unicode etc. Might be interesting if rtype could track jitted and ffi representations too, and still have type say the right thing for type(thing). Sorry, got carried away ;-/ BTW, what happens if you import in the opposite order? Can the 32-bit interpreter process the 64-bit pyc? Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] CFFI speed results

2012-12-15 Thread Bengt Richter
nly when actually needed. Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] failure in SymPy's test suite, isprime gives RPython AssertionError

2012-10-07 Thread Bengt Richter
.) => True ... 41 repeats of same as above and below ... + 71 [_test]: R: _test(...) => True [10:24 ~/wk/sympy]$ The 72, 71, 66 represent the line numbers of the returns from _test I didn't grep out the calls, as the args are such l

Re: [pypy-dev] PyPy STM

2012-10-02 Thread Bengt Richter
u would visualize STM helping in bringing either manual or automated parallelism into this update problem, say with a goal of maximizing frame rate. And what do you expect the "untrained programmers" to think of, and to be able to avoid thinking about,

Re: [pypy-dev] Update on MyHDL benchmarks with pypy

2012-06-17 Thread Bengt Richter
at would be cool too. Maybe you already have something like that? Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

[pypy-dev] pypy -mime rfc2045_file? -- Was/is?: Re: Python FFI

2012-05-16 Thread Bengt Richter
like typed symbolic links with only a single line of metadata, a blank line, and an url in the file. I'm sure you are already ahead of me into other possibilities. Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Syntax for the 'transaction' module

2012-05-03 Thread Bengt Richter
solutions evolved. http://en.wikipedia.org/wiki/ALOHANET#The_ALOHA_protocol BTW, does the throughput graph imply anything for what you are doing? Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Syntax for the 'transaction' module

2012-05-01 Thread Bengt Richter
;s factored differently. Wondering how transaction stuff might play re transaction guarantees for generator states and serializing the feed from one to the next. Does it even make sense or does pipelining need a different kind of support? Re names: what about a mnemonic like pasifras == [p]arallel [as] [if] [ra]ndomly [s]erial Thence pasifras.add ? Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] The Work Plan Re: STM proposal funding

2012-04-16 Thread Bengt Richter
probably have experiments and thoughts under way that you'd rather work on than discuss or explain, so back to lurking for some decent interval ;-) Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] STM/AME for CPython?

2012-04-13 Thread Bengt Richter
ad enough, sorry ;-/ (OTOH I may represent a few other in that). BTW, will your solution enable us to create atomic properties using descriptors and all that? Regards, Bengt Richter PS. Nit: I wasn't familiar with the acronym AME (Automatic Mutual Exclusion). Might be good to spell it out on

Re: [pypy-dev] STM/AME for CPython?

2012-04-12 Thread Bengt Richter
ate of blobs in the cloud (with presumable implications for the smart phone environment, maybe crowd-sourced updates to crowd-viewed cloud representation of something, whether emergency info or flashmob partying status, etc.). Regards, Bengt Richter

Re: [pypy-dev] Findings in the Cython test suite

2012-04-08 Thread Bengt Richter
as created). Regards, Bengt Richter PS. Don't go to any extra trouble to make the info accessible for me -- I was just curious. ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] question re: ancient SSL requirement of pypy

2012-02-13 Thread Bengt Richter
hon, but does in pypy. Linked differently?) Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] pypy rsocket problem

2012-02-05 Thread Bengt Richter
On 02/05/2012 12:18 AM Ronny Pfannschmidt wrote: rpython is NOT indented for app-level development. Does indentation work differently in rpython? Regards, Bengt Richter Sorry, could not resist ;-) ___ pypy-dev mailing list pypy-dev@python.org http

Re: [pypy-dev] GC error

2012-01-17 Thread Bengt Richter
IT enabled, it throws that exception shown in my last email before it uses much swap space at all (using only about 4GB swap with>30GB swap still free). ^^^ could that 4GB correspond to a 32-bit representation of size somewhere that needs to be bigger? Regards,

[pypy-dev] No pypy Tkinter demo hello world here ...

2011-12-13 Thread Bengt Richter
s some config options? Sorry to be so lazy and just ask ;-/ Decided to send it anyway ... Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] .py -> .pyc -> (.pyc2 + .so) ?

2011-12-11 Thread Bengt Richter
On 12/11/2011 05:38 PM Benjamin Peterson wrote: 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

[pypy-dev] .py -> .pyc -> (.pyc2 + .so) ?

2011-12-11 Thread Bengt Richter
able, could you pass pypy a support file (e.g. -jit purefuncfile=thesupportfile) with a line per function specifying modulefile and access path (maybe start with global functions only), asserting suitability? Regards, Bengt Richter ___ pypy-dev m

Re: [pypy-dev] python 2 and python 3 sharing an interpreter?

2011-12-09 Thread Bengt Richter
option (-py2x or -py3x) could tell what kind of main to expect? Polyglot packages? ;-) Maybe __init__.py could also invoke some kind of annotation ("handwave" ;-) file processing? Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@p

Re: [pypy-dev] Questions on the pypy+numpy project

2011-10-19 Thread Bengt Richter
are welcome to fork PyPy's bitbucket repository and hack there, but you will have more interested answers if you move this discussion somewhere more appropriate (like the python-ideas mailing list). A bientôt, Armin. Thank you. Regards, Bengt Ri

Re: [pypy-dev] Questions on the pypy+numpy project

2011-10-19 Thread Bengt Richter
ation markup methodology. (I'm just looking for reaction to the general idea, not specific syntax problems). Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Contributing to pypy [especially numpy]

2011-10-18 Thread Bengt Richter
On 10/17/2011 01:26 PM Alex Gaynor wrote: On Mon, Oct 17, 2011 at 6:12 AM, Bengt Richter wrote: On 10/17/2011 12:10 AM Armin Rigo wrote: Hi, On Sun, Oct 16, 2011 at 23:41, David Cournapeau wrote: Interesting to know. But then, wouldn't this limit the speed gains to be expected fro

Re: [pypy-dev] Contributing to pypy [especially numpy]

2011-10-17 Thread Bengt Richter
., if a source loop has z[i]=a*b*c, might you hoist b*c without considering that assert a*b*c == a*(b*c) might fail, as in >>> a=b=1e-200; c=1e200 >>> assert a*b*c == a*(b*c) Traceback (most recent call last): File "", line 1, in AssertionError

Re: [pypy-dev] Benchmarks

2011-07-17 Thread Bengt Richter
1] http://en.wikipedia.org/wiki/Lock_convoy Regards, Bengt Richter ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

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

2011-07-13 Thread Bengt Richter
On 07/13/2011 11:37 AM Bengt Richter wrote: ... Hm. I downloaded pypy and it does optimize constant storage for 1003 is 1000+3 ... Of course, the id's are all still id's of garbage locations once returned from id ;-) So how about returning None instead of id's of garbage

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

2011-07-13 Thread Bengt Richter
On 07/11/2011 04:21 PM William ML Leslie wrote: 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 Richterwrote: On 07/10/2011 09:13 PM Laura Creighton wrote: What do we want to happen when somebody -- say in a C

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

2011-07-11 Thread Bengt Richter
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 somebody -- say in a C extension -- takes the id of an object that is scheduled to be removed when the gc next runs? IMO

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

2011-07-11 Thread Bengt Richter
) >>> >>> oldid([]),oldid([]) # dangling pointer value returned (3083895948L, 3083895948L) >>> id([]),id([]) # pointer kept live (, ) >>> idk([]),idk([]) # pointer kept live, constant caching n/a (, ) >>> Have fun ;-) Regards Bengt Richter Laura = ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev

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

2011-07-10 Thread Bengt Richter
On 07/10/2011 04:09 PM Armin Rigo wrote: Hi Bengt, On Sun, Jul 10, 2011 at 3:48 PM, Bengt Richter wrote: >>> id([1]) == id([2]) True True, I did write that. The key word in my line before that was `superficially' ;-) As pointed out by Carl Friedrich, the real definit

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

2011-07-10 Thread Bengt Richter
> (lambda x,y:(id(x)==id(y)))([],[]) False >>> ... assuming the lambda above approximates what `is' does. Using id comparisons instead of `is' can look superficially a bit weird: >>> id([1]) == id([2]) True >>> Bottom line: id does not seem to have a c

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

2011-07-08 Thread Bengt Richter
On 07/08/2011 10:31 AM William ML Leslie wrote: 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 anyth

Re: [pypy-dev] bounties for pypy

2011-06-30 Thread Bengt Richter
nning" a contest for credit? These are just some thoughts in case the reward process scales up and gets complicated (not intended as a proposal for how to complicate things ;-) Regards, Bengt Richter [1] BTW, this is IMO the essential flaw in the patent/copyright exclusive-rights method of reward