cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | mac OS and Fedora are not Windows
adamholmberg has quit [Ping timeout: 252 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
<mdash> I'm getting "invalid free()" errors from rffi for non-obvious reasons. suggestions for diagnosing stuff? (Removing one free() results in a similar error showing up in another)
jcea has quit [Quit: jcea]
lritter has quit [Ping timeout: 264 seconds]
lritter has joined #pypy
dddddd has quit [Remote host closed the connection]
<mdash> nope, i was wrong, it's coming from __exit__ on an lltype.scoped_alloc
marself has joined #pypy
Guest54622 has joined #pypy
ronan has quit [Ping timeout: 252 seconds]
tayfun26 has joined #pypy
ronan has joined #pypy
_aegis_ has quit [Ping timeout: 252 seconds]
jamesaxl has joined #pypy
marself has quit [Quit: WeeChat 1.9.1]
_aegis_ has joined #pypy
speeder39_ has quit [Quit: Connection closed for inactivity]
Zaab1t has joined #pypy
<fijal> mdash: I would need to see your whole code
jamesaxl has quit [Ping timeout: 272 seconds]
lastmikoi has joined #pypy
Guest54622 has quit [Ping timeout: 252 seconds]
tayfun26 has quit [Quit: tayfun26]
tayfun26 has joined #pypy
tayfun26 has quit [Quit: tayfun26]
tayfun26 has joined #pypy
jcea has joined #pypy
jamesaxl has joined #pypy
antocuni has joined #pypy
Zaab1t has quit [Ping timeout: 252 seconds]
inad923 has joined #pypy
antocuni has quit [Ping timeout: 264 seconds]
jacob22__ has quit [Remote host closed the connection]
solarjoe4 has quit [Quit: Leaving]
Zaab1t has joined #pypy
Zaab1t has quit [Ping timeout: 252 seconds]
Zaab1t has joined #pypy
solarjoe4 has joined #pypy
antocuni has joined #pypy
Zaab1t has quit [Ping timeout: 240 seconds]
adamholmberg has joined #pypy
jcea has quit [Ping timeout: 264 seconds]
jacob22__ has joined #pypy
adamholmberg has quit [Ping timeout: 268 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 240 seconds]
jcea has joined #pypy
adamholmberg has joined #pypy
jcea has quit [Ping timeout: 252 seconds]
jcea has joined #pypy
Zaab1t has joined #pypy
lritter has quit [Quit: Leaving]
jcea has quit [Read error: Connection reset by peer]
jcea has joined #pypy
tayfun26 has quit [Quit: tayfun26]
zmt00 has joined #pypy
hexa- has quit [Quit: WeeChat 2.3]
hexa- has joined #pypy
antocuni has quit [Ping timeout: 252 seconds]
piem has joined #pypy
mike_ has joined #pypy
mike_ is now known as Guest64224
zmt01 has joined #pypy
zmt00 has quit [Ping timeout: 260 seconds]
marky1991 has joined #pypy
<marky1991> has anyone built cpython on windows in the recent past?
<marky1991> I wanted to play with the long long issue on windows but I'm having a hard time figuring out how to get the compiler setup
<mattip> marky: there is PCbuild/build.bat htat does it all for you
<mattip> you need the proper MSVC compiler
jamesaxl has joined #pypy
<mattip> marky1991: also see PCbuild/find_msbuild.bat
inad923 has quit [Ping timeout: 246 seconds]
[Arfrever] has quit [Remote host closed the connection]
<mattip> it seems for unicode-utf8 even on windows sys.maxunicode should be 0x10ffff not 0xffff
zmt00 has joined #pypy
<mattip> is that statement correct?
zmt01 has quit [Ping timeout: 240 seconds]
Guest64224 has quit [Ping timeout: 246 seconds]
dddddd has joined #pypy
<ronan> mattip: yes, on py3, sys.maxunicode is 0x10ffff everywhere
Zaab1t has quit [Quit: bye bye friends]
<piem> hi! i have some questions related to cffi (and pypy), is here the right place to ask?
<Alex_Gaynor> go for it
<piem> ok. i'm looking at dropping the old and clunky (i wrote it) python generator of aubio to use cffi
<piem> i have a pretty good solution running, but i still have some overhead that i can't seem to get rid of
<piem> i did some measurements, so let me share that first: https://aubio.org/images/cffi_timings_7ZXusR.png
<piem> each row show the avg times to load the module, open a file (100x), and read all samples in it as numpy arrays
<piem> the first 2 where run with python 3.5.3, the last 2 with pypy nightly.
<piem> odd rows are using the old c implementation (https://github.com/aubio/aubio/blob/master/python/ext/py-source.c#L176-L195)
<piem> even rows are using the new python class, that uses aubio_source_do(source_t*, fvec_t*, uint*) through cffi
<piem> i suspect most of the overhead is spent parsing the arguments of that function, which is called from python with:
<piem> `lib.aubio_source_do(self._cinst, self._out._cfvec_out, self._read)`, using only private members of self
<piem> reading the code generated by cffi, it seems no such parsing is required for pypy (how?!)
<piem> and the timings seem to show that too: the reading phase is faster with pypy+cffi than with py-source.c
<piem> oh, and the question is: is there a way i could reduce this overhead? :)
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Read error: Connection reset by peer]
adamholmberg has joined #pypy
DIRT has quit [Ping timeout: 252 seconds]
bbot2 has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
nimaje is now known as Guest55046
nimaje has joined #pypy
Guest55046 has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
marky1991 has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 264 seconds]
graingert is now known as Wednesday
Wednesday is now known as graingert
xorAxAx has quit [Ping timeout: 252 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 245 seconds]