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
<kenaan>
arigo default 789b5384030f /lib_pypy/_cffi_ssl/_stdssl/__init__.py: Fix the error message: point to the right "cd" directory
<kenaan>
arigo default 6b181a284b2c /: update to cffi/eebc6733b38d
<arigato>
_aegis_: sorry, you have to give a better justification for that to be included in cffi. right now, on Windows, ffi.dlopen() works like LoadLibraryEx and as far as I know Windows the model is quite different from Linux
<arigato>
when programming for Windows, you *never* have to do anything like "I'm looking for a function named foo(), but I'm not sure in which DLL it is"
<arigato>
this said I understand the motivation for cross-platform developments that start on Posix and also want to work on Windows
<arigato>
maybe we could have ffi.dlopen(library_backend_object), where the object you pass is anything with a given small API, maybe just a method .dlsym(name)
<arigato>
and an optional .close()
<arigato>
maybe the method could be .load_function(function_type, name)
<arigato>
then you're free to implement whatever lookup you want, and you can still use the ffi.dlopen() logic to bind it transparently to a ffi object to get the function types right
<arigato>
might be useful for other things, like have an ABI cffi module where trying to get function lib.old_stuff() raises a warning but still works
jacob22_ has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
jcea has joined #pypy
tsaka_ has joined #pypy
dddddd has quit [Ping timeout: 245 seconds]
dddddd has joined #pypy
jvesely has joined #pypy
mattip_ has joined #pypy
jacob22 has quit [Ping timeout: 268 seconds]
<mattip_>
any idea why all the pypyjit tests are failing on aarch64?
<mattip_>
"bad marshal data (unknown type code 95)"
<mattip_>
on py3.6
waldhar has joined #pypy
CrazyPython has joined #pypy
mattip_ has quit [Ping timeout: 240 seconds]
lritter has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
<arigato>
mattip (logs): no clue why it only occurs on aarch64, but maybe try to catch OperationError as e, check with e.match() if it's an app-level ValueError, and if so, recompile the sources too (by throwing IOError at pypy/module/_frozen_importlib/moduledef.py:68) ?
YannickJadoul has joined #pypy
mattip_ has joined #pypy
mattip_ has quit [Quit: Leaving]
YannickJadoul has quit [Ping timeout: 240 seconds]