00:03
asmeurer__ has quit [Quit: asmeurer__]
00:10
asmeurer has joined #pypy
00:14
tbodt has joined #pypy
00:20
marky1991 has quit [Read error: Connection reset by peer]
00:28
marr has quit [Ping timeout: 248 seconds]
00:32
oberstet has quit [Ping timeout: 248 seconds]
00:32
asmeurer has quit [Quit: asmeurer]
00:34
asmeurer__ has joined #pypy
00:42
yuyichao_ has quit [Ping timeout: 258 seconds]
00:49
asmeurer__ has quit [Quit: asmeurer__]
00:54
asmeurer_ has joined #pypy
01:00
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:03
yuyichao_ has joined #pypy
01:05
asmeurer_ has quit [Quit: asmeurer_]
01:06
tbodt has joined #pypy
01:13
asmeurer_ has joined #pypy
01:17
traverseda has quit [Ping timeout: 240 seconds]
01:17
traverseda has joined #pypy
01:29
traverseda has quit [Ping timeout: 240 seconds]
01:30
traverseda has joined #pypy
01:32
asmeurer_ has quit [Quit: asmeurer_]
01:53
marky1991 has joined #pypy
01:59
<
kenaan_ >
rlamy py3.5 3e868c28555c /: hg merge default
02:05
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:29
oberstet has joined #pypy
02:37
asmeurer has joined #pypy
02:45
tos9_ has joined #pypy
02:45
oberstet has quit [Ping timeout: 248 seconds]
02:45
tos9 has quit [Ping timeout: 248 seconds]
02:45
tos9_ is now known as tos9
02:54
jcea has quit [Quit: jcea]
03:24
pilne has quit [Quit: Quitting!]
03:49
exarkun has quit [Read error: Connection reset by peer]
03:58
ArneBab has joined #pypy
03:58
exarkun has joined #pypy
04:02
ArneBab_ has quit [Ping timeout: 260 seconds]
04:21
jamesaxl has joined #pypy
04:47
_whitelogger has joined #pypy
05:06
marky1991_2 has joined #pypy
05:09
marky1991 has quit [Ping timeout: 240 seconds]
05:32
<
kenaan_ >
rlamy py3.5 ecfbd8f62994 /pypy/module/cpyext/: Do not use PyUnicode_Check in PyUnicode_AS_UNICODE, ever This macro may be used to fill in an uninitialised, unreali...
05:33
zmt00 has quit [Quit: Leaving]
05:36
<
ronan >
^^^ "pfffffff......"
05:57
marky1991_2 has quit [Read error: Connection reset by peer]
06:23
xorAxAx has quit [Remote host closed the connection]
06:28
<
LarstiQ >
ronan: fun to debug?
06:33
lazy1 has joined #pypy
07:06
yuyichao_ has quit [Quit: Konversation terminated!]
07:09
yuyichao has joined #pypy
07:42
tbodt has joined #pypy
07:44
OOPMan has joined #pypy
07:46
tbodt has quit [Ping timeout: 248 seconds]
08:18
xorAxAx has joined #pypy
08:30
<
fijal >
ronan: what timezone are you in?
09:03
kenaan_ has quit [Read error: No route to host]
09:04
kolko has joined #pypy
09:20
lukasa_ has joined #pypy
09:21
asmeurer has quit [Quit: asmeurer]
09:22
lukasa has quit [Ping timeout: 252 seconds]
09:22
lukasa_ is now known as lukasa
09:25
<
lazy1 >
fijal: Should have been ffi.new('char[]', val.encode('utf-8'))
09:25
<
lazy1 >
Also timeit of ffi.new('char[]', val.encode('utf-8')) vs C.strdup(val.encode('utf-8')) gives 165ns vs 136ns
09:25
<
fijal >
timeit lies
09:26
<
lazy1 >
Everybody lies
09:26
<
fijal >
but! they might be very similar :)
09:26
<
arigato >
you have to count C.free() too, for C.strdup()
09:26
<
lazy1 >
arigato: I don't understand
09:26
<
arigato >
ah, you never call C.free()
09:26
<
arigato >
then you have a leak
09:27
<
arigato >
better use ffi.new() which isn't prone to leaks
09:27
<
fijal >
lazy1: did you get any profiling data btw?
09:27
<
arigato >
(see "man strdup": you need to call free())
09:27
<
lazy1 >
If I do ffi.new I don't need to call free?
09:28
<
fijal >
zzpickle_and_slow
09:29
<
arigato >
I'm just saying, comparing ffi.new() and C.strdup() like that isn't fair, because C.strdup() also requires tracking and freeing, while ffi.new() doesn't
09:29
<
lazy1 >
Sure, will profile right
09:29
<
lazy1 >
fijal: How does timeit lies? caching?
09:30
<
arigato >
it doesn't matter, "timeit" on microbenchmarks is very rough
09:30
<
fijal >
it does a whole bunch of things that are very debatable
09:30
<
arigato >
at least with pypy
09:30
kenaan has joined #pypy
09:30
<
kenaan >
fijal unicode-utf8 86548802b11b /pypy/: interpreter fixes
09:30
<
fijal >
starting with having variable number of iterations
09:30
<
fijal >
and assuming certain statistical properties that are just not true for the JIT
09:31
<
arigato >
you can still use timeit to have a rough ballpark idea I suppose, but any difference smaller than "a few times" is not reliable
09:32
<
arigato >
and usually not relevant because you're benchmarking a very tiny subset of your actual program
09:33
<
lazy1 >
If course. I'll work on profiling the whole flow. But I always like to know some timing before choosing between two options
09:33
Guest95003 has quit [Ping timeout: 248 seconds]
09:33
<
fijal >
right, but 20% is not something that timeit would reliably show
09:33
<
fijal >
because it will have bigger effects on other parts of the program that you cannot predict very well
09:33
<
fijal >
(or at least it might have)
09:37
marr has joined #pypy
09:39
oberstet has joined #pypy
09:44
antocuni has joined #pypy
09:47
marvin_ has joined #pypy
10:07
OOPMan has quit [Ping timeout: 240 seconds]
10:08
OOPMan has joined #pypy
10:12
oberstet has quit [Ping timeout: 260 seconds]
10:26
slackyy has quit [Ping timeout: 240 seconds]
10:27
the_drow has quit [Ping timeout: 255 seconds]
10:41
the_drow has joined #pypy
10:54
<
fijal >
arigato: so we have a test that goes backwards in error handler
10:54
<
fijal >
do we care or do we consider it broken?
11:02
<
arigato >
which test is that?
11:04
<
fijal >
test/test_codecs.py::AppTestPartialEvaluation::test_unicode_internal
11:08
<
arigato >
how can it possibly work?
11:09
<
fijal >
by accident, I think
11:11
<
arigato >
it seems to get the error "truncated input"
11:11
<
arigato >
I guess the position returned from the error handler is ignored, and we stop anyway?
11:13
antocuni has quit [Ping timeout: 240 seconds]
11:13
<
arigato >
it really looks accidental
11:13
<
arigato >
on CPython I get an infinite loop if I return 0, or 2, instead of 1
11:14
<
fijal >
yes, it really is accidental
11:14
<
fijal >
so we assume the test is broken?
11:15
<
arigato >
it goes like this
11:16
<
arigato >
first decode char from index [0, 1, 2, 3]
11:16
<
arigato >
then position = 4, but length =5 so "truncated input"
11:16
oberstet has joined #pypy
11:16
<
arigato >
then position is reset to 1
11:16
<
arigato >
then we decode char from index [1, 2, 3, 4]
11:16
<
arigato >
and we're done then
11:17
<
fijal >
yes, but it IS an accident
11:17
<
arigato >
I vaguely imagine that some codecs would do that, i.e. reset the position 1 to 3 chars before, as an attempt to resynchronize
11:17
<
arigato >
of course while being very careful
11:19
<
arigato >
I imagine it's easy to support if we want to: call prev_codepoint_pos() a few times
11:20
<
arigato >
at this point, I suppose
*shrug* and implement it like CPython because it's easy?
11:20
<
fijal >
well, it's easy, we kill the detection logic
11:23
<
fijal >
arigato: I'm down to 5 failing tests in _codecs
11:26
the_drow has quit [Ping timeout: 258 seconds]
11:39
the_drow has joined #pypy
11:54
<
arigato >
fijal: no, we must call prev_codepoint_pos()
12:04
<
fijal >
Right, so I vote for "this is broken error handler, let's raise"
12:04
<
fijal >
This is decode, not encode
12:06
<
arigato >
I
*think* it's as easy as two lines that call prev_codepoint_pos(), and I fear some obscure code somewhere depends on it
12:07
<
arigato >
so I'm +1 for implementing it
12:28
the_drow has quit [Ping timeout: 255 seconds]
12:32
raynold has quit [Quit: Connection closed for inactivity]
12:37
jcea has joined #pypy
12:41
the_drow has joined #pypy
12:44
OOPMan has quit [Quit: Konversation terminated!]
13:03
<
fijal >
arigato: I'll add it to TODO
13:03
<
kenaan >
fijal unicode-utf8 c7109cb7f6be /pypy/: fix all the tests in codecs until test_ztranslation
13:07
<
fijal >
xmlcharrefreplace has not a single test
13:08
<
kenaan >
fijal unicode-utf8 df28f6398687 /pypy/: simple fixes in fake objspace
13:09
the_drow has quit [Ping timeout: 240 seconds]
13:22
the_drow has joined #pypy
13:25
exarkun has quit [Ping timeout: 248 seconds]
13:29
exarkun has joined #pypy
13:32
antocuni has joined #pypy
13:52
adamholmberg has joined #pypy
13:54
Rhy0lite has joined #pypy
14:20
<
kenaan >
fijal unicode-utf8 fd1b64ce9b80 /pypy/: some improvements for xmlcharrefreplace
14:23
yuyichao has quit [Ping timeout: 246 seconds]
14:23
yuyichao has joined #pypy
14:35
amaury has joined #pypy
14:44
adamholmberg has quit [Remote host closed the connection]
14:44
amaury has quit [Read error: Connection reset by peer]
14:45
adamholmberg has joined #pypy
14:45
adamholmberg has quit [Remote host closed the connection]
14:45
adamholmberg has joined #pypy
14:46
amaury has joined #pypy
14:50
<
fijal >
arigato: I hate RPython
14:52
amaury has quit [Ping timeout: 250 seconds]
14:52
<
kenaan >
fijal unicode-utf8 5ffbd0a736d9 /: some rpython fixes
14:56
<
fijal >
fighting signness
14:56
<
fijal >
but it's all of a kind "this call is fine, but there is a call somewhere that's not fine"
15:10
<
arigato >
fijal: I wrote _multibytecodecs in pypy, so feel free to ask me
15:15
marky1991_2 has joined #pypy
15:22
marky1991_2 has quit [Ping timeout: 248 seconds]
15:35
amaury has joined #pypy
15:43
<
fijal >
arigato: seems very obvious
15:43
<
fijal >
arigato: other than rffi.wcharpsize2unicode we need rffi.wcharpsize2utf8
15:44
<
arigato >
right, without it you'd need an intermediate allocation to do it
15:45
<
fijal >
seems easy-ish to write
15:59
yuyichao has quit [Ping timeout: 248 seconds]
16:10
yuyichao has joined #pypy
16:17
<
fijal >
xkcd-wise :
16:18
<
fijal >
"'python testrunner/get_info.py' failed"
16:18
<
fijal >
what does that mean?
16:19
<
kenaan >
fijal unicode-utf8 cefc9ed0b4c5 /: general progress
16:21
<
ronan >
fijal: US mountain time, apparently
16:21
<
ronan >
fijal: where did you see that?
16:22
<
ronan >
ah, I guess the branch doesn't have testrunner/get_info.py
16:22
<
ronan >
it's a new-ish step in the buildbot build
16:23
<
ronan >
you just need to merge from default
16:27
<
ronan >
actually, you can also ignore it, it should be harmless for 'own' tests
16:32
amaury_ has joined #pypy
16:32
amaury has quit [Read error: Connection reset by peer]
16:40
exarkun has quit [Ping timeout: 255 seconds]
16:41
amaury_ has quit [Ping timeout: 240 seconds]
16:45
exarkun has joined #pypy
16:45
zmt00 has joined #pypy
16:52
lazy1 has quit [Quit: Leaving]
16:52
amaury_ has joined #pypy
16:53
amaury_ has quit [Client Quit]
16:53
amaury_ has joined #pypy
17:02
<
kenaan >
rlamy py3.5 36daba4180a3 /pypy/module/_io/: Advance self.pos also when reading only from self.buffer
17:04
raynold has joined #pypy
17:08
traverseda has quit [Ping timeout: 248 seconds]
17:13
amaury_ has quit [Quit: Konversation terminated!]
17:13
amaury_ has joined #pypy
17:15
oberstet has quit [Ping timeout: 240 seconds]
17:19
<
fijal >
ronan: what is it used for?
17:20
<
ronan >
it is used to run extra_tests/
17:22
amaury_ has quit [Ping timeout: 268 seconds]
17:23
traverseda has joined #pypy
17:26
<
kenaan >
fijal unicode-utf8 0021cc161b99 /pypy/module/__builtin__/operation.py: fix checking for unichr range
17:33
drolando has joined #pypy
17:34
drolando has quit [Client Quit]
17:35
drolando has joined #pypy
17:35
drolando_ has joined #pypy
17:39
oberstet has joined #pypy
17:39
drolando has quit [Ping timeout: 248 seconds]
17:50
antocuni has quit [Ping timeout: 240 seconds]
18:08
marky1991 has joined #pypy
18:08
marky1991 has quit [Remote host closed the connection]
18:09
marky1991 has joined #pypy
18:18
mattip has joined #pypy
18:21
traverseda has quit [Ping timeout: 240 seconds]
18:28
marky1991 has quit [Ping timeout: 248 seconds]
18:30
<
mattip >
translation is failing because of rvmprof on win32, arm, s390x
18:35
drolando_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:35
drolando has joined #pypy
18:36
<
fijal >
pjenvey: that's 2unicode not 2utf8
18:36
<
fijal >
that's different :)
18:38
traverseda has joined #pypy
18:38
<
kenaan >
rlamy py3.5 e37a09d8450a /lib-python/3/traceback.py: Fix traceback.print_exception() when exc.offset == 0
18:38
<
mattip >
fijal: hi. Did you have a chance to look at the vmprof pull request (it only silences warnings, will not fix translation)
18:40
<
pjenvey >
sure, sounded like you needed both
18:43
<
mattip >
it seems rvmprof is so tangled with the JIT that it is basically impossible to translate pypy with --witoutmod-_vmprof
18:44
<
mattip >
or at least with a functioning rvmprof rlib module
18:44
<
mattip >
s//without a functioning ...
19:01
<
fijal >
mattip: no, should I?
19:04
<
fijal >
class U(object):
19:04
<
fijal >
return eval('u'+repr(other).replace(r'\\u', r'\u')
19:04
<
fijal >
def __add__(self, other):
19:04
<
fijal >
.replace(r'\\U', r'\U'))
19:04
<
fijal >
I love 2/3 compatibility mess
19:21
Rhy0lite has quit [Quit: Leaving]
19:30
<
mattip >
fijal: yes please, you wanted to eat dinner first :)
19:42
<
kenaan >
rlamy py3.5 382fb81ffff8 /lib_pypy/_pypy_testcapi.py: Force recompilation of _testcapimodule.c (due to ecfbd8f62994)
19:44
antocuni has joined #pypy
19:51
antocuni has quit [Ping timeout: 240 seconds]
20:04
<
fijal >
mattip: done
20:09
<
fijal >
arigato: feel like helping with cffi_backend tests?
20:09
<
kenaan >
fijal unicode-utf8 c6537b6d453f /: whack at cffi
20:10
<
mattip >
fijal: thanks
20:14
<
fijal >
arigato: I might be done for today though, _cffi_backend is a bit challenging
20:31
marky1991 has joined #pypy
20:37
jacob22__ has joined #pypy
20:37
jacob22__ is now known as jacob22
20:56
<
arigato >
fijal: sorry, off for tonight
20:59
<
arigato >
fijal: but yes, I can fix _cffi_backend if you like
20:59
<
arigato >
it's a motivation for me to start reading your changes :-)
21:16
slackyy has joined #pypy
21:26
marky1991 has quit [Ping timeout: 248 seconds]
21:34
jamesaxl has quit [Quit: WeeChat 1.9.1]
21:36
marky1991 has joined #pypy
21:36
marky1991 has quit [Remote host closed the connection]
21:36
marky1991 has joined #pypy
21:50
<
kenaan >
rlamy py3.5 83b96bb9cf44 /: Adapt idlelib.CallTips for pypy and update some docstrings
21:56
gclawes has joined #pypy
22:20
Garen has quit [Remote host closed the connection]
23:07
antocuni has joined #pypy
23:34
adamholmberg has quit [Remote host closed the connection]
23:35
adamholmberg has joined #pypy
23:41
adamholmberg has quit [Ping timeout: 240 seconds]
23:49
oberstet has quit [Ping timeout: 268 seconds]
23:57
<
kenaan >
mattip default 2c9ec695ca2c /rpython/rlib/rvmprof/: update vmprof from upstream which cleans up most of the gcc warnings