cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
lritter_ has joined #pypy
dddddd has quit [Remote host closed the connection]
jamesaxl has quit [Quit: WeeChat 2.1]
speeder39 has joined #pypy
jacob22 has quit [Ping timeout: 256 seconds]
jacob22 has joined #pypy
hotpot33 has joined #pypy
hotpot33 has quit [Ping timeout: 264 seconds]
hotpot33 has joined #pypy
lritter__ has joined #pypy
lritter_ has quit [Ping timeout: 264 seconds]
jamesaxl has joined #pypy
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
hotpot33 has quit [Remote host closed the connection]
speeder39 has quit [Quit: Connection closed for inactivity]
speeder39 has joined #pypy
inhahe__ has joined #pypy
hotpot33 has joined #pypy
speeder39 has quit [Quit: Connection closed for inactivity]
<kenaan> mattip unicode-utf8-py3 bdc01ece02b0 /pypy/: fixes from trying pypy/module/_codecs/test
<cfbolz> mattip, arigato: I'll move the discussion from the issue to pypy-dev, seems a more appropriate place
<cfbolz> (drafting a mail atm)
mattip has quit [Ping timeout: 265 seconds]
dddddd has joined #pypy
_whitelogger has joined #pypy
antocuni has joined #pypy
antocuni has quit [Ping timeout: 245 seconds]
DIRT has quit [Ping timeout: 256 seconds]
dddddd has quit [Remote host closed the connection]
lritter__ has quit [Remote host closed the connection]
lritter has joined #pypy
Taggnostr3 has joined #pypy
Taggnostr2 has quit [Ping timeout: 265 seconds]
Taggnostr3 has quit [Ping timeout: 245 seconds]
Taggnostr2 has joined #pypy
Taggnostr3 has joined #pypy
Taggnostr2 has quit [Ping timeout: 248 seconds]
dddddd has joined #pypy
Taggnostr2 has joined #pypy
Taggnostr3 has quit [Ping timeout: 268 seconds]
Taggnostr3 has joined #pypy
Taggnostr2 has quit [Ping timeout: 256 seconds]
hotpot33 has quit [Remote host closed the connection]
antocuni has joined #pypy
jcea has joined #pypy
dddddd has quit [Remote host closed the connection]
<catern> is there a simpler way to do http://ix.io/1dFV ?
<catern> convert a List[bytes] into a char *const[] in CFFI
<simpson> catern: The cffi docs suggest that `ffi.new("char[]", "".join(args))` should work.
<simpson> catern: BTW have you looked at ffi.buffer()? http://cffi.readthedocs.io/en/latest/ref.html#ffi-buffer-ffi-from-buffer
<catern> I don't think that does the same thing as my function, here, I fixed a mistake in it that may make the intent clearer: http://ix.io/1dG2
<catern> oh, and I used buffer instead of from_buffer again oops, fixed http://ix.io/1dG3
<simpson> Oh, I see. I imagine that the loop would work well. In C, you'd have to copy each buffer separately. You can of course tighten up the loop with enumerate().
<catern> hmm
<catern> but will this run into memory lifetime issues? when I assign argv[i] = (some cdata), is the cdata object preserved or is it immediately turned into a pointer and lose ownership?
<simpson> Not sure TBH. You could find out with ffi.gc().
<catern> oh, and I guess the from_buffer won't necessarily return a null-terminated string, awkawrd
reaperhulk has quit [Quit: ZNC - http://znc.in]
reaperhulk has joined #pypy
sbauman has joined #pypy
mattip has joined #pypy
lritter has quit [Ping timeout: 240 seconds]
antocuni has quit [Ping timeout: 260 seconds]
Eyes is now known as SunDwarf
dddddd has joined #pypy
asmeurer__ has joined #pypy
jcea has quit [Quit: jcea]
DIRT has joined #pypy
ceridwen has quit [Read error: Connection reset by peer]
ceridwen has joined #pypy
tbodt has joined #pypy
tbodt has quit [Quit: Textual IRC Client: www.textualapp.com]
tbodt has joined #pypy
jcea has joined #pypy
vilius has quit [Read error: Connection reset by peer]
vilius has joined #pypy
danieljabailey has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]
danieljabailey has joined #pypy
jamesaxl has quit [Ping timeout: 268 seconds]
jamesaxl has joined #pypy
vilius has quit [Read error: Connection reset by peer]
vilius has joined #pypy
jcea has quit [Ping timeout: 240 seconds]
jcea has joined #pypy