arigato 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 | mac OS and Fedora are not Windows
infernix has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
dddddd has quit [Remote host closed the connection]
jacob22 has quit [Ping timeout: 264 seconds]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
jcea has quit [Quit: jcea]
adamholmberg has quit [Remote host closed the connection]
forgottenone has joined #pypy
adamholmberg has joined #pypy
raynold_ has joined #pypy
forgottenone has quit [Ping timeout: 255 seconds]
Hasimir has quit [Remote host closed the connection]
forgottenone has joined #pypy
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.
<kenaan> arigo cffi/cffi 4878938ac504 /: merge pull request #96. Thanks Cody!
<kenaan> arigo cffi/cffi 1fc05b4f57de /: Fix C integer division. Add modulo.
jcea has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
lritter has joined #pypy
forgottenone has quit [Ping timeout: 250 seconds]
dddddd has joined #pypy
forgottenone has joined #pypy
xcm is now known as Guest10292
Guest10292 has quit [Killed (weber.freenode.net (Nickname regained by services))]
xcm has joined #pypy
<antocuni> I am confused by the trace_limit JIT param
<antocuni> consider this example: http://paste.openstack.org/show/749824/
<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]
adamholmberg has joined #pypy
lritter has quit [Ping timeout: 245 seconds]
adamholmberg has quit [Ping timeout: 255 seconds]
adamholmberg has joined #pypy
dpn` has quit [Ping timeout: 250 seconds]
dpn` has joined #pypy
bsaleil has quit [Ping timeout: 256 seconds]
dpn` has quit [Ping timeout: 250 seconds]
dpn` has joined #pypy