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
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<ronan> antocuni: I did try something like that in cparser, but I couldn't make it work. My solution was to add 'typedef struct _HPyContext_s __unused;'
altendky has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
jvesely has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Ping timeout: 245 seconds]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
altendky has quit [Quit: Connection closed for inactivity]
mgedmin has quit [Quit: ZNC - https://wiki.znc.in/ZNC]
mgedmin has joined #pypy
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
phoe62 has joined #pypy
phoe62 has left #pypy [#pypy]
altendky has joined #pypy
mattip_ has quit [Ping timeout: 245 seconds]
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
mattip_ has joined #pypy
dddddd has quit [Remote host closed the connection]
senyai has quit [Ping timeout: 240 seconds]
senyai has joined #pypy
jcea has quit [Ping timeout: 245 seconds]
altendky has quit [Quit: Connection closed for inactivity]
dmalcolm__ has joined #pypy
dmalcolm_ has quit [Ping timeout: 245 seconds]
dmalcolm__ has quit [Ping timeout: 240 seconds]
yusuke_izawa has joined #pypy
yusuke_izawa has quit [Quit: Leaving.]
yusuke_izawa has joined #pypy
jvesely has quit [Quit: jvesely]
<antocuni> ronan: ah, and that line is enough to bring the struct in? Cool, I'll try it
yusuke_izawa has quit [Ping timeout: 265 seconds]
yusuke_izawa has joined #pypy
yusuke_izawa has quit [Client Quit]
<antocuni> ronan: with your hack it seems to work, but not completely. In particular, the lltype.Struct I get has hints['c_name'] == '__unused', which will create problems during the C compilation stage
yusuke_izawa has joined #pypy
dddddd has joined #pypy
<antocuni> uh? On the py3.6 branch cpyext tests fail on my machine, with this rffi_platform error raised inside the conftest: http://paste.openstack.org/show/786483/
<antocuni> the tests pass on default, and they also pass on bencher4 on the py3.6 branch
<antocuni> any idea?
<antocuni> "TypeError: conflict between translating python and compiler field type <Struct Py_buffer ..."
<antocuni> uh... it might be related to the fact that on my machine I have python3.7 installed, not python3.6: so if rffi_platform is trying to #include <Python.h>, it is getting a version which does not correspond to the cpyext headers
<antocuni> if this is the case, it probably means that we need to vendor CPython's Python.h inside py3.6 or something like that
<antocuni> ronan: I suppose this is for you ^^^ :)
yusuke_izawa has quit [Ping timeout: 240 seconds]
yusuke_izawa has joined #pypy
<mattip_> antocuni: your './pytest.py' isn't running with python3 is it? Can you try "python2 pytest.py ..."
<arigato> maybe we should grep for "/usr/{local/,}bin/env python" and replace it with "python2" inside pypy
yusuke_izawa has quit [Quit: Leaving.]
marky1991 has joined #pypy
Rhy0lite has joined #pypy
<antocuni> mattip_: nope, I'm running on python2
<antocuni> it's impossible to run pypy tests with python3, they quickly fails to import due to SyntaxErrors
yusuke_izawa has joined #pypy
marky1991 has quit [Ping timeout: 252 seconds]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
<ronan> antocuni: try to rm -rf rpython/_cache/ ?
<antocuni> ronan: thanks, it works now
<antocuni> do you have an idea what caused it?
<ronan> antocuni: I don't know the exact details, but some stuff stays in the cache and causes the C code generated by rffi_platform to become stale
<ronan> I had the same issue on Saturday
<antocuni> ok, good to know
<ronan> (different traceback though)
marky1991 has quit [Ping timeout: 265 seconds]
kenaan has joined #pypy
<kenaan> Stian Andreassen default 3b12b6935197 /pypy/module/cpyext/pyerrors.py: Fix issue #3120, do restore traceback in PyErr_Restore.
<kenaan> antocuni hpy c427e9f459bf /pypy/: extend checkmodule to be able to invoke the C compiler if requested. Use the new functionality to test hpy_universal...
<cfbolz> 3b12b6935197 needs a test
<antocuni> uh, definitely
altendky has joined #pypy
jvesely has joined #pypy
<kenaan> antocuni hpy b848790a2adb /pypy/module/hpy_universal/test/test_handles.py: fix test_handles, which now requires a more capable fake space
<kenaan> antocuni hpy 60cbdc3bb88a /pypy/module/hpy_universal/: introduce HPyS_real, which is the actualy C struct used to represent handles in C, and use it in the definition of H...
<kenaan> Stian Andreassen default 2916cb12db62 /pypy/module/cpyext/pyerrors.py: Remove the XXX about w_traceback
marky1991 has joined #pypy
<kenaan> stevie_92 cpyext-gc-cycle 6a71ef8d2b2c /rpython/memory/gc/rrc/: Implemented incremental limit for non-rrc objects during rrc marking Added flag to enable/disable tuple...
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 245 seconds]
Ai9zO5AP has joined #pypy
jcea has joined #pypy
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
mattip_ has quit [Ping timeout: 240 seconds]
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
<kenaan> Stian Andreassen default f49f7df7c633 /pypy/module/cpyext/test/test_pyerrors.py: The test for my previous commit
ekaologik has joined #pypy
i9zO5AP has joined #pypy
Ai9zO5AP has quit [Read error: Connection reset by peer]
<kenaan> antocuni hpy b4cd0dba403c /pypy/module/hpy_universal/state.py: silence a gcc warning
<kenaan> antocuni hpy-ctypespace fbcf93255972 /pypy/module/hpy_universal/llapi.py: try to use cpyext's CTypeSpace to declare some of the types needed by hpy. Hopefully, this will make thin...
mattip_ has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
senyai has quit [Quit: Leaving]
senyai has joined #pypy
<kenaan> antocuni hpy-ctypespace d788317a107f /pypy/module/hpy_universal/llapi.py: bah, typo
jcea has quit [Remote host closed the connection]
ekaologik has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
jcea has joined #pypy
<kenaan> antocuni hpy 160e0b8f64a1 /pypy/module/hpy_universal/: I'm not sure exactly what's happening, but with the double cast we end up with a global array inside ctx->ctx_Arg_Pa...
<kenaan> antocuni hpy-ctypespace f88d90878e29 /pypy/module/hpy_universal/: merge from hpy
Rhy0lite has quit [Quit: Leaving]
i9zO5AP is now known as Ai9zO5AP
jcea has quit [Ping timeout: 245 seconds]
jcea has joined #pypy
holdsworth has joined #pypy
marmoute_ has joined #pypy
ammar2 has quit [Ping timeout: 240 seconds]
holdsworth_ has quit [Quit: No Ping reply in 180 seconds.]
marmoute has quit [Ping timeout: 240 seconds]
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
ammar2 has joined #pypy
yusuke_izawa has quit [Quit: Leaving.]
kanaka has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 265 seconds]
mattip_ has quit [Quit: Leaving]
inhahe_ has quit []
inhahe has joined #pypy