cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | hacking on TLS is fun, way more fun than arguing over petty shit, turns out
the_rat_ has joined #pypy
the_rat has quit [*.net *.split]
<cfbolz> Corbin: in theory in rpython/rlib
<Corbin> Sounds great.
<Corbin> (In practice, I'm so lazy and bad at actually fulfilling promises to contribute.)
<cfbolz> mattip: while you have ssl stuff swapped into your head, do you maybe feel like looking into the usedforsecurity feature on 3.9?
dmalcolm has quit [Ping timeout: 268 seconds]
dmalcolm has joined #pypy
<mattip> sure, I think it is this issue https://bugs.python.org/issue9216
<mattip> listening to the "talk python to me" interview with Anthony Shaw about the relase of pyjion
<mattip> when talking about JIT optimizations, he mentioned cfbolz
<cfbolz> nice :-)
<cfbolz> we've been talking on twitter a lot
otisolsen70 has joined #pypy
<mattip> hmm, we don't have _hashlib.HASHXOF and the openssl_shake_* hashes at all
<mattip> but neither does Ubuntu CPython3.8 nor conda 3.8
<cfbolz> mattip: no clue :-(
amauryfa has joined #pypy
amauryfa has quit [Ping timeout: 245 seconds]
saltrocklamp[m] has quit [Quit: Bridge terminating on SIGTERM]
jryans has quit [Quit: Bridge terminating on SIGTERM]
daubers has quit [Quit: Bridge terminating on SIGTERM]
the_drow has quit [Quit: Bridge terminating on SIGTERM]
graingert[m] has quit [Quit: Bridge terminating on SIGTERM]
ambv has quit [Quit: Bridge terminating on SIGTERM]
jryans has joined #pypy
ambv has joined #pypy
graingert[m] has joined #pypy
saltrocklamp[m] has joined #pypy
the_drow has joined #pypy
daubers has joined #pypy
jryans has quit [Quit: Client limit exceeded: 20000]
graingert[m] has quit [Quit: Client limit exceeded: 20000]
saltrocklamp[m] has quit [Quit: Client limit exceeded: 20000]
Julian has joined #pypy
Julian has quit [Client Quit]
Julian has joined #pypy
<ctismer> cfbolz: What about `PyFunction_Check`, does something similar apply there like at `PyMethod_Check`?
jryans has joined #pypy
saltrocklamp[m] has joined #pypy
graingert[m] has joined #pypy
<cfbolz> ctismer: I don't know, how do you usually recognize C-defined *functions* as opposed to methods
<cfbolz> ?
<mattip> I think the same thing applies as before, it is a simple check isinstance(obj, types.FunctionType)
<ctismer> cfbolz: well, I was just digging around in our generated code and saw that there are a lot of such functions. Could again be a boost in less bugs 😀
<ctismer> cfbolz: same idea: if PyPy disagrees what a PyFunction is, resp. more importantly what it is not, this could make a difference.
<cfbolz> for functions we have a distinction tohugh
<cfbolz> ie this is False in pypy too: type(dir) is type(lambda:1)
<ctismer> mattip: With PyMethod_Check, I could ask if a `__module__` attr is there. What would I need in the PyFunction case, the same?
<ctismer> cfbolz: ah, how sad
<mattip> cfbolz: I am running into a problem calling _posixsubprocess.fork_exec, it seems to have grown another argument on py3.9?
<mattip> line 1503 in lib-python3/subprocess.py
<cfbolz> mattip: I did some work on that on the py3.9 branch on that
<cfbolz> mattip: maybe I wasn't thorough enough?
<mattip> no, something else seems off
<mattip> I am getting
<mattip> TypeError: fork_exec() missing 4 required positional arguments: 'groups_list', 'uid', 'child_umask', and 'preexec_fn'
<mattip> in that line
<cfbolz> hmmmmm
<cfbolz> mattip: wait, on which line?
<mattip> weird, there is no group_lists anywhere around
<mattip> lib-python/3/subprocess.py", line 1510, in _execute_child
<cfbolz> mattip: the line numbers don't match my checkout
<mattip> ahh, nevermind, the problem was between the keyboard and the chair
<cfbolz> ok :-)
<cfbolz> 1510 is empty for me ;-)
<cfbolz> but seems I broke something around function definitions on the peg branch
<antocuni> cfbolz: cool hack. Note that I had something similar, grep for 'exec_if_unfocused' inside pdb.py
<antocuni> I used it to play a sound if you get a pdb prompt but only if the window is currently unfocused
<cfbolz> antocuni: ah nice!
<cfbolz> I have sound off almost always, but same idea
<antocuni> but I haven't used it for years so it might not work nowadays (e.g. I see that I hardcoded 'emacs' and 'eterm' as special cases)
jacob22 has quit [Ping timeout: 240 seconds]
<cfbolz> antocuni: seems wmctrl bitrotted somewhat (and I don't actually use X any more)
<cfbolz> but interesting idea
<antocuni> why bitrotted? I have a set of scripts which I use a lot everyday and they work fine
<antocuni> what do you use instead of X?
<cfbolz> wayland
<cfbolz> antocuni: when I pip install it it doesn't work with the version of attr it is getting
<antocuni> ah :(
<antocuni> note that I'm still using it on py27 😅
Julian has quit [Ping timeout: 256 seconds]
Julian has joined #pypy
greedom has joined #pypy
greedom has quit [Remote host closed the connection]
greedom has joined #pypy
Julian has quit [Quit: leaving]
greedom has quit [Remote host closed the connection]
greedom has joined #pypy
greedom has quit [Client Quit]
greedom has joined #pypy
amauryfa has joined #pypy
greedom has quit []
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
greedom has joined #pypy
jacob22 has joined #pypy
<mjacob> cool, how did you make translating pypy 40% faster?
<cfbolz> mjacob: algorithmic improvements
<cfbolz> mjacob: accidentally quadratic rtyping
<cfbolz> plus precompiled headers in gcc
<mjacob> nice :)
<mjacob> i found the precompiled headers branch, but not the rtyper improvement
<cfbolz> mjacob: 79c62ab5b86b
<cfbolz> also e9dba3bc41a2
<cfbolz> that's a graph algorithm
<mjacob> cfbolz: the fixes look easy, how did you find the problem?
<cfbolz> profiling :-)
<cfbolz> nothing magic anywhere, basically
<cfbolz> just work
<cfbolz> nobody had looked in a long time
<cfbolz> mjacob: next summer I'm going to do another 40% 😉😅
Jose_ has joined #pypy
greedom has quit [Remote host closed the connection]
otisolsen70 has quit [Quit: Leaving]
amauryfa has quit [Ping timeout: 245 seconds]
<mjacob> what's the current review policy? if i think my fix is good, can i just push it to the branch and assume that someone will do a "post-commit" review?
<mjacob> i'm pushing without pre-merge review now. sorry if this changed in the meantime.
Julian has joined #pypy