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
ChasedSpade has joined #pypy
ChasedSpade has quit [Read error: Connection reset by peer]
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
zopsi1 has joined #pypy
zopsi1 has quit [Remote host closed the connection]
toaderas is now known as toaderas__
drathir12 has joined #pypy
drathir12 has quit [Remote host closed the connection]
dddddd has quit [Remote host closed the connection]
lritter_ has joined #pypy
lritter has quit [Ping timeout: 240 seconds]
jcea has quit [Quit: jcea]
ihavoc has joined #pypy
ihavoc has quit [Remote host closed the connection]
forgottenone has quit [Remote host closed the connection]
forgottenone has joined #pypy
_whitelogger has joined #pypy
cjwelborn has quit [Remote host closed the connection]
cjwelborn has joined #pypy
speeder39 has joined #pypy
<kenaan> mattip unicode-utf8-py3 fcc25b6ffd38 /pypy/: cleanups: typos, test adjustements, encode/decode disambiguation
<kenaan> mattip unicode-utf8-py3 dacb894c61e0 /pypy/interpreter/unicodehelper.py: change for utf8 not unicode
<kenaan> mattip unicode-utf8-py3 215aee0a5be7 /pypy/interpreter/unicodehelper.py: add mising decode_surrogateescape, implement more of encode_error_handler
<kenaan> mattip unicode-utf8-py3 e0e08fb400aa /pypy/module/_codecs/interp_codecs.py: whoops
<kenaan> mattip unicode-utf8-py3 2b95af3762f9 /pypy/objspace/std/: change default values
<kenaan> mattip unicode-utf8-py3 2b6c2810e8bc /pypy/objspace/std/bytesobject.py: bytes is already utf8, no need to decode
ilera has joined #pypy
ilera has quit [Remote host closed the connection]
forgottenone has quit [Ping timeout: 256 seconds]
_whitelogger has joined #pypy
fford20 has joined #pypy
fford20 has quit [Ping timeout: 244 seconds]
speeder39 has quit [Quit: Connection closed for inactivity]
antocuni has joined #pypy
glyph has quit [Ping timeout: 268 seconds]
glyph has joined #pypy
jamesaxl has joined #pypy
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
johanfforsberg has joined #pypy
lritter_ has quit [Quit: Leaving]
oberstet has joined #pypy
antocuni has quit [Ping timeout: 248 seconds]
johanfforsberg has quit [Ping timeout: 272 seconds]
oberstet has quit [Ping timeout: 248 seconds]
kenaan has quit [Ping timeout: 240 seconds]
andirc508923 has joined #pypy
andirc508923 has quit [Read error: Connection reset by peer]
dddddd has joined #pypy
johncc3 has joined #pypy
johncc3 has quit [Client Quit]
johncc3 has joined #pypy
<johncc3> Hi all. I'm doing first steps using cffi... I'm trying to wrap a library, and, in 'cffi.cdef' included definitions of some of the functions of the library. In the verify step, I included the name of the header file.
<johncc3> On running, it reports that the function names are not declared, even though I notice that the #include of the library is actually in the generated .c file.
<johncc3> Can anyone indicate what could be wrong? Or point me to a real-world example?
tx9 has joined #pypy
altendky has quit [Quit: Connection closed for inactivity]
tx9 has quit [Read error: Connection reset by peer]
forgottenone has joined #pypy
brand09 has joined #pypy
brand09 has quit [Remote host closed the connection]
jcea has joined #pypy
digitalcold15 has joined #pypy
digitalcold15 has quit [Remote host closed the connection]
irinix19 has joined #pypy
irinix19 has quit [Remote host closed the connection]
arigato has joined #pypy
<arigato> johncc3: first, you should not use "ffi.verify()" any more
arigato has quit [Client Quit]
<johncc3> arigato, Thanks... I have seen the examples in the documentation
<mattip> johncc3: can you post (not here, on a pastebin or gist) what you are doing?
arigato has joined #pypy
<johncc3> mattip, I think so, though to test you'll have to install the library I'm trying to wrap. I'll make a reduced version of my program
<arigato> johncc3: I'm refactoring that overview.html page right now; I'm not too happy with its current state
<johncc3> arigato, mattip : Here's a minimal version: https://paste.pound-python.org/show/eJuu9J2VIsRR02yvz4im/
<johncc3> The question remains: How do I instruct CFFI to link with -lcomedi?
<arigato> johncc3: as I said above, please try not to use ffi.verify(). it's a long-deprecated, almost undocumented way to use cffi
<johncc3> arigato, yes, In understood that. But I find the examples somewhat confusing (maybe it's the formatting). There are examples of ABI in-line and out-of-line, but for API I found only find out-of-line
<arigato> right. see the last paragraph of that page. you're supposed to use the out-of-line mode, because it avoids various troubles with anything but the simplest examples
<mattip> what happens if you change lines 47-49 to become "ffi.set_source(text-of-comedi.h, libraries=["/usr/lib/libcomedi.so"])"
<mattip> "ffi.compile(verbose=True)"
<mattip> ?
<johncc3> Ok...
<johncc3> NameError: name 'text' is not defined
forgottenone has quit [Ping timeout: 272 seconds]
<johncc3> Isn't that the text included in the cdef above
Harzilein has joined #pypy
<johncc3> mattis, after I moved the cdef text into the set_source, and a couple of minor changes, I have the .so generated.
Harzilein has quit [Remote host closed the connection]
<johncc3> How do I get cffi to generate x86_64 code?
kenaan has joined #pypy
<kenaan> arigo cffi/cffi 549cf1a22e97 /doc/source/overview.rst: Refactor again overview.rst, including all cases in the order that seems to make the most sense to me
<arigato> johncc3: sorry, I don't understand the question. cffi generates C code, and then calls the compiler
<arigato> maybe you want to give additional flags to the compiler, or call the compiler yourself?
<johncc3> arigato, Just me being stupid. I'm doing all this remotely, and didn't remember that the remote machine is an i386 ;-)
<johncc3> Seems everything compiles well. Will make a small test program to see if I can import the result.
oberstet has joined #pypy
johanfforsberg has joined #pypy
<mattip> arigato: the readthedocs builds are not automatically run http://readthedocs.org/projects/cffi/builds
<arigato> mattip: thanks
<arigato> that's expected
<arigato> the docs are updated from https://bitbucket.org/cffi/release-doc/
<arigato> if you or someone else wants to give it a check again, he's welcome
oberstet has quit [Ping timeout: 268 seconds]
<mattip> arigato: definitely an improvement over the previous version
<arigato> ok
Guest15329 has joined #pypy
Guest15329 has quit [Remote host closed the connection]
arigato has quit [Ping timeout: 248 seconds]
<kenaan> mattip unicode-utf8-py3 e5867f1518c9 /pypy/: specify errors, disallow space.text_w(non-unicode) but allow W_Bytes.text_w
<kenaan> mattip unicode-utf8-py3 51e9202ee008 /pypy/: do not special-case surrogateescape
<kenaan> mattip unicode-utf8-py3 631c31e88913 /pypy/interpreter/unicodehelper.py: fix translation of temporary code
<kenaan> mattip unicode-utf8-py3 de720af40556 /pypy/interpreter/astcompiler/fstring.py: whoops
<mattip> at some point I will need to diff unicode-utf8-py3 to unicode-utf8
<mattip> it seems I am making alot of changes
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
bs13 has joined #pypy
bs13 has quit [Remote host closed the connection]
johanfforsberg has quit [Ping timeout: 240 seconds]
johncc3 has quit [Quit: Leaving]
danieljabailey has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]
danieljabailey has joined #pypy
Elwell_ has joined #pypy
Elwell_ is now known as Guest372
Guest372 has quit [Remote host closed the connection]
lritter has joined #pypy