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
YannickJadoul has quit [Quit: Leaving]
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #pypy
<arigato> tos9: that's a case where you need to hack a bit. Two solutions: (1) you detect the version of the library somehow before calling ffi.cdef(), e.g. by doing another ffi1.cdef()/ffi1.set_source()/ffi1.compile()/inspect some attribute
<arigato> or, (2) (I guess this is glyph's suggestion) you don't declare the fields at all, but you write accessor functions in C inside ffi.set_source(), and these accessor function can use #ifdefs and either really access the field or return an error
camelCaser has quit [Quit: ZNC 1.7.4 - https://znc.in]
camelCaser has joined #pypy
wleslie has quit [Ping timeout: 260 seconds]
wleslie has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
mwhudson has quit [Ping timeout: 246 seconds]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm is now known as Guest9769
Guest9769 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
xcm has joined #pypy
tazle___ has quit [Quit: leaving]
tazle has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<tos9> ah accessor functions in *C* got it, sorry
<tos9> arigato: thanks, that's helpful
lritter has joined #pypy
dddddd has joined #pypy
xcm has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
xcm has joined #pypy
DarkUranium has quit [Quit: ZNC 1.7.4 - https://znc.in]
_whitelogger has joined #pypy
DarkUranium has joined #pypy
adamholmberg has joined #pypy
DarkUranium has quit [Remote host closed the connection]
DarkUranium has joined #pypy
DarkUranium has quit [Remote host closed the connection]
adamholmberg has quit [Remote host closed the connection]
i9zO5AP has quit [Ping timeout: 265 seconds]
adamholmberg has joined #pypy
i9zO5AP has joined #pypy
i9zO5AP has quit [Ping timeout: 240 seconds]
i9zO5AP has joined #pypy
adamholmberg has quit [Remote host closed the connection]
Ai9zO5AP1 has joined #pypy
i9zO5AP has quit [Ping timeout: 268 seconds]
adamholmberg has joined #pypy
Ai9zO5AP1 has quit [Ping timeout: 268 seconds]
Ai9zO5AP1 has joined #pypy
adamholmberg has quit [Remote host closed the connection]
Ai9zO5AP1 has quit [Ping timeout: 260 seconds]
Ai9zO5AP has joined #pypy
adamholmberg has joined #pypy
Ai9zO5AP has quit [Excess Flood]
Ai9zO5AP has joined #pypy
Ai9zO5AP has quit [Ping timeout: 268 seconds]
Ai9zO5AP has joined #pypy
Taggnostr has quit [Remote host closed the connection]
Taggnostr has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
jvesely has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
<mattip> it turns out windows has a 260 character limit on filenames, so that is why the extra_tests/cffi_tests/cffi0/test_zdistutils tests are failing
<mattip> I tried changing a registry setting on the build slave, let's see if it helps
<kenaan> mattip default 433283f3338b /pypy/module/cpyext/include/: issue 3141 part 2: use Py_TYPE(op) instead of (ob)->ob_type
<kenaan> mattip py3.6 def680385695 /: merge default into py3.6
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
jvesely has quit [Quit: jvesely]
micisuta has quit [Ping timeout: 268 seconds]
micisuta has joined #pypy
i9zO5AP has joined #pypy
jvesely has joined #pypy
Ai9zO5AP_ has joined #pypy
Ai9zO5AP has quit [Ping timeout: 258 seconds]
Ai9zO5AP_ has quit [Client Quit]
jvesely has quit [Client Quit]
i9zO5AP has quit [Ping timeout: 265 seconds]
kanaka has quit [Remote host closed the connection]
TheNewbie has joined #pypy
TheNewbie has quit [Read error: Connection reset by peer]
<mattip> nope, I can't get filenames with more than 260 chars
<kenaan> mattip cffi/cffi[shortername] 6fb2ee84a9da /: tweak how to pass define_macros, shorten module name to not go over 260 chars
Ai9zO5AP has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
<kenaan> cfbolz py3.7 0882834dcbb1 /pypy/interpreter/astcompiler/: start working on expression unparsing, needed for PEP 563, postponed evaluation of type annotations
lritter has quit [Quit: Leaving]