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
<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