antocuni changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "PyPy: the Gradual Reduction of Magic (tm)"
Hasimir has quit [Read error: Connection reset by peer]
Hasimir has joined #pypy
tbodt has quit [Remote host closed the connection]
mwhudson has quit [Remote host closed the connection]
redj has quit [Remote host closed the connection]
mwhudson has joined #pypy
mwhudson has joined #pypy
mwhudson has quit [Changing host]
ulope has quit [Ping timeout: 260 seconds]
ulope has joined #pypy
energizer has joined #pypy
<fijal>
fail fail fail
marr has joined #pypy
the_drow has joined #pypy
inad922 has joined #pypy
the_drow has quit [Ping timeout: 240 seconds]
energizer has quit [Quit: Leaving]
antocuni has joined #pypy
the_drow has joined #pypy
the_drow has quit [Remote host closed the connection]
drolando has quit [Remote host closed the connection]
drolando has joined #pypy
inad922 has quit [Ping timeout: 276 seconds]
solarjoe4 has joined #pypy
<solarjoe4>
arigato, you in?
<fijal>
solarjoe4: I think he's gone for today, how can I help you
<fijal>
?
<solarjoe4>
maybe...let's try :)
<solarjoe4>
i am reading a buffer using buf = ffi.buffer(opp[0].ResultsI, buf_size)
<solarjoe4>
from there to numpy using res_buf = np.frombuffer(buf, dtype=dtype_struct)
<solarjoe4>
the resulting array is stored in a dictionary. at a later stage in another module i am trying to read the key with the array and python crashes.
<solarjoe4>
Is the buffer somehow lost? how long is it alive?
<solarjoe4>
a solution would be to .copy() the numpy arrays but they are large... :)
<njs>
res_buf should be holding a reference to buf
<njs>
and ffi.buffer keeps alive whatever you pass to it, *if* the object you pass to it is something that cffi thinks owns the memory
<njs>
but maybe opp[0].ResultsI is merely borrowing memory from opp or whatever
<njs>
so you might need to keep a reference to opp around
<solarjoe4>
yes, that might be the problem, this is freed I guess
<solarjoe4>
ok, i will look into this, thanks!
antocuni has quit [Ping timeout: 256 seconds]
lritter has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
Masklinn has joined #pypy
fryguybo1 has joined #pypy
fryguybob has quit [Ping timeout: 255 seconds]
antocuni has joined #pypy
dddddd has joined #pypy
Rhy0lite has joined #pypy
adamholmberg has joined #pypy
inad922 has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 256 seconds]
adamholmberg has joined #pypy
gclawes has quit [Quit: leaving]
inad922 has quit [Ping timeout: 240 seconds]
solarjoe4 has quit [Quit: Leaving]
tayfun26 has quit [Remote host closed the connection]
inad922 has joined #pypy
jcea has joined #pypy
<nanonyme>
arigato, FWIW my boss will probably start complaining to me soon unless I get a CFFI release with the unicode support :(
jcea has quit [Ping timeout: 260 seconds]
nopf has joined #pypy
jcea has joined #pypy
<fijal>
nanonyme: hi, I'm sorry, but we're just open source volunteers here
<fijal>
nanonyme: I can send you a support invoice, if you want to have any SLA
marky1991 has joined #pypy
infernix has quit [Ping timeout: 252 seconds]
Masklinn has quit []
john51 has quit [Remote host closed the connection]
john51 has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
<nanonyme>
:)
<nanonyme>
Meh, they'd probably just tell me to move back to ctypes rather than paying anything
raynold has joined #pypy
<nanonyme>
fijal, we were anyway just talking on Saturday whether I should roll my own build or wait; it's not really life or death as such
<fijal>
Well armin is busy and might not be available for a few days fyi
<nanonyme>
That's fine
<nanonyme>
I'll just do my own build and wait for the real release then
<tumbleweed>
that sounds sensible
Masklinn has joined #pypy
inad922 has quit [Ping timeout: 255 seconds]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marr has quit [Ping timeout: 260 seconds]
<kenaan_>
cfbolz guard-compatible 3f9f732b42d0 /rpython/jit/metainterp/optimizeopt/bridgeopt.py: temporary debug prints to figure out why heap knowledge gets lost
<kenaan_>
cfbolz guard-compatible 4db603258cdc /rpython/jit/metainterp/: simplify optimizer interface to guard-compat. also add more debug prints
<kenaan_>
cfbolz guard-compatible 25fb71c78772 /rpython/jit/metainterp/optimizeopt/bridgeopt.py: log the guard address too
<kenaan_>
cfbolz guard-compatible 5b83d5703851 /rpython/jit/metainterp/: test and fix: deal with quasiimmut correctly
Masklinn has quit []
infernix has joined #pypy
<nanonyme>
fijal, don't get me wrong, I've been really surprised getting the bugs I was beating my head at squished so fast and I really do appreciate the volunteer work invested in all of this. I'd consider contributing in CFFI myself if I didn't get an instant panic attack of Python C API
tbodt has joined #pypy
oberstet has quit [Ping timeout: 255 seconds]
antocuni has quit [Ping timeout: 268 seconds]
gclawes has joined #pypy
Hasimir has quit [Read error: Connection reset by peer]
Hasimir has joined #pypy
Arfrever has joined #pypy
kipras`away is now known as kipras
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
inad922 has joined #pypy
inad922 has quit [Ping timeout: 240 seconds]
inad922 has joined #pypy
energizer has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
tbodt has quit [Client Quit]
forgottenone has quit [Remote host closed the connection]
tbodt has joined #pypy
tbodt has quit [Client Quit]
marr has joined #pypy
inad922 has quit [Ping timeout: 256 seconds]
mattip has joined #pypy
<kenaan_>
mattip throw-away 2956c36a5584 /rpython/translator/platform/windows.py: try to fix missing path name on buildbot