2018-02-26 15:52
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
00:02
lritter_ has joined #pypy
00:03
dddddd has quit [Remote host closed the connection]
00:34
jamesaxl has quit [Quit: WeeChat 2.1]
00:37
speeder39 has joined #pypy
01:28
jacob22 has quit [Ping timeout: 256 seconds]
01:34
jacob22 has joined #pypy
01:38
hotpot33 has joined #pypy
02:15
hotpot33 has quit [Ping timeout: 264 seconds]
02:27
hotpot33 has joined #pypy
02:31
lritter__ has joined #pypy
02:34
lritter_ has quit [Ping timeout: 264 seconds]
02:45
jamesaxl has joined #pypy
03:34
Garen has quit [Read error: Connection reset by peer]
03:36
Garen has joined #pypy
03:53
hotpot33 has quit [Remote host closed the connection]
04:37
speeder39 has quit [Quit: Connection closed for inactivity]
04:48
speeder39 has joined #pypy
05:37
inhahe__ has joined #pypy
06:42
hotpot33 has joined #pypy
07:17
speeder39 has quit [Quit: Connection closed for inactivity]
07:35
<
kenaan >
mattip unicode-utf8-py3 bdc01ece02b0 /pypy/: fixes from trying pypy/module/_codecs/test
07:40
<
cfbolz >
mattip, arigato: I'll move the discussion from the issue to pypy-dev, seems a more appropriate place
07:40
<
cfbolz >
(drafting a mail atm)
07:45
mattip has quit [Ping timeout: 265 seconds]
07:51
dddddd has joined #pypy
08:26
_whitelogger has joined #pypy
08:59
antocuni has joined #pypy
10:02
antocuni has quit [Ping timeout: 245 seconds]
10:02
DIRT has quit [Ping timeout: 256 seconds]
10:18
dddddd has quit [Remote host closed the connection]
10:34
lritter__ has quit [Remote host closed the connection]
10:41
lritter has joined #pypy
10:50
Taggnostr3 has joined #pypy
10:51
Taggnostr2 has quit [Ping timeout: 265 seconds]
10:56
Taggnostr3 has quit [Ping timeout: 245 seconds]
10:56
Taggnostr2 has joined #pypy
11:35
Taggnostr3 has joined #pypy
11:35
Taggnostr2 has quit [Ping timeout: 248 seconds]
11:36
dddddd has joined #pypy
12:04
Taggnostr2 has joined #pypy
12:05
Taggnostr3 has quit [Ping timeout: 268 seconds]
12:11
Taggnostr3 has joined #pypy
12:11
Taggnostr2 has quit [Ping timeout: 256 seconds]
13:40
hotpot33 has quit [Remote host closed the connection]
14:14
antocuni has joined #pypy
14:21
jcea has joined #pypy
14:41
dddddd has quit [Remote host closed the connection]
14:56
<
catern >
convert a List[bytes] into a char *const[] in CFFI
14:58
<
simpson >
catern: The cffi docs suggest that `ffi.new("char[]", "".join(args))` should work.
15:07
<
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
15:09
<
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().
15:11
<
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?
15:13
<
simpson >
Not sure TBH. You could find out with ffi.gc().
15:14
<
catern >
oh, and I guess the from_buffer won't necessarily return a null-terminated string, awkawrd
15:36
reaperhulk has joined #pypy
16:09
sbauman has joined #pypy
16:16
mattip has joined #pypy
17:13
lritter has quit [Ping timeout: 240 seconds]
17:37
antocuni has quit [Ping timeout: 260 seconds]
17:40
Eyes is now known as SunDwarf
18:20
dddddd has joined #pypy
18:35
asmeurer__ has joined #pypy
19:08
jcea has quit [Quit: jcea]
19:39
DIRT has joined #pypy
19:49
ceridwen has quit [Read error: Connection reset by peer]
19:52
ceridwen has joined #pypy
20:00
tbodt has joined #pypy
20:53
tbodt has joined #pypy
21:54
jcea has joined #pypy
22:33
vilius has quit [Read error: Connection reset by peer]
22:33
vilius has joined #pypy
23:00
danieljabailey has joined #pypy
23:08
jamesaxl has quit [Ping timeout: 268 seconds]
23:10
jamesaxl has joined #pypy
23:38
vilius has quit [Read error: Connection reset by peer]
23:39
vilius has joined #pypy
23:56
jcea has quit [Ping timeout: 240 seconds]
23:57
jcea has joined #pypy