cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
lritter has joined #pypy
mattip_ has joined #pypy
<kenaan> antocuni hpy 33150b74ce8b /pypy/module/hpy_universal/: progress towards passing test_self_is_module: implement HPy_Dup
<kenaan> antocuni hpy 1cbaaff6fda2 /pypy/module/hpy_universal/: pass the module as 'self' when calling HPyFunctionDefs. test_self_is_module passes
<kenaan> antocuni hpy 3308dc2cfbc4 /pypy/module/hpy_universal/test/test_handles.py: add unit test for handles.py
<kenaan> antocuni hpy a117a040ec4f /pypy/module/hpy_universal/: implement handles.close
<kenaan> antocuni hpy 1dc8e3639eb3 /pypy/module/hpy_universal/: implement a context-manager to allocate handles
<kenaan> antocuni hpy a4e8d4a49fff /pypy/module/hpy_universal/interp_extfunc.py: use the new handles context manager here
<kenaan> antocuni hpy f51448bff9a4 /pypy/module/hpy_universal/: implement METH_O calls; test_identify_function passes
<kenaan> antocuni hpy 513f66555585 /pypy/module/hpy_universal/test/test_basic.py: import this test, which already passes :)
CrazyPython has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
ronan has joined #pypy
ronan__ has quit [Ping timeout: 276 seconds]
ronan__ has joined #pypy
ronan__ has quit [Remote host closed the connection]
ronan__ has joined #pypy
ronan has quit [Ping timeout: 276 seconds]
CrazyPython has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7818 [ronan: force build, hpy]
ronan has joined #pypy
ronan__ has quit [Ping timeout: 265 seconds]
CrazyPython has quit [Read error: Connection reset by peer]
lritter has quit [Ping timeout: 265 seconds]
lritter has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
jcea has quit [Client Quit]
<mattip_> squeaky_pl: see issue 3118 about "pip install mercurial" somehow messing up "os.path.join(__file__, '..')"
ronan has quit [Ping timeout: 240 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7818 [ronan: force build, hpy]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<mattip_> aarch64 translation of py3.6 failed
<mattip_> Exception: 'no_collect' function can trigger collection: <function _siphash24 at 0x0000aaaab268b5b0>
<mattip_> v4840 = malloc((GcStruct tuple4), ({'flavor': 'gc'})): True
<mattip_> analyze_direct_call((rpython.rlib.rsiphash:216)_half_round): True
<mattip_> _half_round is a function with 6 arguments and returns 4 arguments
<mattip_> so it seems the return values are put into a tuple even though the function is marked always_inline
<mattip_> last time I tried to look at this was in the _siphash24-collecting branch, but I did not find the root cause
_whitelogger has joined #pypy
jcea has joined #pypy
jcea has quit [Remote host closed the connection]
squeaky_pl has quit [Read error: Connection reset by peer]
dddddd has quit [Remote host closed the connection]
lritter has quit [Ping timeout: 265 seconds]
lritter has joined #pypy
Taggnostr has quit [Quit: Switching to single player mode.]
Taggnostr has joined #pypy
dustinm- has quit [Quit: Leaving]
dustinm has joined #pypy
<kenaan> arigo hpy bc9e1d24a759 /pypy/module/hpy_universal/: Reintroduce hpy_universal.load(), but keeping .load_from_spec() too
<antocuni> horray :)
ronan has joined #pypy
ronan__ has joined #pypy
ronan has quit [Read error: Connection reset by peer]
jvesely has quit [Quit: jvesely]
ronan has joined #pypy
ronan__ has quit [Read error: Connection reset by peer]
ronan has quit [Read error: Connection reset by peer]
ronan has joined #pypy
ronan__ has joined #pypy
ronan has quit [Ping timeout: 240 seconds]
ronan__ has quit [Read error: Connection reset by peer]
ronan has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
squeaky_pl has joined #pypy
<squeaky_pl> cfbolz, I compared vanilla and PyPy compiled with -flto and -fno-semantic-interposition running with PYPY_JIT=off set. Here are my results: https://gist.github.com/squeaky-pl/f627032e2520e7d7624fefc78bfecfe8
<kenaan> antocuni hpy 69e48dfcbf9c /pypy/module/hpy_universal/state.py: the JIT doesn't like the casts from FUNCPTR to VOIDP, so hide this function from it
<kenaan> antocuni hpy 3c3b367435c3 /pypy/module/hpy_universal/: (antocuni, arigo, ronan): fix translation
<cfbolz> squeaky_pl: doesn't look like a huge win to me, right?
<squeaky_pl> yes, it does not. just saying i actually checked
<squeaky_pl> it was also linking for foreeeeever
<cfbolz> squeaky_pl: that's the fault of LTO, i assume?
<squeaky_pl> Probably, I would need to check apart
ronan__ has joined #pypy
ronan__ has quit [Remote host closed the connection]
ronan__ has joined #pypy
ronan has quit [Ping timeout: 265 seconds]
ronan has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
ronan__ has quit [Ping timeout: 240 seconds]
ronan__ has joined #pypy
ronan__ has quit [Remote host closed the connection]
ronan__ has joined #pypy
ronan has quit [Ping timeout: 265 seconds]
<mattip_> squeaky_pl: do you understand what "pip install" is doing in issue 3118?
<mattip_> why is '..' becoming b'..' ?
dddddd has joined #pypy
squeaky_pl has quit [Ping timeout: 265 seconds]
_whitelogger has joined #pypy
<kenaan> arigo hpy 44e3a984eb36 /pypy/module/hpy_universal/: (antocuni, ronan, arigo) More general progress
ronan__ has quit [Ping timeout: 240 seconds]
squeaky_pl has joined #pypy
<squeaky_pl> mattip_, sorry I was afk, I don't. I was just trying pyperformance on pypy and it tries to install this version of mercurial which triggers this problem.
marky1991_2 has joined #pypy
marky1991_2 has quit [Remote host closed the connection]
marky1991_2 has joined #pypy
marky1991_2 has quit [Read error: Connection reset by peer]
<mattip_> squeaky_pl: it seems to be running python in some strange mode
squeaky_ has joined #pypy
squeaky_pl has quit [Ping timeout: 240 seconds]
CrazyPython has joined #pypy
squeaky_pl has joined #pypy
squeaky_ has quit [Ping timeout: 276 seconds]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
squeaky_ has joined #pypy
squeaky_pl has quit [Ping timeout: 246 seconds]
jcea has joined #pypy
squeaky_ has quit [Quit: Leaving]
CrazyPython has quit [Ping timeout: 252 seconds]
ronan has joined #pypy
lritter has quit [Quit: Leaving]
ronan__ has joined #pypy
ronan has quit [Ping timeout: 265 seconds]
<kenaan> arigo default 37894e68890d /: Revert 18443d3a74d5: the branch int-test-is-zero is maybe a nice idea but it doesn't really work. E.g. when we wri...
ronan has joined #pypy
ronan__ has quit [Ping timeout: 276 seconds]
jvesely has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<kenaan> arigo hpy 25a647d7d077 /pypy/module/hpy_universal/: HPy_Close(), HPyNumber_Add()
<cfbolz> arigato: a general solution to the failarg problem would be cool
<arigato> yes
<cfbolz> arigato: for failarg that are the results of simple ops, luajit moves the op to the failargs
<cfbolz> eg if there's something like an int_add that's only used in failarg
<arigato> right
<arigato> or pending setfields, maybe
ronan__ has joined #pypy
<cfbolz> arigato: that's even more advanced, but yes
<cfbolz> both wouldn't be super hard and it might help the register allocator a lot
<cfbolz> I am not quite sure how it interacts with guard sharing, though
ronan has quit [Ping timeout: 240 seconds]
<mjacob> mattip_: mercurial used a "source transformer" that converted '..' to b'..'
<arigato> ideally, it should be fine with guard sharing
<kenaan> arigo hpy 6009d087288b /pypy/module/hpy_universal/: HPyUnicode_FromString()
<cfbolz> arigato: ok, then we'd have to be careful about setfield though
ronan has joined #pypy
ronan__ has quit [Ping timeout: 240 seconds]
<mattip_> mjacob: what is a source transformer, and is mercurial no longer using it?
<mjacob> mattip_: i'm currently writing an answer to the issue. in short: it's a mercurial bug
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
ronan__ has joined #pypy
ronan has quit [Ping timeout: 276 seconds]
CrazyPython has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
ronan has joined #pypy
ronan__ has quit [Ping timeout: 265 seconds]
CrazyPython has quit []
Ashleee has quit [Ping timeout: 268 seconds]
Ashleee has joined #pypy
ronan__ has joined #pypy
ronan has quit [Ping timeout: 240 seconds]
ronan has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
ronan__ has quit [Ping timeout: 240 seconds]
ronan__ has joined #pypy
ronan__ has quit [Read error: Connection reset by peer]
ronan__ has joined #pypy
ronan has quit [Ping timeout: 276 seconds]
kingsley has joined #pypy
<kingsley> Could a fork of pypy use machine learning to understand and refactor python source code?
<simpson> Let's split that into three pieces.
<simpson> Does it have to be a fork of PyPy? It could probably be any Python interpreter. PyPy goes fast. Why would we need to fork it?
<simpson> Using machine learning for compilation techniques is an interesting idea. But do you have a specific plan for how that would work?
<simpson> Finally, to understand source code is really hard, but maybe that's not needed; maybe all you need is the ability to recognize a context. There are semantic patching tools in/for other languages; maybe those have been adapted for Python somewhere.
<simpson> Hm, "coccinelle for python" is mostly turning up attempts to run Coccinelle itself on CPython, rather than reimplementations of the concept to operate on Python. I know that there's the `rope` library, but I've not really had success with it before, and of course the `ast` builtin module, if you're okay with AST-level operations.
danchr has quit [Quit: ZNC - http://znc.sourceforge.net]
danchr_ has joined #pypy
ronan has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
ronan__ has quit [Ping timeout: 240 seconds]
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
ronan__ has joined #pypy
ronan has quit [Read error: Connection reset by peer]
ronan__ has quit [Remote host closed the connection]
ronan__ has joined #pypy
CrazyPython has joined #pypy
ronan has joined #pypy
ronan has quit [Remote host closed the connection]
ronan has joined #pypy
ronan__ has quit [Ping timeout: 276 seconds]
CrazyPython has quit [Ping timeout: 265 seconds]
ronan__ has joined #pypy
ronan has quit [Ping timeout: 240 seconds]