forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
tsaka__ has quit [Ping timeout: 258 seconds]
jacob22 has joined #pypy
jacob22 has quit [Remote host closed the connection]
jacob22 has joined #pypy
tsaka__ has joined #pypy
antocuni has joined #pypy
forgottenone has joined #pypy
antocuni has quit [Ping timeout: 258 seconds]
gsnedders has quit [Ping timeout: 252 seconds]
gsnedders has joined #pypy
forgottenone has quit [Ping timeout: 250 seconds]
vstinner has joined #pypy
<vstinner>
hello. i modified Python 3.8 so C extensions built in release mode can now be loaded in a Python built in debug mode. this draft news entry describe the 3 changes that I made: https://github.com/python/cpython/pull/12957/files
<vstinner>
C extensions are no longer linked to libpython, so it becomes easier to imagine to load a C extension unmodified in PyPy :) especially if it's built using the stable ABI
raynold_ has quit [Quit: Connection closed for inactivity]
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
antocuni has joined #pypy
DRMacIver has quit [Ping timeout: 258 seconds]
kcr has quit [Ping timeout: 240 seconds]
graingert has quit [Read error: Connection reset by peer]
ctismer has quit [Read error: Connection reset by peer]
Alex_Gaynor has quit [Read error: Connection reset by peer]
lauren has quit [Read error: Connection reset by peer]
fijal has quit [Ping timeout: 252 seconds]
lauren has joined #pypy
Alex_Gaynor has joined #pypy
DRMacIver has joined #pypy
ctismer has joined #pypy
graingert has joined #pypy
fijal has joined #pypy
kcr has joined #pypy
forgottenone has joined #pypy
<kenaan>
codypiersall cffi/cffi acdaa0cb8906 /: Add support for more binary ops in enum definitions.
<antocuni>
if I run it with the default options, I see it aborts for all my foos
<antocuni>
I can try to make trace_limit higher by using the command line: pypy --jit trace_limit=16384
<antocuni>
if I do so, foo_257 is correctly inlined
<antocuni>
on the command line 16384 is the maximum allowed value; if you try to pass an higher one, you get an RPython traceback
<antocuni>
but if I use pypyjit.set_param, I can pass higher values
<antocuni>
and even more surprising, they seem to work 😱
<antocuni>
does anybody has a convincing explanation for that?
toad_poloest has quit [Remote host closed the connection]
<ronan>
antocuni: the command line version is equivalent to pypyjit.set_param('trace_limit=16384'), which is not the same as pypyjit.set_param(trace_limit=16384) !!
<ronan>
the former calls rpython.rlib.jit.set_user_param() which checks for trace_limit<2**14 and then calls set_param()
<ronan>
the latter calls set_param() directly
gaze___ has quit [Max SendQ exceeded]
gaze__ has joined #pypy
vstinner has left #pypy [#pypy]
Hasimir has joined #pypy
<antocuni>
ronan: yes exactly
<antocuni>
but why do we put a limit on it if it works even above 16384?
<ronan>
no clue, the real limit seems to be 2**16
antocuni has quit [Ping timeout: 258 seconds]
tsaka__ has quit [Ping timeout: 245 seconds]
graingert has quit []
graingert has joined #pypy
_infinite_ has quit [Ping timeout: 268 seconds]
DRMacIver has quit []
DRMacIver has joined #pypy
infinite has joined #pypy
<catern>
is there an easy way in cffi to do ffi.cast('struct foo*', ffi.from_buffer(b'whatever')) in a way that check that the buffer length is at least sizeof(struct foo)?
tsaka__ has joined #pypy
tsaka__ has quit [Remote host closed the connection]
forgottenone has quit [Quit: Konversation terminated!]
bsaleil has joined #pypy
nimaje has quit [Read error: Connection reset by peer]
nimaje has joined #pypy
awygle has quit [Quit: No Ping reply in 180 seconds.]
kipras has joined #pypy
awygle has joined #pypy
kipras has quit [Read error: Connection reset by peer]
PileOfDirt has joined #pypy
cjwelborn has quit [Ping timeout: 250 seconds]
dpn` has quit [Ping timeout: 250 seconds]
cjwelborn has joined #pypy
dpn` has joined #pypy
danieljabailey has quit [Read error: Connection reset by peer]
adamholmberg has quit [Remote host closed the connection]