antocuni changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "PyPy: the Gradual Reduction of Magic (tm)"
barrywhart has quit [Remote host closed the connection]
<abrown>
I have an RPython interpreter that writes log files when I run `PYPYLOG=jit:my-log my-interpreter my-complex-program` but only writes empty files when I run the same thing with a simple program; what could cause this?
<simpson>
abrown: The JIT never traces, so no JIT logs are ever written because the logger's never called.
<abrown>
I am relatively confident that both programs will hit the jit_merge_point because they both use the same 'while' term
<simpson>
Sure, but the JIT only kicks in after the same loop is visited many times. By default, it's a little over 1000 times.
<abrown>
Under what conditions would the JIT not trace? In the complex program I hit the 'while' term 1000+ times and in the simple program I hit it 1000000+ times...
<abrown>
(the simple program is a while loop that increments an accumulator variable a million times or something)
<simpson>
Hm. Not sure then. Check your greens, I guess.
<abrown>
But what do we mean by "change"? Is it a reference check or does RPython somehow know if an object has been mutated?
<simpson>
Greens should, IMO, be either primitives like ints or references to objects which are `_immutable_ = True`.
<simpson>
The idea is "the same point in user-level code". So the user-level code object is gonna be an immutable green.
<abrown>
My 'while' term is immutable except that it has a couple of mutable fields that cache some stuff... the reference does not change between loop iterations but I avoid some work by saving some stuff on those mutable fields
<abrown>
I think I made them quasi-immutable because once they are changed they don't really change again
jtl_ has quit [Quit: jtl_]
<abrown>
Even if the fields were mutable (and not declared quasi-immutable), I am guessing that RPython just checks that the object address has not changed and has no way of knowing if the internal fields have changed--is this correct?
<abrown>
simpson, thanks; ttyl
abrown has quit [Quit: Leaving]
tayfun26 has joined #pypy
oberstet has joined #pypy
redj_ has joined #pypy
redj has quit [Ping timeout: 252 seconds]
marky1991 has quit [Ping timeout: 272 seconds]
Taggnostr has quit [Remote host closed the connection]
marky1991 has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
marky1991 has joined #pypy
jtl_ has joined #pypy
redj_ is now known as redj
yuyichao has quit [Ping timeout: 256 seconds]
yuyichao has joined #pypy
jamesaxl has joined #pypy
marky1991 has quit [Ping timeout: 240 seconds]
exarkun has quit [Ping timeout: 248 seconds]
oberstet has joined #pypy
exarkun has joined #pypy
dcrosta has joined #pypy
jtl_ has quit [Remote host closed the connection]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
jaffachief has quit [Quit: Connection closed for inactivity]
antocuni has quit [Ping timeout: 255 seconds]
adamholm_ has joined #pypy
adamholmberg has quit [Ping timeout: 265 seconds]
inhahe_ has quit [Ping timeout: 268 seconds]
inhahe_ has joined #pypy
<kenaan>
arigo default 05955e010535 /rpython/rlib/rthread.py: Invent a dummy thread id, if we ask for one during translation and we're running a host with no threads
ronan has quit [Ping timeout: 255 seconds]
nunatak has joined #pypy
adamholm_ has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Read error: No route to host]
adamholmberg has joined #pypy
dcrosta has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 248 seconds]
dcrosta has joined #pypy
tbodt has joined #pypy
Rhy0lite has quit [Quit: Leaving]
dmalcolm_ has quit [Remote host closed the connection]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amaury has joined #pypy
Hasimir has quit [Read error: Connection reset by peer]
Hasimir has joined #pypy
amaury_ has joined #pypy
amaury has quit [Ping timeout: 248 seconds]
amaury_ is now known as amaury
ssbr` has quit [Ping timeout: 265 seconds]
jamesaxl has quit [Quit: WeeChat 1.9.1]
awkwardpenguin has joined #pypy
ssbr` has joined #pypy
dcrosta has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kenaan>
amauryfa default 28aa6e61df25 /pypy/module/parser/: First stab at parser.tuple2st()
<kenaan>
amauryfa default 749063799a58 /pypy/module/parser/: parser.sequence2st: add validation of the passed tuple. Do it the 2016 way, by walking the grammar DFA, instead ...
jaffachief has quit [Quit: Connection closed for inactivity]
awkwardpenguin has quit [Ping timeout: 252 seconds]
<kenaan>
amauryfa py3.6 f6a0b040703c /: Add BLAKE2 (blake2b and blake2s) to hashlib.