2017-07-05 11:38
cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs:
https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "the modern world where network packets and compiler optimizations are effectively hostile"
00:08
leto_ni has quit [Ping timeout: 246 seconds]
00:12
rokujyouhitoma has joined #pypy
00:17
rokujyouhitoma has quit [Ping timeout: 246 seconds]
00:37
marr has quit [Remote host closed the connection]
01:04
exarkun has quit [Ping timeout: 260 seconds]
01:04
exarkun has joined #pypy
01:13
rokujyouhitoma has joined #pypy
01:18
rokujyouhitoma has quit [Ping timeout: 248 seconds]
01:22
yuyichao has quit [Remote host closed the connection]
01:24
yuyichao has joined #pypy
01:38
tilgovi has joined #pypy
01:48
yuyichao has quit [Ping timeout: 248 seconds]
01:59
yuyichao has joined #pypy
02:00
adamholmberg has joined #pypy
02:11
adamholmberg has quit [Remote host closed the connection]
02:11
adamholmberg has joined #pypy
02:14
rokujyouhitoma has joined #pypy
02:16
adamholmberg has quit [Ping timeout: 240 seconds]
02:19
rokujyouhitoma has quit [Ping timeout: 248 seconds]
02:31
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:32
tilgovi has quit [Ping timeout: 246 seconds]
02:36
tbodt has joined #pypy
02:37
tbodt has quit [Client Quit]
02:43
tilgovi has joined #pypy
02:45
yuyichao_ has joined #pypy
02:47
ArneBab has joined #pypy
02:49
adamholmberg has joined #pypy
02:49
yuyichao has quit [Ping timeout: 276 seconds]
02:52
ArneBab_ has quit [Ping timeout: 248 seconds]
02:58
adamholmberg has quit [Remote host closed the connection]
02:59
adamholmberg has joined #pypy
03:04
adamholmberg has quit [Ping timeout: 260 seconds]
03:15
rokujyouhitoma has joined #pypy
03:19
rokujyouhitoma has quit [Ping timeout: 248 seconds]
03:19
tav` has joined #pypy
03:21
tav has quit [Ping timeout: 248 seconds]
03:21
tav` is now known as tav
03:43
adamholmberg has joined #pypy
03:48
adamholmberg has quit [Ping timeout: 248 seconds]
03:51
tilgovi has quit [Ping timeout: 276 seconds]
03:55
tilgovi has joined #pypy
04:16
rokujyouhitoma has joined #pypy
04:20
rokujyouhitoma has quit [Ping timeout: 248 seconds]
04:24
exarkun has quit [Ping timeout: 276 seconds]
04:25
exarkun has joined #pypy
04:28
asmeurer__ has joined #pypy
04:58
inhahe_ has quit [Ping timeout: 240 seconds]
04:58
inhahe_ has joined #pypy
05:03
adamholmberg has joined #pypy
05:05
asmeurer__ has quit [Quit: asmeurer__]
05:12
adamholmberg has quit [Remote host closed the connection]
05:13
adamholmberg has joined #pypy
05:16
rokujyouhitoma has joined #pypy
05:17
adamholmberg has quit [Ping timeout: 240 seconds]
05:21
rokujyouhitoma has quit [Ping timeout: 246 seconds]
05:21
adamholmberg has joined #pypy
05:25
blachance has quit [Ping timeout: 248 seconds]
05:25
blachance has joined #pypy
05:26
asmeurer has joined #pypy
05:32
adamholmberg has quit [Remote host closed the connection]
05:32
adamholmberg has joined #pypy
05:37
adamholmberg has quit [Ping timeout: 240 seconds]
05:43
adamholmberg has joined #pypy
05:53
adamholmberg has quit [Remote host closed the connection]
05:54
adamholmberg has joined #pypy
05:58
adamholmberg has quit [Ping timeout: 248 seconds]
06:03
exarkun has quit [Ping timeout: 276 seconds]
06:04
exarkun has joined #pypy
06:13
<
cfbolz >
mattip: I am not 100% whether it's related, but we already have a special case for
__add__ vs
__radd__ (etc) in descroperation.py
06:13
<
cfbolz >
look at _make_binop_impl
06:17
rokujyouhitoma has joined #pypy
06:22
rokujyouhitoma has quit [Ping timeout: 252 seconds]
06:33
cwillu has joined #pypy
06:57
cstratak has joined #pypy
07:09
tilgovi has quit [Remote host closed the connection]
07:11
realitix has joined #pypy
07:18
rokujyouhitoma has joined #pypy
07:20
oberstet has joined #pypy
07:22
rokujyouhitoma has quit [Ping timeout: 255 seconds]
07:40
exarkun has quit [Read error: Connection reset by peer]
07:46
marr has joined #pypy
07:49
exarkun has joined #pypy
07:54
leto_ni has joined #pypy
07:55
antocuni has joined #pypy
08:03
kenaan has quit [Ping timeout: 240 seconds]
08:16
yuyichao_ has quit [Remote host closed the connection]
08:19
rokujyouhitoma has joined #pypy
08:19
inhahe_ has quit [Read error: Connection reset by peer]
08:23
rokujyouhitoma has quit [Ping timeout: 246 seconds]
08:24
inhahe_ has joined #pypy
08:45
yuyichao_ has joined #pypy
08:50
yuyichao_ has quit [Ping timeout: 246 seconds]
08:50
yuyichao has joined #pypy
08:55
asmeurer has quit [Quit: asmeurer]
09:23
exarkun has quit [Ping timeout: 240 seconds]
09:24
exarkun has joined #pypy
09:30
adamholmberg has joined #pypy
09:40
adamholmberg has quit [Remote host closed the connection]
09:41
adamholmberg has joined #pypy
09:45
adamholmberg has quit [Ping timeout: 246 seconds]
10:09
antocuni has quit [Ping timeout: 252 seconds]
10:19
pingiun has joined #pypy
10:20
pingiun has joined #pypy
10:24
demonimin has quit [Ping timeout: 240 seconds]
10:27
<
kaizoku >
arigato, i fixed that issue, now i'm running into some issues with macros, specifically LIST_HEAD
10:32
raynold has quit [Quit: Connection closed for inactivity]
10:35
pingiun has quit [Read error: Connection reset by peer]
10:38
adamholmberg has joined #pypy
10:43
pingiun has joined #pypy
10:47
<
ionelmc >
the ubuntu ppa don't have pypy3?
10:48
demonimin has joined #pypy
10:49
adamholmberg has quit [Remote host closed the connection]
10:49
adamholmberg has joined #pypy
10:54
adamholmberg has quit [Ping timeout: 260 seconds]
11:00
pingiun has quit [Read error: Connection reset by peer]
11:05
exarkun has quit [Ping timeout: 255 seconds]
11:05
exarkun has joined #pypy
11:21
rokujyouhitoma has joined #pypy
11:24
jiffe has quit [Quit: WeeChat 1.9]
11:25
jiffe has joined #pypy
11:25
rokujyouhitoma has quit [Ping timeout: 246 seconds]
11:49
antocuni has joined #pypy
12:09
adamholmberg has joined #pypy
12:15
Rhy0lite has joined #pypy
12:17
lritter has joined #pypy
12:20
adamholmberg has quit [Remote host closed the connection]
12:20
adamholmberg has joined #pypy
12:21
adamholmberg has quit [Read error: Connection reset by peer]
12:22
adamholm_ has joined #pypy
12:22
rokujyouhitoma has joined #pypy
12:23
mattip has quit [Ping timeout: 246 seconds]
12:26
rokujyouhitoma has quit [Ping timeout: 248 seconds]
12:31
mattip has joined #pypy
12:46
<
fijal >
have you been to any of those?
12:46
<
cfbolz >
armin has too
12:47
<
fijal >
armin says "long ago"
12:47
<
cfbolz >
two three years
12:48
<
fijal >
how was it?
12:51
<
antocuni >
note that the url of the uni is "cuni.cz" :)
12:52
<
cfbolz >
fijal: ok, probably one of the more relevant venues for us
13:13
<
cfbolz >
I found a simple way to not have to save one dict lookup per resumed frame in the blackhole resuming process
13:16
<
cfbolz >
There's a 'not' too much in that sentence
13:18
<
fijal >
I still don't get it, I presume you can save one dict lookup
13:20
<
cfbolz >
Per resumed frame rpython frame. That's a lot
13:23
rokujyouhitoma has joined #pypy
13:23
marky1991 has joined #pypy
13:24
<
cfbolz >
fijal: in fact, they are the only dict lookups left in the blackhole :-)
13:26
* fijal
is watching armin learning ruby
13:27
rokujyouhitoma has quit [Ping timeout: 248 seconds]
13:48
yuyichao has quit [Ping timeout: 246 seconds]
13:50
<
cfbolz >
fijal: eh, why?
13:50
<
fijal >
cfbolz: we're writing an extension to sketchup, which uses ruby
13:57
adamholm_ has quit [Remote host closed the connection]
13:57
adamholmberg has joined #pypy
13:57
adamholmberg has quit [Remote host closed the connection]
13:58
adamholmberg has joined #pypy
13:59
yuyichao has joined #pypy
14:23
rokujyouhitoma has joined #pypy
14:24
oberstet has quit [Ping timeout: 240 seconds]
14:25
jacob22_ has joined #pypy
14:28
rokujyouhitoma has quit [Ping timeout: 252 seconds]
15:24
rokujyouhitoma has joined #pypy
15:28
rokujyouhitoma has quit [Ping timeout: 240 seconds]
16:01
realitix has quit [Quit: Leaving]
16:01
exarkun has quit [Read error: Connection reset by peer]
16:10
exarkun has joined #pypy
16:22
antocuni has quit [Ping timeout: 276 seconds]
16:25
rokujyouhitoma has joined #pypy
16:29
rokujyouhitoma has quit [Ping timeout: 252 seconds]
16:31
cstratak has quit [Remote host closed the connection]
16:31
cstratak has joined #pypy
17:00
asmeurer__ has joined #pypy
17:04
cstratak has quit [Quit: Leaving]
17:07
raynold has joined #pypy
17:10
asmeurer__ has quit [Quit: asmeurer__]
17:26
rokujyouhitoma has joined #pypy
17:30
rokujyouhitoma has quit [Ping timeout: 248 seconds]
17:37
<
ionelmc >
can anyone recommend a sysv ipc library that works with pypy?
18:03
antocuni has joined #pypy
18:14
oberstet has joined #pypy
18:15
antocuni has quit [Ping timeout: 240 seconds]
18:25
marky1991_2 has joined #pypy
18:26
marky1991_2 has quit [Remote host closed the connection]
18:26
rokujyouhitoma has joined #pypy
18:27
marky1991 has quit [Ping timeout: 240 seconds]
18:31
rokujyouhitoma has quit [Ping timeout: 248 seconds]
18:36
marky1991 has joined #pypy
18:36
marky1991 has quit [Remote host closed the connection]
18:37
marky1991 has joined #pypy
18:42
Rhy0lite has quit [Quit: Leaving]
18:51
tbodt has joined #pypy
18:59
dustinm- has quit [Quit: Leaving]
19:01
dustinm has joined #pypy
19:04
yuyichao has quit [Remote host closed the connection]
19:14
<
fijal >
ionelmc: I don't even know what a sysv IPC is, but I suppose you should try any lib and see if it works
19:18
yuyichao has joined #pypy
19:22
nimaje1 has joined #pypy
19:22
nimaje1 is now known as nimaje
19:22
nimaje has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
19:27
yuyichao has quit [Read error: Connection reset by peer]
19:27
rokujyouhitoma has joined #pypy
19:27
yuyichao has joined #pypy
19:29
<
dw >
ionelmc: why are you considering those interfaces at all?
19:29
<
dw >
ionelmc: they are beyond ancient :)
19:30
<
dw >
and in most cases fundamentally lacking in one critical feature or another (e.g. timeouts)
19:32
rokujyouhitoma has quit [Ping timeout: 248 seconds]
19:41
kolko has joined #pypy
19:48
marky1991 has quit [Ping timeout: 240 seconds]
20:05
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:07
tbodt has joined #pypy
20:18
kipras`away is now known as kipras
20:28
rokujyouhitoma has joined #pypy
20:33
rokujyouhitoma has quit [Ping timeout: 248 seconds]
20:57
oberstet has quit [Ping timeout: 255 seconds]
21:02
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:21
pilne has joined #pypy
21:23
leto_ni has quit [Ping timeout: 264 seconds]
21:26
adamholmberg has quit [Remote host closed the connection]
21:26
adamholmberg has joined #pypy
21:27
tbodt has joined #pypy
21:29
rokujyouhitoma has joined #pypy
21:33
rokujyouhitoma has quit [Ping timeout: 240 seconds]
21:58
<
ionelmc >
dw: well ... considering the low size limits on either posix or sysv queues i might as well just use a plain fifo ...
21:58
<
ionelmc >
posix queues have timeouts tho
21:58
<
ionelmc >
but don't work on osx
21:59
<
ionelmc >
err ... osx don't support em that is
22:01
<
dw >
sysv ipc is nice because it's built in, but if that's the last criteria you have left going that's fine, but preferably there are 100 more that couldn't be met first hehe
22:02
<
dw >
also the bizarro 'key' namespace and its weird permissions that nothing else uses
22:03
<
ionelmc >
well this is the nail in the coffin: "In Linux versions before 2.6.11, the capacity of a pipe was the same as the system page size (e.g., 4096 bytes on i386). Since Linux 2.6.11, the pipe capacity is 65536 bytes. "
22:03
<
ionelmc >
that's way more than what a queue gets me
22:03
<
ionelmc >
am i missing something?
22:10
<
runciter >
queues work in terms of messages, whereas pipes are streams
22:11
<
runciter >
also posix guarantees that PIPE_BUF is no less than 4096
22:15
<
runciter >
and it can be changed on linux
22:16
<
ionelmc >
runciter: so then what's the point of using queues if fifos already have a buffer?
22:17
<
runciter >
ionelmc: queues work in terms of messages, whereas pipes are streams
22:19
<
runciter >
anyway, i've never found a use for an in-kernel queue. unix domain sockets are plenty fast and with SOCK_DGRAM are reliable, order, and message-based
22:19
<
ionelmc >
runciter: so basically "you don't have to parse out message delimiters" is all to it?
22:19
<
runciter >
ordered*
22:19
<
runciter >
ionelmc: you either get a message you don't
22:19
<
runciter >
you don't get part of a message
22:20
<
ionelmc >
actually ... you can't do fanout with a fifo right?
22:20
<
ionelmc >
you can have multiple receivers on a queue as i understood it
22:20
<
ionelmc >
actually maybe it's not fanout
22:21
<
runciter >
posix message queues do not support multiple receivers
22:21
<
runciter >
if you want each one to receive the same message, at least
22:24
marky1991 has joined #pypy
22:24
<
ionelmc >
runciter: so then fifo pipe or domain socket?
22:24
<
ionelmc >
there are so many choices :|
22:24
<
runciter >
ionelmc: UDS over a fifo, always
22:24
<
runciter >
that is, prefer UDS over FIFOs
22:25
<
ionelmc >
runciter: why?
22:25
<
runciter >
ionelmc: multiple processes can connect to a UDS path
22:26
<
ionelmc >
ok ... actually i didn't say anything about my usecase, lol
22:26
<
runciter >
their ancillary data supports useful behaviors like credentials checking and file descriptor passing
22:26
<
runciter >
you can get a message-oriented UDS, but you can't get a message-oriented named pipe
22:27
<
ionelmc >
so i need a 1 to 1 communication stream with some buffering if the reading end is too slow
22:28
<
ionelmc >
for now lets say i only want to send text data
22:28
<
runciter >
open a TCP socket on the loopback
22:29
<
runciter >
it's the most portable way and it'll be fast enough
22:29
<
ionelmc >
that dont get me anything over a uds (plus i can control access on uds)
22:29
<
runciter >
it will work on windows
22:30
<
ionelmc >
i don't think i can support windows at all :|
22:30
rokujyouhitoma has joined #pypy
22:30
<
ionelmc >
activation would be a problem there
22:32
<
runciter >
hm, this doesn't seem related to pypy
22:32
<
ionelmc >
i know but people here are so knowledgeable :D
22:33
<
ionelmc >
runciter: if you want to give an opinion we can talk elsewhere
22:34
<
runciter >
maybe #python?
22:34
<
runciter >
does your project have its own irc channel?
22:34
rokujyouhitoma has quit [Ping timeout: 248 seconds]
22:36
<
ionelmc >
runciter: i can make one i guess, #hunter ?
22:37
adamholmberg has quit [Remote host closed the connection]
22:38
adamholmberg has joined #pypy
22:42
adamholmberg has quit [Ping timeout: 260 seconds]
22:53
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:01
jacob22_ has quit [Ping timeout: 240 seconds]
23:02
antocuni has joined #pypy
23:16
marr123 has joined #pypy
23:17
marr has quit [Ping timeout: 248 seconds]
23:29
tbodt has joined #pypy
23:30
rokujyouhitoma has joined #pypy
23:34
<
dw >
ionelmc: sysv ipc permits multiple producers and consumers, it's not really comparable to sockets
23:34
<
dw >
(but i still wouldn't use it!)
23:35
rokujyouhitoma has quit [Ping timeout: 240 seconds]
23:38
adamholmberg has joined #pypy
23:43
adamholmberg has quit [Ping timeout: 240 seconds]
23:47
yuyichao has quit [Ping timeout: 248 seconds]
23:56
yuyichao has joined #pypy
23:58
antocuni has quit [Ping timeout: 260 seconds]