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
tsaka_ has quit [Ping timeout: 256 seconds]
lritter has quit [Ping timeout: 265 seconds]
lritter has joined #pypy
lritter has quit [Quit: Leaving]
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
inhahe has joined #pypy
jcea has quit [Ping timeout: 244 seconds]
jcea has joined #pypy
alexge50 has quit [Read error: Connection reset by peer]
alexge50 has joined #pypy
jcea has quit [Quit: jcea]
dddddd has quit [Ping timeout: 256 seconds]
_whitelogger has joined #pypy
ionelmc has quit [Quit: Connection closed for inactivity]
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
_whitelogger has joined #pypy
astronavt has quit [Quit: ...]
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
astronavt has joined #pypy
tsaka_ has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5299 [mattip: force build, py3.6]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5299 [mattip: force build, py3.6]
oberstet has joined #pypy
<mattip> huh? rpython does not support catching an AttributteError raised from getattr(module, 'attribute')?
oberstet_ has joined #pypy
oberstet has quit [Ping timeout: 256 seconds]
tsaka_ has quit [Ping timeout: 256 seconds]
BPL has joined #pypy
thrnciar has joined #pypy
<cfbolz> mattip: no, unfortunately not
thrnciar has quit [Ping timeout: 256 seconds]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
dddddd has joined #pypy
tsaka_ has joined #pypy
tsaka_ has quit [Ping timeout: 264 seconds]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5300 [mattip: force build, py3.6]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5300 [mattip: force build, py3.6]
<mattip> on windows, the result of call_rposix(rposix.listdir, path) can be either a list of str or a list of unicode
<mattip> depending on whether path is a str or a unicode
<mattip> where is the correct place to convert that to utf8?
BPL has quit [Quit: Leaving]
gour has joined #pypy
<gour> arigo: hello, you're one of the cffi authors?
<cfbolz> he is, but there are also other people with cffi expertise around, so you could just ask your question
<cfbolz> gour: ^^
<gour> ok
<gour> i plan to work in wxpython app and have to bind 3rd party C lib
<gour> moreover, i'd like to use Nuitka and was discussing with its author to support cffi instead of ctypes - 'see "Future" section here: https://nuitka.net/pages/overview.html
<gour> now he told me (on Gitter 'Nuitka-chat') that "What I will need there, is to know, if there is access to the objects build after parsing the C file, to make the call...I think, also convincing cffi to include to original information in what they create, would also help Nuitka to inline binding extension. Imagine not loading your_lib.so in your project, but instead just inlining the few bindings actually used. Not only speed, but size, since this wrapper
<gour> This could be so cool for the eco system, it hurts to not have it already."
<gour> code, can be a lot, and when you call a function with only a constant string, why create the object, and conversion to c char, at all.
<gour> so, wonder what do you think about that proposal?
<cfbolz> heh, that *is* a question for arigo :-)
<gour> ok ;)
<mattip> by "original information" do you mean something beyond the C file created by ffibuilder.emit_c_code?
jacob22 has quit [Read error: Connection reset by peer]
<gour> mattip: personally, i don't know, i'm just transferring info fron Nuitka dev...but will pas the question on
jacob22 has joined #pypy
<mattip> thanks
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
lritter has joined #pypy
thrnciar has joined #pypy
fryguybob has joined #pypy
tos9 has quit [Quit: Bye]
<gour> here is the answer: "I agree, bad wording by me. I am looking for some structure that describes the C signature sufficiently to make all conversions and a call to it.
<gour> The parse result of the ".h" file, and input to code generation for bindings. I would use that to create types to make a call directly. I just want to be a different kind of backend."
xcm has quit [Read error: Connection reset by peer]
astronavt has quit [Quit: ...]
xcm has joined #pypy
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
astronavt has joined #pypy
astronavt has quit [Quit: ...]
astronavt has joined #pypy
tos9 has joined #pypy
astronavt has quit [Quit: ...]
astronavt has joined #pypy
<antocuni> mjacob: do you know if hg-git supports cloning private github repos via https (I need it on windows and I'd like to avoid setting up ssh). I am getting this error: http://paste.openstack.org/show/793721/
<tos9> antocuni: (I don't remember for sure but I think that's actually a GitHub thing? You need a token IIRC -- look for github https basic auth, I think you have to generate an access token and use that)
<tos9> not your password
<antocuni> tos9: ah indeed, it seems I can't clone it even with git
<antocuni> good catch
<antocuni> cool, it justs works now
<antocuni> actually, there were two problems:
<antocuni> 1. when I tried to clone it using my own account, it didn't work because I have 2FA and thus I need a token
<antocuni> 2. when I tried to clone using another account (which is the one I actually need), it didn't work simply because I didn't invite it yet as a collaborator 😂
<antocuni> no, I spoke too fast
<antocuni> now it works when I try to "git clone https://..." (it asks me for username and password), but "hg clone" still fails
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
<tos9> ha, sorry then now I can't help
<tos9> (but I think progress)
lritter has quit [Read error: Connection reset by peer]
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
thrnciar has quit [Ping timeout: 265 seconds]
<tos9> Unrelated, but I finally have a "fully working" CFFI wheel building set up
lritter has joined #pypy
<tos9> Will build wheels via cibuildwheel + an sdist for all interpreters (pypy included obviously) and autoupload to PyPI on release
<mattip> tos9: cool
<mattip> no windows, right?
<tos9> mattip: uh yeah good point, though that's mostly me not wanting to figure out how to install libraw on windows
<tos9> Probably I should try that so I can really claim "full" example...
<mattip> nahh, it's fine. Just wanted to make sure I understood what was going on
* tos9 nods
<tos9> yup
dddddd has quit [Ping timeout: 240 seconds]
astronavt has quit [Quit: ...]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
jcea has joined #pypy
graingert has quit []
graingert has joined #pypy
astronavt has joined #pypy
oberstet_ has quit [Remote host closed the connection]
astronavt has quit [Client Quit]
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
inhahe has quit []
inhahe has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
dddddd has joined #pypy
xcm has quit [Ping timeout: 246 seconds]
xcm has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
xcm is now known as Guest89622
Guest89622 has quit [Killed (weber.freenode.net (Nickname regained by services))]
xcm has joined #pypy
BPL has joined #pypy
BPL has quit [Remote host closed the connection]
<antocuni> once the new numpy is out, we should really make a blog post about binary wheels
<antocuni> with links to example projects which are already publishing them
astronavt has joined #pypy
gour has quit [Remote host closed the connection]