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
jcea has quit [Ping timeout: 260 seconds]
lritter has quit [Ping timeout: 256 seconds]
lritter has joined #pypy
oberstet has quit [Remote host closed the connection]
_whitelogger has joined #pypy
forgottenone has joined #pypy
marvin_ has quit [Remote host closed the connection]
marvin__ has joined #pypy
proteusguy has quit [Remote host closed the connection]
swills has quit [Ping timeout: 240 seconds]
swills has joined #pypy
swills has quit [Ping timeout: 240 seconds]
swills has joined #pypy
swills has quit [Ping timeout: 246 seconds]
swills has joined #pypy
swills has quit [Ping timeout: 246 seconds]
swills has joined #pypy
swills has quit [Ping timeout: 240 seconds]
jcea has joined #pypy
swills has joined #pypy
jcea has quit [Quit: jcea]
jcea has joined #pypy
proteusguy has joined #pypy
Dejan has quit [Ping timeout: 246 seconds]
<cfbolz> mattip_, arigo: so with my hack (of sometimes popping two vmprof frames) the crash is fixed
<LarstiQ> cfbolz: how do you determine when to do that?
<cfbolz> LarstiQ: at the place where we had the failing assert, I check whether one frame up has the correct code object and then I pop twice. if not, it still crashes
<cfbolz> it's a hack, but I think it's better than crashing the vm
<LarstiQ> right
oberstet has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
mattip_ is now known as mattip
<mattip> LarstiQ: I don't think that particular problem is relevant for PyPy, we have a pure-python _ctypes module
<fijal> yay memory safe languages
<fijal> but also, if you control ctype.from_param argument, surely you can crash something?
<cfbolz> weeell, python is only safeish
<cfbolz> too many loopholes
<fijal> like, when not using ctypes for example?
<fijal> I guess you can end up with a sane path to that function call
<cfbolz> fijal: cffi? ;-)
<fijal> cfbolz: we have a bug in sketchup ruby GC (probably) where an object of *completely random type* lands somewhere
<cfbolz> argh
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7501 [Carl Friedrich Bolz-Tereick: force build, py3.8]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7501 [Carl Friedrich Bolz-Tereick: force build, py3.8]
oberstet has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
amirouche has joined #pypy
<amirouche> hello is there a howto use cffi with poetry package manager?
<mattip> amirouche: I doubt anyone here uses poetry. What have you tried, what did you expect, and what happened instead?
<amirouche> I tried nothing :)
<amirouche> poetry reinvent many things compared to setup.py
<amirouche> I mean does differently.
<mattip> I still don't understand what your goal is
<mattip> cfbolz: sorry, I missed the notification that you were coding
<cfbolz> mattip: poetry is another python packaging thingie. how do you package a cffi library with it?
<cfbolz> mattip: oops, maybe I should ping here consistently?
<amirouche> mattip: I try to create bindings for C library and package it with poetry (which does rely on setup.py)
<cfbolz> I think the docs probably should contain an example. but first somebody needs to figure out how it works :-(
<mattip> "Note that, at the moment, only pure python wheels are supported."
<mattip> as far as I know, the only way to build a wheel for c-extension modules is with setup,py
<mattip> even things like scikit-build use setup.py underneath
<amirouche> tx matt
forgottenone has quit [Quit: Konversation terminated!]