cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
<energizer> can anybody explain this? i dont get the argument and the referenced email doesnt clear it up for me
adamholmberg has quit [Ping timeout: 244 seconds]
<njs> energizer: I think it's just "python doesn't have any concept of sublocal scopes, so creating it just for this would be a lot"
<njs> I mean ultimately the rationale is "because Guido liked it better this way", and Guido has spent 25 years trying to keep python's scoping system as simple as possible
oberstet has joined #pypy
speeder39 has joined #pypy
dddddd has quit [Remote host closed the connection]
<energizer> njs: isnt that what [x for x in [1,2,3]] is? x doesnt leak in py3. why should y:= leak?
<njs> energizer: comprehensions *technically* don't involve a sublocal scope, but rather a closure, I guess
<njs> however I think := has some complicated hack to allow it to leak from out of comprehensions?
<energizer> njs: isnt that introducing inconsistency with respect to the principle "comprehensions dont leak"
<njs> please note that I am not one of the PEP authors or advocates, I'm just reporting
<energizer> njs: so two conflicting principles "comprehensions dont leak" and "no sublocal scopes"
<energizer> njs: i dont see *practical* (non-principle) benefits of siding with the second principle here (at least, the [total := total + v for v in values] example seems misguided)
<njs> I think historically part of the complication is that for *generator* expressions, the existence of a separate frame is actually part of the language
<njs> and you also want [x for x in ...] to be equivalent to list(x for x in ...)
<energizer> hmm ill have to think about that
<njs> (this is my attempt to reconstruct why "comprehensions don't leak" exists in the first place, nothing to do with pep 572)
<energizer> i thought that was a practicality thing -- it's annoying that they'd leak
asmeurer has joined #pypy
speeder39 has quit [Disconnected by services]
oberstet has quit [Ping timeout: 260 seconds]
buhrmi has joined #pypy
buhrmi has quit [Remote host closed the connection]
willemb has joined #pypy
willemb has quit [Remote host closed the connection]
catern has quit [Ping timeout: 252 seconds]
catern has joined #pypy
realitix has joined #pypy
realitix has quit [Remote host closed the connection]
realitix has joined #pypy
tayfun26 has joined #pypy
mattip has quit [Ping timeout: 252 seconds]
mattip has joined #pypy
antocuni has joined #pypy
realitix has quit [Ping timeout: 268 seconds]
themsay has quit [Ping timeout: 246 seconds]
inad922 has joined #pypy
antocuni has quit [Ping timeout: 252 seconds]
inad922 has quit [Ping timeout: 272 seconds]
PossumwL has joined #pypy
PossumwL has quit [K-Lined]
inad922 has joined #pypy
realitix has joined #pypy
oberstet has joined #pypy
demonbane has joined #pypy
demonbane has quit [Remote host closed the connection]
jacob22__ has quit [Read error: Connection reset by peer]
multi_iodI has joined #pypy
multi_iodI has quit [Remote host closed the connection]
dddddd has joined #pypy
inad922 has quit [Ping timeout: 240 seconds]
marky1991_2 has joined #pypy
khaledez has joined #pypy
marky1991_2 has left #pypy [#pypy]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
khaledez has quit [Quit: khaledez]
lritter has joined #pypy
trinityhex316d has joined #pypy
trinityhex has joined #pypy
trinityhex has quit [Remote host closed the connection]
trinityhex has joined #pypy
trinityhex316d has quit [Quit: Page closed]
pksmY has joined #pypy
pksmY has quit [K-Lined]
realitix has quit [Ping timeout: 244 seconds]
trinityhex has quit [Remote host closed the connection]
trinityhex has joined #pypy
trinityhex has quit [Remote host closed the connection]
adamholmberg has joined #pypy
waldhar has joined #pypy
Zaab1t has joined #pypy
antocuni has joined #pypy
Rhy0lite has joined #pypy
redj has quit [Ping timeout: 252 seconds]
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
adamholmberg has quit [Read error: Connection reset by peer]
sh4rm4^Q has joined #pypy
sh4rm4^Q has quit [Remote host closed the connection]
speeder39 has joined #pypy
mattip has left #pypy ["Leaving"]
danchr has quit [Ping timeout: 272 seconds]
tayfun26 has quit [Quit: tayfun26]
adamholmberg has joined #pypy
danchr has joined #pypy
Lavos has joined #pypy
marky1991 has quit [Ping timeout: 244 seconds]
jacob22__ has joined #pypy
fryguybob has quit [Remote host closed the connection]
marky1991 has joined #pypy
Lavos has quit [Quit: Leaving]
Guest33526 has joined #pypy
Guest33526 has quit [Remote host closed the connection]
lritter has quit [Remote host closed the connection]
marky1991 has quit [Remote host closed the connection]
the_rat has joined #pypy
<the_rat> Hm, any idea what this might be about?
<the_rat> RPython traceback:
<the_rat> File "rpython_jit_metainterp.c", line 1506, in force_virtual
<the_rat> File "pypy_interpreter_1.c", line 61304, in ExecutionContext_leave
<the_rat> File "implement_9.c", line 44987, in call_stub_738
<the_rat> File "rpython_jit_metainterp_2.c", line 44203, in handler_inline_call_ir_v
<the_rat> Fatal RPython error: AssertionError
<Alex_Gaynor> Are you by chance able to reproduce this easily?
<Alex_Gaynor> It's a JIT bug of some sort, but more than that it's a bit hard to say
jacob22__ has quit [Remote host closed the connection]
matthieu has joined #pypy
CountryNerd has joined #pypy
CountryNerd has quit [Quit: CountryNerd]
<jiffe> so I'm curious about using python cffi to obtain the structure of a C struct and build further code based on that
matthieu has quit [Quit: Page closed]
<jiffe> I created a test program and this seems to work fine, the problem I think is what goes in this cdef
matthieu has joined #pypy
<cfbolz> the_rat: yes, this is a jit bug
<jiffe> I'd like to be able o just reference the header files that contain the structures which should compile fine but I wouldn't be able to extract the struct definitions themselves this way to create the necessary cdef string
<the_rat> Maybe something to do with memory limits but I cannot reproduce this easily at all
<cfbolz> :-(
matthieu_ has joined #pypy
speeder39 has quit [Quit: Connection closed for inactivity]
matthieu has quit [Quit: Page closed]
matthieu_ has quit [Quit: Page closed]
antocuni has quit [Ping timeout: 260 seconds]
inhahe has quit []
inhahe has joined #pypy
marvin_ has quit [Remote host closed the connection]
marvin_ has joined #pypy
jamesaxl has quit [Ping timeout: 246 seconds]
marky1991 has joined #pypy
speeder39 has joined #pypy
marky1991 has quit [Ping timeout: 246 seconds]
Zaab1t has quit [Quit: bye bye friends]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
redj has joined #pypy
jamesaxl has joined #pypy
Rhy0lite has quit [Quit: Leaving]
asmeurer has quit [Quit: asmeurer]
ESphynx has quit [Read error: Connection reset by peer]
oberstet has quit [Ping timeout: 244 seconds]
antocuni has joined #pypy
antocuni has quit [Ping timeout: 252 seconds]
speeder39 has quit [Quit: Connection closed for inactivity]
dowdleSv has joined #pypy
speeder39 has joined #pypy
dowdleSv has quit [Remote host closed the connection]
paniq has joined #pypy
paniq has left #pypy [#pypy]
asmeurer__ has joined #pypy
rubdos has quit [Ping timeout: 252 seconds]
negaduck has joined #pypy
alankilaal has joined #pypy
alankilaal has quit [Remote host closed the connection]
negaduck has quit [Remote host closed the connection]
asmeurer__ has quit [Quit: asmeurer__]
rubdos has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 272 seconds]
localh0s1 has joined #pypy
localh0s1 has quit [Remote host closed the connection]