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
string has quit [*.net *.split]
altendky has quit [*.net *.split]
EWDurbin has quit [*.net *.split]
agronholm has quit [*.net *.split]
nimaje has quit [*.net *.split]
agronholm has joined #pypy
nimaje has joined #pypy
string has joined #pypy
EWDurbin has joined #pypy
altendky has joined #pypy
dzamo[m] has quit [Read error: Connection reset by peer]
toad_polo has quit [Remote host closed the connection]
astrojl_matrix has quit [Read error: Connection reset by peer]
the_drow[m] has quit [Read error: Connection reset by peer]
the_drow[m] has joined #pypy
dzamo[m] has joined #pypy
toad_polo has joined #pypy
astrojl_matrix has joined #pypy
dje_ has quit [Quit: This computer has gone to sleep]
lritter has quit [Ping timeout: 256 seconds]
lritter has joined #pypy
jcea has quit [Quit: jcea]
dmalcolm_ has quit [Remote host closed the connection]
dmalcolm_ has joined #pypy
forgottenone has joined #pypy
slavfox has joined #pypy
otisolsen70 has joined #pypy
tsaka__ has joined #pypy
<rjarry> is there a way to preserve the sys.set_trace() in @ffi.def_extern functions?
<rjarry> I have the feeling it is not
<rjarry> neither pdb nor test coverage are working
lritter has quit [Quit: Leaving]
tsaka__ has quit [Ping timeout: 265 seconds]
<arigo> rjarry: "import pdb; pdb.set_trace()" works fine for me when put in a @ffi.def_extern function
<arigo> you will have to be more precise
<rjarry> arigo: yes but when debugging a program from the start, a breakpoint set into a @ffi.def_extern function will never be reached
<rjarry> as if the set_trace function inserted by pdb is "removed" when the ffi_backend module calls the python callback
<rjarry> "removed" or "ignored"
<rjarry> I suspect this because test code coverage does not report anything in @ffi.def_extern functions although I am 100% certain the tests are using this code
<arigo> sys.settrace() works fine too on a simple example. Can you come up with a complete example?
tsaka__ has joined #pypy
<rjarry> I'll see if I did not dreamed this
<arigo> maybe there is multithreading fun, like the settrace() of the wrong thread is used
<rjarry> ah yes
<rjarry> there is
<rjarry> note that the threads in questions are created by the C library
<rjarry> question*
<arigo> the C library creates a thread and calls a ffi.def_extern in that new thread? then of course there is no sys.settrace() running in that thread
<rjarry> sad
<arigo> I'm not sure how pdb is supposed to work
<arigo> maybe it just doesn't work at all with threads
<arigo> if you make a new thread in Python and call a function in that thread, does a previously set breakpoint gets triggered?
<rjarry> let me check
ronan has quit [Ping timeout: 272 seconds]
<rjarry> arigo: no it does not work :)
forgottenone has quit [Ping timeout: 264 seconds]
otisolsen70 has quit [Quit: Leaving]
tsaka__ has quit [Ping timeout: 240 seconds]
andi- has quit [Ping timeout: 246 seconds]
andi- has joined #pypy
tsaka__ has joined #pypy
todda7 has joined #pypy
tsaka__ has quit [Read error: Connection reset by peer]
todda7 has quit [Client Quit]
todda7 has joined #pypy
rjarry has quit [Remote host closed the connection]
rjarry has joined #pypy
<atomizer> in a similar situation i used the remote_pdb module to abstract away from the whole process/thread context
dje_ has joined #pypy
<atomizer> oh it wasn't from inside of def_extern, nevermind
dje_ has quit [Ping timeout: 240 seconds]
ronan has joined #pypy
ronan is now known as Guest33239
Rhy0lite has joined #pypy
BPL has joined #pypy
Guest33239 is now known as ronan
<arigo> rjarry: ok
<arigo> blame python's core devs for working on adding an infinite list of language features every release but not caring about the tooling around it, I guess
<rjarry> hehe
<rjarry> time to switch to rust
<rjarry> (lol)
<simpson> If Rust's compiler gets stable and fast enough, then yeah, I'm ready to give it a serious try. OCaml has been nice recently, too.
jacob22_ has joined #pypy
jacob22 has quit [Remote host closed the connection]
rubdos has quit [Ping timeout: 256 seconds]
rubdos has joined #pypy
otisolsen70 has joined #pypy
otisolsen70_ has joined #pypy
otisolsen70 has quit [Ping timeout: 240 seconds]
otisolsen70_ has quit [Quit: Leaving]
Taggnostr has quit [Remote host closed the connection]
Taggnostr has joined #pypy
xcm has quit [Remote host closed the connection]
speeder39_ has joined #pypy
BPL has quit [Quit: Leaving]
BPL has joined #pypy
jcea has joined #pypy
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
_whitelogger has joined #pypy
speeder39_ has quit [Quit: Connection closed for inactivity]
lritter has joined #pypy