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
[Arfrever] has joined #pypy
CrazyPython has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
mattip_ has joined #pypy
<mattip_> _aegis_: I think lib = dlopen(__file__) where file is a top-level dll does expose all the functions, on windows and linux and macos
<mattip_> at least that is the way numpy gets at OpenBLAS functions via the dll that dynamically links to it
<_aegis_> I didn't find a good way to re-export all the functions on windows
<_aegis_> I do have a list of exports as text already
jvesely has joined #pypy
<_aegis_> this would surely be useful to someone else and it's around 10 lines of C to integrate some form of it
mattip_ has quit [Ping timeout: 240 seconds]
CrazyPython has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
tsaka_ has joined #pypy
lritter has quit [Ping timeout: 240 seconds]
lritter has joined #pypy
mattip_ has joined #pypy
altendky has quit [Quit: Connection closed for inactivity]
tsaka_ has quit [Ping timeout: 240 seconds]
tsaka_ has joined #pypy
mattip_ has quit [Quit: Leaving]
tsaka_ has quit [Ping timeout: 245 seconds]
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #pypy
lritter has quit [Ping timeout: 265 seconds]
glyph has quit [Quit: End of line.]
glyph has joined #pypy
<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
jvesely has quit [Quit: jvesely]
tsaka_ has joined #pypy
_whitelogger has joined #pypy
_whitelogger has joined #pypy
tsaka_ has quit [Ping timeout: 245 seconds]
antocuni has joined #pypy
_whitelogger has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
dddddd has joined #pypy
antocuni has joined #pypy
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]
YannickJadoul has joined #pypy
_whitelogger has joined #pypy
CrazyPython has joined #pypy
CrazyPyt_ has joined #pypy
CrazyPython has quit [Ping timeout: 245 seconds]
CrazyPyt_ has quit [Ping timeout: 252 seconds]
CrazyPython has joined #pypy
CrazyPyt_ has joined #pypy
CrazyPython has quit [Ping timeout: 276 seconds]
CrazyPyt_ has quit [Ping timeout: 252 seconds]
CrazyPython has joined #pypy
<kenaan> mattip default 08b530929d7b /rpython/rlib/rsre/rsre_core.py: MAXCODE is 65535 when CODESIZE is 2 (win32)
<kenaan> mattip default f18d4c3047ec /rpython/: use strigified _MSC_VER for the compiler version, like CPython
<kenaan> mattip msvc-discovery f53664167f74 /rpython/: simplify, use only setuptools.msvc to find msvc compilers
<kenaan> mattip code_page-utf8 a55b2a60b689 /pypy/: start to implement code_page and oem encoder/decoder
<kenaan> mattip code_page-utf8 b27e7cddb1e0 /: test, implement code page encoding/decoding via a new unicodehelper_win32.py
<kenaan> mattip py3.6 e01187956256 /: merge default into py3.6
jacob22 has joined #pypy
CrazyPython has quit [Read error: Connection reset by peer]
YannickJadoul has quit [Quit: Leaving]
jacob22 has quit [Ping timeout: 240 seconds]