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:00
adamholmberg has quit [Ping timeout: 265 seconds]
00:04
adamholmberg has joined #pypy
00:07
adamholm_ has joined #pypy
00:08
oberstet3 has quit [Quit: Leaving]
00:09
adamholm_ has quit [Remote host closed the connection]
00:10
adamholm_ has joined #pypy
00:11
adamholmberg has quit [Ping timeout: 246 seconds]
00:16
adamholm_ has quit [Ping timeout: 264 seconds]
00:24
drolando has quit [Remote host closed the connection]
00:24
drolando has joined #pypy
00:33
lritter has quit [Remote host closed the connection]
00:46
asmeurer__ has quit [Quit: asmeurer__]
00:53
pf_moore has quit [Quit: Connection closed for inactivity]
00:55
dddddd has quit [Remote host closed the connection]
01:07
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:10
tbodt has joined #pypy
01:12
Hotpot33 has joined #pypy
01:27
asmeurer has joined #pypy
01:32
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:34
jacob22__ has quit [Ping timeout: 246 seconds]
01:39
marr has quit [Ping timeout: 248 seconds]
01:45
asmeurer has quit [Quit: asmeurer]
01:54
tbodt has joined #pypy
02:01
jacob22__ has joined #pypy
02:07
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:08
asmeurer has joined #pypy
02:13
tbodt has joined #pypy
02:17
tbodt has quit [Ping timeout: 240 seconds]
02:31
jacob22__ has quit [Ping timeout: 248 seconds]
02:33
jacob22__ has joined #pypy
02:40
jacob22__ has quit [Remote host closed the connection]
02:41
jacob22__ has joined #pypy
02:50
jacob22__ has quit [Ping timeout: 240 seconds]
02:52
Hotpot33 has quit [Ping timeout: 260 seconds]
02:58
jacob22__ has joined #pypy
03:02
Hotpot33 has joined #pypy
03:40
Rotonen has quit [Ping timeout: 240 seconds]
03:41
Rotonen has joined #pypy
03:42
jcea has quit [Remote host closed the connection]
04:14
tbodt has joined #pypy
04:49
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:51
tbodt has joined #pypy
05:21
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
05:49
jamesaxl has joined #pypy
05:56
Hotpot33 has quit [Ping timeout: 264 seconds]
06:09
gutworth_ is now known as gutworth
06:09
gutworth has quit [Changing host]
06:09
gutworth has joined #pypy
06:22
asmeurer has quit [Quit: asmeurer]
07:03
energizer has quit [Ping timeout: 264 seconds]
07:19
tayfun26 has joined #pypy
07:49
Guest33959 has quit [Ping timeout: 240 seconds]
07:49
marvin has joined #pypy
07:50
marvin is now known as Guest21870
07:58
solarjoe4 has joined #pypy
07:59
solarjoe_ has joined #pypy
08:01
antocuni has joined #pypy
08:03
solarjoe4 has quit [Quit: Leaving]
08:43
marr has joined #pypy
09:06
dddddd has joined #pypy
09:33
amaury__ has quit [Ping timeout: 240 seconds]
09:57
dustinm- has quit [Write error: Connection reset by peer]
10:00
dustinm has joined #pypy
10:06
abecker has joined #pypy
10:16
pf_moore has joined #pypy
11:33
tayfun26 has quit [Remote host closed the connection]
11:34
tayfun26 has joined #pypy
12:02
amaury__ has joined #pypy
12:02
amaury__ is now known as amaury
12:03
jamesaxl has quit [Read error: Connection reset by peer]
12:04
jamesaxl has joined #pypy
12:11
solarjoe_ has quit [Quit: Leaving]
12:11
jacob22_ has joined #pypy
12:11
jacob22__ has quit [Ping timeout: 240 seconds]
12:20
<
kenaan >
cfbolz pyparser-improvements 1c51dd151fee /pypy/interpreter/pyparser/: improve error messages of ParseError only covers very simple cases, but at least if tells you about...
12:36
jcea has joined #pypy
13:15
marky1991 has joined #pypy
13:22
heinrich5991 has joined #pypy
13:53
jamesaxl has quit [Quit: WeeChat 2.0.1]
13:53
jamesaxl has joined #pypy
14:03
<
heinrich5991 >
I get a `size_t *` passed to my function
14:04
<
heinrich5991 >
how do I write my python integer into the memory location pointed to by that `size_t *`
14:04
<
cfbolz >
heinrich5991: using which library? cffi?
14:05
<
heinrich5991 >
using cffi, the `size_t *` looks like this: <cdata 'size_t *' 0x55c55db117c0> and has type <class '_cffi_backend.CData'>
14:05
<
heinrich5991 >
sorry, wasn't finished
14:06
<
cfbolz >
heinrich5991: I've never used cffi, but I think it's probably like this: argument[0] = python_int
14:09
<
heinrich5991 >
ah thanks
14:09
<
heinrich5991 >
yes, seems to work
14:12
lritter has joined #pypy
14:18
mattip has left #pypy ["bye"]
14:28
adamholmberg has joined #pypy
14:33
amaury_ has joined #pypy
14:36
amaury has quit [Ping timeout: 248 seconds]
14:43
<
mjacob >
antocuni: sound i indeed pack my running shoes? i probably won't go running alone in leysin. :)
15:04
marky1991 has quit [Ping timeout: 240 seconds]
15:10
adamholmberg has quit [Remote host closed the connection]
15:11
adamholmberg has joined #pypy
15:15
adamholmberg has quit [Ping timeout: 260 seconds]
15:23
raynold has quit [Quit: Connection closed for inactivity]
15:23
tayfun26 has quit [Quit: tayfun26]
15:38
desowin has quit [Ping timeout: 245 seconds]
15:48
rubdos has quit [Ping timeout: 245 seconds]
15:48
marky1991 has joined #pypy
15:57
redj_ has joined #pypy
15:58
panni__ has joined #pypy
16:00
marky1991 has quit [Remote host closed the connection]
16:02
marky1991 has joined #pypy
16:03
pepesza has quit [*.net *.split]
16:03
avakdh has quit [*.net *.split]
16:03
fijal has quit [*.net *.split]
16:03
ulope has quit [*.net *.split]
16:03
redj has quit [*.net *.split]
16:03
iko has quit [*.net *.split]
16:03
panni_ has quit [*.net *.split]
16:03
pepesza- has joined #pypy
16:04
ulope has joined #pypy
16:04
<
nanonyme >
Hm, was there some reasonable way in CFFI to stringify an enum pointer's value?
16:05
<
nanonyme >
Dereferencing gives int, not enum so can't be stringified
16:05
<
nanonyme >
(I guess?)
16:08
<
arigato >
nanonyme: yes, I think it's ffi.string()
16:08
<
arigato >
more precisely, ffi.string(ffi.cast("my_enum_type", 123))
16:09
<
arigato >
dereferencing gives an int, which is done in order to be closer to C
16:09
<
nanonyme >
For me it was mainly foo = ffi.new("myenumtype*"); callsomeapi(foo)
16:09
<
arigato >
but you can use ffi.cast("my_enum_type", 123) if you really want an object of that type
16:09
<
nanonyme >
I'm basically just trying to get a nicer error into exception through stringifying the enum
16:10
<
arigato >
yes, makes sense
16:10
avakdh has joined #pypy
16:10
fijal has joined #pypy
16:11
<
nanonyme >
Thanks, I'll try that when back at work
16:13
adamholmberg has joined #pypy
16:13
amaury_ has quit [Quit: Konversation terminated!]
16:14
amaury_ has joined #pypy
16:16
Remi_M has quit [Quit: See you!]
16:23
adamholmberg has quit [Remote host closed the connection]
16:24
adamholmberg has joined #pypy
16:26
marky1991 has quit [Ping timeout: 240 seconds]
16:27
energizer has joined #pypy
16:28
adamholmberg has quit [Ping timeout: 252 seconds]
16:34
adamholmberg has joined #pypy
16:36
<
antocuni >
mjacob: I'm surely bring both my skis and running shoes :)
16:37
rubdos has joined #pypy
16:49
marky1991 has joined #pypy
16:51
orion has joined #pypy
16:51
orion is now known as Guest27915
16:53
marky1991 has quit [Ping timeout: 256 seconds]
16:59
adamholmberg has quit [Remote host closed the connection]
16:59
adamholmberg has joined #pypy
17:04
adamholmberg has quit [Ping timeout: 256 seconds]
17:05
adamholmberg has joined #pypy
17:21
jcea has quit [Quit: jcea]
17:43
tbodt has joined #pypy
17:47
tbodt has quit [Client Quit]
17:50
asmeurer has joined #pypy
17:52
abecker has quit [Quit: leaving]
17:54
asmeurer has quit [Ping timeout: 264 seconds]
17:55
jamesaxl has quit [Read error: Connection reset by peer]
17:56
jamesaxl has joined #pypy
18:06
_main_ has joined #pypy
18:06
__main__ has quit [Read error: Connection reset by peer]
18:07
tbodt has joined #pypy
18:10
_main_ is now known as
__main__
18:11
adamholmberg has quit [Remote host closed the connection]
18:12
adamholmberg has joined #pypy
18:16
adamholmberg has quit [Ping timeout: 256 seconds]
18:20
antocuni has quit [Ping timeout: 260 seconds]
18:48
marky1991 has joined #pypy
18:53
marky1991 has quit [Remote host closed the connection]
18:55
marky1991 has joined #pypy
18:55
marky1991 has quit [Remote host closed the connection]
18:56
marky1991 has joined #pypy
18:57
nunatak has joined #pypy
18:58
jcea has joined #pypy
19:11
inhahe_ has quit [Ping timeout: 240 seconds]
19:14
amaury_ has quit [Ping timeout: 256 seconds]
19:16
tormoz has quit [Ping timeout: 264 seconds]
19:23
asmeurer has joined #pypy
19:31
tbodt has quit [Read error: Connection reset by peer]
19:37
redj_ is now known as redj
19:47
tbodt has joined #pypy
19:51
asmeurer has quit [Quit: asmeurer]
19:53
hniksic has joined #pypy
19:55
<
hniksic >
does anyone have experience with using GTK under PyPy?
19:56
amaury_ has joined #pypy
19:56
<
hniksic >
I work for a company with a large Python/GTK codebase
19:56
<
hniksic >
quite large, really
19:56
<
hniksic >
and the speed gains of PyPy look really really attractive for us
19:57
<
hniksic >
but after some googling it's not clear if gobject-introspection is supported at the moment
20:00
dmalcolm has quit [Ping timeout: 256 seconds]
20:01
marky1991 has quit [Read error: Connection reset by peer]
20:02
<
simpson >
hniksic: Presumably if you want something maintained you will have to pay for it, when it comes to corporate involvement. That said, I don't know.
20:04
amaury_ has quit [Ping timeout: 246 seconds]
20:05
<
hniksic >
simpson: paying for support is fine, of course, but pgi looks pretty much abandoned
20:06
asmeurer has joined #pypy
20:14
<
simpson >
hniksic: It can't be any worse than gi itself~
20:15
<
hniksic >
thanks, I'll contact the author for further information
20:16
<
hniksic >
for what it's worth, I got the information of PGI being unmaintained from its github repo
20:18
<
hniksic >
I tried running some small Python/GTK programs under PyPy, and they appear to run just fine
20:41
hniksic has left #pypy [#pypy]
20:45
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:47
tbodt has joined #pypy
20:52
dmalcolm has joined #pypy
21:04
energizer has quit [Quit: Leaving]
21:08
nunatak has quit [Quit: Leaving]
21:33
demonimin has quit [Ping timeout: 248 seconds]
21:36
demonimin has joined #pypy
21:36
demonimin has joined #pypy
21:53
raynold has joined #pypy
22:07
asmeurer has quit [*.net *.split]
22:07
avakdh has quit [*.net *.split]
22:07
ulope has quit [*.net *.split]
22:07
fryguybob has quit [*.net *.split]
22:07
kanaka has quit [*.net *.split]
22:07
mvantellingen has quit [*.net *.split]
22:07
jamesaxl has quit [Quit: WeeChat 2.0.1]
22:07
asmeurer has joined #pypy
22:07
mvantellingen has joined #pypy
22:07
ulope has joined #pypy
22:07
kanaka has joined #pypy
22:07
fryguybob has joined #pypy
22:07
avakdh has joined #pypy
22:09
amaury_ has joined #pypy
22:50
demonimin has quit [Ping timeout: 240 seconds]
22:52
demonimin has joined #pypy
22:55
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:57
Guest27915 has quit [Remote host closed the connection]
22:58
orion has joined #pypy
22:58
orion is now known as Guest8011
22:59
tbodt has joined #pypy
23:13
demonimin has quit [Ping timeout: 260 seconds]
23:49
amaury_ has quit [Ping timeout: 264 seconds]