#pypy IRC log for Monday, 2012-01-23

mattipI gotta go, any last questions?00:00
tilgovi (~randall@couchdb/developer/tilgovi) joined #pypy.00:00
fijalcool stuff00:01
fijalmattip: no, thanks00:01
mattipttfn00:01
mattip (~mattip@bzq-79-183-105-189.red.bezeqint.net) left irc: Quit: Leaving00:02
kenaan12fijal default 11d246547e90d8 15/pypy/module/micronumpy/: (mattip) merge numpypy-reshape-bug00:05
kenaan12fijal numpypy-shape-bug 1112c695258f06 15/: close merged-branch00:05
fijalhm00:06
fijalis buildbot on wyvern running under venv?00:06
fijalAlex_Gaynor: should we compare against 1.6.1 numpy or numpy 2.0-dev?00:08
fijalbleh00:09
fijalofficial numpy website refers to svn00:09
fijalwhile numpy devel happens on github00:09
fijalnice00:09
amaury (~amaury_@46-127-23-192.dynamic.hispeed.ch) left irc: Ping timeout: 272 seconds00:21
DasIch (~DasIch@p4FFDCB0C.dip.t-dialin.net) left irc: Quit: DasIch00:21
fijalAlex_Gaynor: are you reviewing the pull request or can I just pull it?00:28
fijallooks relatively innocent00:28
fijalto the best of my knowledge00:29
kenaan12dripton default 113ed178fb213d 15/lib_pypy/_sqlite3.py: Remove unreachable statement referring to nonexistant variable.00:30
kenaan12dripton default 11d39f5493dcaf 15/lib_pypy/_sqlite3.py: Remove unused import.00:30
kenaan12dripton default 11014a02a9d3df 15/lib_pypy/_sqlite3.py: Remove unused local variables.00:30
kenaan12dripton default 11d49f44c4a62f 15/lib_pypy/_sqlite3.py: Fix old-style raise statements (illegal in Python 3, ugly in Python 2)00:30
kenaan12dripton default 1101ed002a2b95 15/lib_pypy/_sqlite3.py: Add a comment making it clear this file is modified, for license compliance.00:30
kenaan12dripton default 116141b7352630 15/pypy/module/test_lib_pypy/test_sqlite3.py: Failing test for issue 99600:30
kenaan12dripton default 1180014f10414c 15/lib_pypy/_sqlite3.py: Do not call statement.reset() after executing DDL.  Fixes issue996.00:31
kenaan12dripton default 11fd6e2144e652 15/pypy/module/test_lib_pypy/test_sqlite3.py: Add an assert, as requested by Alex.00:31
squiddy (~squiddy@f053087141.adsl.alicedsl.de) left irc: Quit: Leaving00:33
fijaldripton: done00:33
fijalthanks!00:33
asmeurer (~asmeurer@dhcp-baca-230.resnet.nmt.edu) left irc: Quit: asmeurer00:50
asmeurer (~asmeurer@dhcp-baca-230.resnet.nmt.edu) joined #pypy.00:52
fijal (~fijal@196-210-150-33.dynamic.isadsl.co.za) left irc: Ping timeout: 240 seconds00:53
kvdaHello00:55
kvdaAh did fijal just leave.00:56
bgola (~bgola@c951826e.virtua.com.br) left irc: Ping timeout: 252 seconds01:03
bbot24Failure: 15http://buildbot.pypy.org/builders/own-macosx-x86-32/builds/78401:04
Unhelpful (~quassel@rockbox/developer/Unhelpful) left irc: Quit: http://quassel-irc.org - Chat comfortably. Anywhere.01:17
Unhelpful (~quassel@rockbox/developer/Unhelpful) joined #pypy.01:17
nettok_ (~quassel@190.148.249.220) joined #pypy.01:19
mat^2 (~mathias@212.130.113.35) left irc: Ping timeout: 245 seconds01:21
bgola (~bgola@c951826e.virtua.com.br) joined #pypy.01:24
bbot23Success: 15http://buildbot.pypy.org/builders/jit-benchmark-linux-x86-64-2/builds/4001:29
bbot23Success: 15http://buildbot.pypy.org/builders/jit-benchmark-linux-x86-64/builds/21301:39
tilgovi (~randall@couchdb/developer/tilgovi) left irc: Remote host closed the connection01:54
bbot2Started: 15http://buildbot.pypy.org/builders/own-linux-x86-32/builds/193702:00
bbot2Started: 15http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/68702:00
bbot2Started: 15http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/34702:00
bbot2Started: 15http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/33702:00
bbot2Started: 15http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-64/builds/68402:00
bbot2Started: 15http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/120902:00
bbot2Started: 15http://buildbot.pypy.org/builders/pypy-c-Ojit-no-jit-linux-x86-32/builds/86902:00
bbot2Started: 15http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-32/builds/152702:00
bbot2Started: 15http://buildbot.pypy.org/builders/own-linux-x86-64/builds/79802:00
stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) joined #pypy.02:08
stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) left irc: Read error: Connection reset by peer02:08
Nick change: stakkars_ -> stakkars02:08
nirbheek (~nirbheek@117.197.144.115) joined #pypy.02:12
nirbheek (~nirbheek@117.197.144.115) left irc: Changing host02:12
nirbheek (~nirbheek@gentoo/developer/flyingspaghettimonster/nirbheek) joined #pypy.02:12
stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) joined #pypy.02:13
stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) left irc: Read error: Connection reset by peer02:13
Nick change: stakkars_ -> stakkars02:13
CIA-1703dripton 07roundup * 10#996/sqlite3 CREATE TABLE always fails: [resolved] That pull request was merged, so I think this is fixed. * 14https://bugs.pypy.org/issue99602:14
stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) joined #pypy.02:15
stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) left irc: Read error: Connection reset by peer02:15
Nick change: stakkars_ -> stakkars02:15
jaffachief (~textual@host86-170-15-228.range86-170.btcentralplus.com) left irc: Quit: Computer has gone to sleep.02:25
etrepum (~bob@75-101-96-144.dsl.static.sonic.net) joined #pypy.02:48
dripton (~dripton@pool-72-86-45-238.clppva.fios.verizon.net) left irc: Quit: Konversation terminated!02:50
Moku (~John@osbk-4db1688f.pool.mediaWays.net) left irc: Ping timeout: 240 seconds03:03
csenger` (~user@dslb-084-058-148-237.pools.arcor-ip.net) joined #pypy.03:03
Moku (~John@osbk-4db14ccb.pool.mediaWays.net) joined #pypy.03:03
csenger (~user@dslb-084-058-191-114.pools.arcor-ip.net) left irc: Ping timeout: 252 seconds03:07
whyking (~quassel@ip68-14-13-208.ri.ri.cox.net) left irc: Ping timeout: 245 seconds03:16
bbot23Success: 15http://buildbot.pypy.org/builders/jit-benchmark-linux-x86-32/builds/102303:27
bbot24Failure: 15http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/33703:29
Moku (~John@osbk-4db14ccb.pool.mediaWays.net) left irc: Remote host closed the connection03:35
Kaskuka (~John@osbk-4db14ccb.pool.mediaWays.net) joined #pypy.03:38
Da_Blitz (~Da_Blitz@203.56.250.63) left irc: Ping timeout: 255 seconds03:38
Da_Blitz (~Da_Blitz@203.56.250.63) joined #pypy.03:43
PiotrSikora (~none@nginx/adept/piotrsikora) left irc: Excess Flood03:48
PiotrSikora (~none@nginx/adept/piotrsikora) joined #pypy.03:49
csenger` (~user@dslb-084-058-148-237.pools.arcor-ip.net) left irc: Quit: ERC Version 5.3 (IRC client for Emacs)04:10
nedbat (~nedbat@python/psf/nedbat) left irc: Ping timeout: 276 seconds04:16
fprimex (~brent@fl-67-233-144-239.dhcp.embarqhsd.net) joined #pypy.04:22
nedbat (~nedbat@python/psf/nedbat) joined #pypy.04:23
bbot23Success: 15http://buildbot.pypy.org/builders/own-linux-x86-32/builds/193704:29
icrazyhack (~horieyui@183.93.198.19) joined #pypy.04:33
nedbat (~nedbat@python/psf/nedbat) left irc: Ping timeout: 248 seconds04:49
anish_ (anish@nat/redhat/x-kcpqxtjeyognfria) joined #pypy.04:50
papercrane (~papercran@c-76-103-172-115.hsd1.ca.comcast.net) left irc: Quit: Computer has gone to sleep.05:04
bbot23Success: 15http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-32/builds/152705:31
bbot23Success: 15http://buildbot.pypy.org/builders/pypy-c-Ojit-no-jit-linux-x86-32/builds/86905:32
bbot23Success: 15http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-64/builds/68405:35
nettok_ (~quassel@190.148.249.220) left irc: Remote host closed the connection05:50
bbot23Success: 15http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/120905:53
Da_Blitz (~Da_Blitz@203.56.250.63) left irc: Ping timeout: 252 seconds05:56
fprimex (~brent@fl-67-233-144-239.dhcp.embarqhsd.net) left irc: Quit: 'night!05:57
Da_Blitz (~Da_Blitz@203.56.250.63) joined #pypy.05:58
bbot23Success: 15http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/68706:06
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Read error: Connection reset by peer06:12
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.06:13
mat^2 (~mathias@212.130.113.35) joined #pypy.06:32
icrazyhack (~horieyui@183.93.198.19) left irc: Read error: Connection reset by peer06:52
icrazyhack (~horieyui@183.60.101.86) joined #pypy.06:53
mat^2 (~mathias@212.130.113.35) left irc: Ping timeout: 252 seconds06:54
horieyui (~horieyui@183.93.198.19) joined #pypy.06:57
icrazyhack (~horieyui@183.60.101.86) left irc: Ping timeout: 252 seconds06:58
amaury (~amaury_@46-127-23-192.dynamic.hispeed.ch) joined #pypy.06:59
tilgovi (~randall@couchdb/developer/tilgovi) joined #pypy.07:01
bbot23Success: 15http://buildbot.pypy.org/builders/own-linux-x86-64/builds/79807:06
asmeurer (~asmeurer@dhcp-baca-230.resnet.nmt.edu) left irc: Quit: asmeurer07:10
amaury (~amaury_@46-127-23-192.dynamic.hispeed.ch) left irc: Read error: Operation timed out07:13
bbot24Failure: 15http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/34707:15
mvt (~mvantelli@87.213.45.85) joined #pypy.07:31
fijal (~fijal@196-210-150-33.dynamic.isadsl.co.za) joined #pypy.07:32
JaRoel|4d (~jaroel|4d@sink.jaroel.nl) left irc: Remote host closed the connection07:32
csenger` (~user@dslb-084-058-148-237.pools.arcor-ip.net) joined #pypy.07:41
Telugodu (~rambaho@202.3.77.231) joined #pypy.07:47
JaredWigmore (~jared@n112119177158.netvigator.com) joined #pypy.07:49
CIA-1703fijal 07roundup * 10#1008/numpypy: commit the code for empty_like, zeros_like, ones_like: 07:50
CIA-17These functions are implemented directly in applevel python in numpy and should07:50
CIA-17simply be copied over. Tests are absolutely necessary for the co ... * 14https://bugs.pypy.org/issue100807:50
Telugodu (~rambaho@202.3.77.231) left irc: Ping timeout: 240 seconds07:54
CIA-1703fijal 07roundup * 10#1011/pypy slower than CPython for recursion: 08:01
CIA-17[resolved] PyPy has some problems with recursion (it can be faster), but the latest nightly08:01
CIA-17is already a bit faster than CPython, closing. * 14https://bugs.pypy.org/issue101108:01
squiddy (~squiddy@f053084057.adsl.alicedsl.de) joined #pypy.08:08
nirbheek (~nirbheek@gentoo/developer/flyingspaghettimonster/nirbheek) left irc: Ping timeout: 252 seconds08:14
CIA-1703fijal 07roundup * 10#1016/RPython AssertionError while running async io greenlet test: 08:16
CIA-17FYI to run without JIT, it's enough to run a jitted version of pypy like this:08:16
CIA-17pypy --jit off <args>08:16
CIA-17It's much easier than retranslating :) * 14https://bugs.pypy.org/issue101608:16
CIA-1703fijal 07roundup * 10#1016/RPython AssertionError while running async io greenlet test: 08:19
CIA-17I get an error: error: [Errno 11] Resource temporarily unavailable08:19
CIA-17any idea what that means? * 14https://bugs.pypy.org/issue101608:19
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Quit: pnguyen08:35
fijalcsenger`: hi08:37
antocuni_ (~antocuni@host155-125-dynamic.25-79-r.retail.telecomitalia.it) joined #pypy.08:44
JaRoel|4d (~jaroel|4d@office.fourdigits.nl) joined #pypy.08:50
horieyui (~horieyui@183.93.198.19) left irc: Ping timeout: 240 seconds09:00
AlekSi (~AlekSi@83.149.8.143) joined #pypy.09:17
lucian (~lucian@93-97-174-114.zone5.bethere.co.uk) joined #pypy.09:17
mikefc_fijal: zeros_like and ones_like are both wrappers around  "empty_like" which is a c func in core/src/multiarray/multiarraymodule.c09:23
mikefc_which i'd get to if I have more than 30 seconds spare at the keyboard. :(09:23
fijalmikefc_: I made it possible to have app-level code as methods09:24
fijalthe same way as numpy does09:24
fijalvar is an app-level method now09:24
mikefc_ah!09:25
mikefc_that's cool :)09:25
fijalon a branch though09:25
fijalI'm trying to make __str__ back applevel and __repr__09:25
mikefc_but empty_like is C code.  So we're going to create a pure python version at app level in numpypy?09:26
fijalwe can put it on interp-level if it makes sense09:29
mikefc_not sure. I'm not exactly sure what empty like actually allocates.  a simple call to "zeros()" instead is a stopgap. but i'll look at what the numpy's tests say.09:30
dmitrey (~quassel@77.121.195.200) joined #pypy.09:33
fijaldmitrey: hi09:34
csenger`fijal: hi09:34
fijalcsenger`: so right now your way (have a separate factory for running cpython) runs cpython benchmarks twice09:34
dmitreyhi fijal, I don't understand what do you mean by "Also tests do that implicitely"09:35
fijalI think we can avoid it, by having say just one that runs jitted version of pypy vs cpython09:35
csenger`I think it runs it as baseline a second time?09:35
fijaldmitrey: look say at pypy/module/test_lib_pypy/numpypy/09:35
kenaan12fijal numpy-back-to-applevel 110068fa0d5e01 15/: merge default09:36
fijaldmitrey: those are AppTests which means they'll run on untranslated pypy09:36
Telugodu (~rambaho@202.3.77.231) joined #pypy.09:36
fijalcsenger`: it runs cpython and cpython, no?09:36
dmitreyok09:36
csenger`It starts the runner once, with the interpreter set both as pypy-c and baseline.09:37
unbit (~unbit@93-58-162-185.ip159.fastwebnet.it) left irc: Ping timeout: 245 seconds09:37
csenger`I could not make sense out of it. Does it run the baseline every time to have a reference value?09:37
fijal                     '-p', cpython_interpreter,09:38
fijal                     '--baseline', cpython_interpreter,09:38
fijalthis is what I see no?09:38
fijalyes09:38
csenger`yes.09:38
fijalit comes from unladen swallow, it sucks09:38
fijalbut it's good enough for us not to write a new bench runner09:38
sacred_coder (~rambaho@202.3.77.231) joined #pypy.09:39
fijalso you probably want a factory that both translates pypy and compiles cpython09:39
fijaland then runs them against each other09:39
Telugodu (~rambaho@202.3.77.231) left irc: Client Quit09:39
csenger`We could try to pass in the baseline values we aggregated once as long as the maschine does not change.09:39
fijalthe point is running runner twice is wasteful09:39
unbit (~unbit@93-58-162-185.ip159.fastwebnet.it) joined #pypy.09:39
antocuni_hi09:39
fijalespecially with cpython that takes forever09:39
csenger`but we need the relative change compared to a 'know' value.09:39
Nick change: antocuni_ -> antocuni09:39
fijalcsenger`: that's dealt with automatically09:40
csenger`Which has to be the results of the same interpreter every time.09:40
JaredWigmore (~jared@n112119177158.netvigator.com) left irc: Ping timeout: 240 seconds09:40
fijalantocuni: hi09:40
fijalcsenger`: sorry, I fail to follow?09:40
csenger`don't think that works if the performance of pypy and cpython change on the same day.09:40
fijalno it does09:40
fijalbecause you have a history09:40
fijallook at speed.pypy.org09:41
fijalyou can compare against yesterday's run09:41
fijalspeaking of which - how much sense does it make to run 2.7 benchmarks at all?09:41
fijalis there any development happening there?09:41
tilgovi (~randall@couchdb/developer/tilgovi) left irc: Remote host closed the connection09:42
csenger`2.7 was announced as a longer maintained version, but the changes won't be radical.09:42
fijalwell09:43
fijalno performance work is being done there right?09:43
csenger`Nevertheless, it's not a burden to run them and it might help some day.09:43
fijalI heavily doubt that09:43
fijalbut ok09:43
dmitrey (~quassel@77.121.195.200) left irc: Ping timeout: 255 seconds09:44
csenger`I have a script that can run the benchmark on past revisions of a branch to get historical data. I'd like to run that for the 2.7 branch, and maybe some of legacy-trunk to see how the performance changed.09:45
fijalI can tell you upfront - it didn't09:45
fijalbut it's fine, science is better than guesses09:46
fijalcsenger`: but still, running cpython twice is pointless09:48
G2P (~G2P@fw-asn1.ornis.com) joined #pypy.09:49
stakkars_ (~tismer@i59F77E49.versanet.de) joined #pypy.09:50
Telugodu (~rambaho@202.3.77.231) joined #pypy.09:50
csenger`yes. I will test if we can get all relevant information into codespeed in one upload so it knows in which repos to look for revision information for both. I have no codespeed running here yet and don't know how that works.09:51
arigato (~arigo@adsl-89-217-233-144.adslplus.ch) joined #pypy.09:51
fijalcsenger`: I tell you upfront we can09:51
fijalcsenger`: uploading two versions of identical numbers would not change a thing irrelevant to how codespeed works09:51
fijalarigato: morning armin09:51
arigatomorning09:52
Telugodu (~rambaho@202.3.77.231) left irc: Client Quit09:52
csenger`fijal: just not sure how to interpret the executable/project information which is only passed once in the url query string. Codespeed is a blackbox for me atm so it would help if I had the right arguments to the runner :)09:54
fijalcsenger`: I have a bit no idea how is this implemented right now, but chances are we'll need to change it09:54
fijalcsenger`: but as you can see it does a separate upload for base and modified09:55
fijalso you would save data twice09:55
csenger`fijal: btw, I wondered if this is correct: https://bitbucket.org/pypy/benchmarks/src/fad651ead401/runner.py#cl-15  (set the name to pypy-c if --jit was passed, and to pypy-c-jit if not). It might be correct, but it looks wrong.09:56
kvda (~kvda@124-169-134-221.dyn.iinet.net.au) left irc: Quit: x___x09:56
fijalit's correct for the current hardcoded way we run it09:57
fijalwhich is pypy-c-jit vs pypy-c-nojit09:57
fijal (~fijal@196-210-150-33.dynamic.isadsl.co.za) left irc: Ping timeout: 240 seconds10:01
antocunirguillebert: 99083d2bfef1 comes with no tests :-(10:02
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.10:08
fijal (~fijal@196-210-150-33.dynamic.isadsl.co.za) joined #pypy.10:09
arigatofijal: is it really correct?10:10
fijalarigato: in what sense correct?10:11
fijal"works for our current setting in the buildbot" kind of correct10:11
arigato"so obscurely upside-down correct that I wouldn't mind a comment" kind of correct10:12
fijalwell10:12
fijalthe entire file is like this10:12
fijalnot that it's a very good excuse obviously10:12
arigatoideally, what would help is a comment written by someone that has the slightest clue about why this is correct10:14
arigato(or even needed, as "--jit" alone appears not to be a valid transation option)10:17
witulski (~stupsi@fwstups.cs.uni-duesseldorf.de) joined #pypy.10:18
kenaan12mattip numppy-flatitter 11dd2ec11ec817 15/pypy/module/micronumpy/: correct faulty tests10:18
witulski (stupsi@fwstups.cs.uni-duesseldorf.de) left #pypy.10:18
apoirier_away (~apoirier@sakura.nagare.org) joined #pypy.10:19
mattip (c1a9466d@gateway/web/freenode/ip.193.169.70.109) joined #pypy.10:19
mattipI think I finished with flatiter. 10:20
Nick change: apoirier_away -> apoirier10:20
mikefc_python -c "import numpy as np; print np.empty_like( np.array([1,2,3]) )"10:21
mikefc_[4298185672 4298185648 4298185624]10:21
mikefc_^^ wtf are they?10:21
mattipI raise an exception on arange(10).flat[ arange(3) ] but we don't support indexing by matrices yet anyway.10:22
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Read error: Connection reset by peer10:22
mattipmikefc: -110:22
mikefc_mattip: ta.  didn't recognise it10:23
inhahe (~inhahe@c-50-128-212-190.hsd1.fl.comcast.net) joined #pypy.10:23
arigatonot really -110:24
mikefc_somehow ANDed/shifted with the original array10:24
arigatothat's just random garbage, as documented10:24
mikefc_it seem deterministic.10:24
mikefc_seems10:24
mattipnow on to logical_and / logical_or as ufuncs, ok?10:26
fijalmikefc_: it's not deterministic10:27
fijalmattip: cool10:27
fijalmattip: I'll look at flatiter10:27
fijalmattip: your fixes fixed my problem with ravel though, cool :)10:27
dmitrey (~quassel@77.121.195.200) joined #pypy.10:28
mattipthis week I'm defining success as reducing your workload :)10:28
fijalhaha10:28
mattipnext week, the opposite.10:29
fijal:(10:29
mattip( dot is almost ready )10:29
mattipttfn10:29
mattip (c1a9466d@gateway/web/freenode/ip.193.169.70.109) left irc: Quit: Page closed10:29
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.10:31
fijalarigato: ok, I guess10:32
ltratt (~ltratt@87.114.126.76) joined #pypy.10:37
fijalltratt: hi10:47
fijalarigato: the branch is trying to clean this up10:48
fijalso we'll pass executable_name as an explicit parameter to runner10:48
ltrattfijal: good morning10:50
stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) left irc: Read error: Connection reset by peer10:51
Nick change: stakkars_ -> stakkars10:51
stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) joined #pypy.10:51
fijalltratt: we still did not fix your bug10:51
nirbheek (~nirbheek@gentoo/developer/flyingspaghettimonster/nirbheek) joined #pypy.10:51
fijalchances are you're using a virtualizable incorrectly and it's not caught correctly10:52
whyking (~quassel@ip68-14-13-208.ri.ri.cox.net) joined #pypy.10:57
ltrattah10:57
ltratthow might one use a virtualizable incorrectly?10:57
Kaskuka (~John@osbk-4db14ccb.pool.mediaWays.net) left irc: Remote host closed the connection10:59
csenger`fijal: I don't see how the data of both benchmarks (changed and baseline) can be stored in codespeed in one go. http://paste.pocoo.org/show/539169/ has the runs both with changed == True and changed == False and the data transfered + saved in result.json.11:00
dmitreyI see in CPython numpy asscalar(a) returns a.item(), while it's absent in numpypy. What there should be instead?11:00
csenger`It doesn't transfer what 'baseline' is. Codespeed has no information that results for an executable (e.g. pypy-c) are always results against pypy-c-jit so it could calculate the result for pypy-c-jit.11:00
csenger`The only way to not run baseline each and every time is to cache the raw result once and make unladen_swallow.perf use it instead of running baseline again.11:01
Kaskuka (~John@osbk-4db14ccb.pool.mediaWays.net) joined #pypy.11:02
csenger`(but I wouldn't invest time for speed_python as it is idle 23 hours a day ;)11:02
AlekSi (~AlekSi@83.149.8.143) left irc: Remote host closed the connection11:06
azanella (~azanella@189.6.80.131) joined #pypy.11:06
CIA-1703Dmitrey 07roundup * 10#1008/numpypy: commit the code for empty_like, zeros_like, ones_like: 11:18
CIA-17That time I proposed the implementation method ndarray.fill() was absent. Now11:18
CIA-17it's present and I could commit the copy-pasted code from numpy. Co ... * 14https://bugs.pypy.org/issue100811:18
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Quit: pnguyen11:20
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.11:21
voidspace (~voidspace@python/psf/voidspace) joined #pypy.11:24
fijalcsenger`: the transfer goes in two goes11:30
fijalcsenger`: you can see two calls to perform_upload, no?11:31
fijaldmitrey: .item should be implemented11:31
fijaldmitrey: it's more important to put stuff in correct places than having it early11:32
fijalso say if a method is missing, don't propose a patch that works around it11:32
dmitreyunfortunately I have no nough experience to work with so low level numpy funcs, I would better  go for something more high-level instead. What about those empty_like etc, could I perform a test commit for them right now?11:33
dmitreynough = enough11:34
dmitreyI don't know inner structure of numpy ndarray well enough11:34
dmitreyto implement .item method11:35
fijalempty_like is implemented in C no?11:36
fijalwhat's your proposed implementation?11:36
fijalpure-python goes to lib_pypy/numpypy/... and tests to module/test_lib_pypy/numpypy/...11:36
nshepperd_ (~asdfg@ppp118-209-88-197.lns20.mel4.internode.on.net) joined #pypy.11:36
Nick change: ojii -> ojii|lunch11:36
kenaan12fijal buildbot 111c946f853e6b 15/numready.py: require an executable11:37
kenaan12fijal buildbot 11914834b4058a 15/numready.py: minor adjustments11:37
CIA-1703arigo 07roundup * 10#995/jit bug with threads: [chatting] You forgot to attach x.py. * 14https://bugs.pypy.org/issue99511:39
CIA-1703arigo 07roundup * 10#1016/RPython AssertionError while running async io greenlet test: 11:44
CIA-17papercrane: can you give us one of the version numbers that you tried? As a11:44
CIA-17mercurial identifier, i.e. 12 hexadecimal digits. Thanks! * 14https://bugs.pypy.org/issue101611:44
nedbat (~nedbat@python/psf/nedbat) joined #pypy.11:50
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Quit: pnguyen11:55
voidspace (~voidspace@python/psf/voidspace) left irc: Quit: Bye...11:59
whyking (~quassel@ip68-14-13-208.ri.ri.cox.net) left irc: Read error: Connection reset by peer12:01
Nick change: ojii|lunch -> ojii12:08
voidspace (~voidspace@python/psf/voidspace) joined #pypy.12:15
CIA-1703Dmitrey 07roundup * 10#1008/numpypy: commit the code for empty_like, zeros_like, ones_like: 12:15
CIA-17here's numpy zeros_like func latest version with 3 new parameters (in Linux12:15
CIA-17channel it's still old-style 1-argument version):12:15
CIA-17def zeros_like(a ... * 14https://bugs.pypy.org/issue100812:15
lizardo (lizardo@nat/indt/x-xkyttychahfdyknj) joined #pypy.12:32
ltratt (~ltratt@87.114.126.76) left irc: Quit: using sirc version 2.211+KSIRC/1.3.1212:33
khs (~khs@151.43.202.84.customer.cdi.no) joined #pypy.12:35
lizardo (lizardo@nat/indt/x-xkyttychahfdyknj) left irc: Ping timeout: 240 seconds12:39
voidspace (~voidspace@python/psf/voidspace) left irc: Quit: Goodbye...12:44
christophler (~web49_an_@84.45.87.204) left irc: Remote host closed the connection12:48
lizardo (lizardo@nat/indt/x-oyudojmhpvbyljkz) joined #pypy.12:50
lesshaste (~lesshaste@87-194-206-189.bethere.co.uk) joined #pypy.12:53
lesshastehi12:54
witulski (~stupsi@fwstups.cs.uni-duesseldorf.de) joined #pypy.12:55
arigatohi12:57
witulski (stupsi@fwstups.cs.uni-duesseldorf.de) left #pypy.12:57
dmitrey (~quassel@77.121.195.200) left irc: Remote host closed the connection13:00
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.13:00
DasIch (~DasIch@p3E990BC9.dip.t-dialin.net) joined #pypy.13:01
CIA-1703arigo 07roundup * 10#1016/RPython AssertionError while running async io greenlet test: 13:03
CIA-17I also get "Resource temporarily unavailable" systematically, on Linux 64-bit.13:03
CIA-17I can't test the original problem :-/ * 14https://bugs.pypy.org/issue101613:03
nshepperd_ (~asdfg@ppp118-209-88-197.lns20.mel4.internode.on.net) left irc: Quit: WeeChat 0.3.613:04
anish_ (anish@nat/redhat/x-kcpqxtjeyognfria) left irc: Ping timeout: 255 seconds13:05
jaffachief (~textual@host86-170-15-228.range86-170.btcentralplus.com) joined #pypy.13:08
anish_ (anish@nat/redhat/x-nsexopspoqpwtsfb) joined #pypy.13:12
arigatofijal: https://bugs.pypy.org/issue995: You forgot to attach x.py.13:16
anish_ (anish@nat/redhat/x-nsexopspoqpwtsfb) left irc: Ping timeout: 260 seconds13:20
anish_ (anish@nat/redhat/x-vpgockvpcwaidqro) joined #pypy.13:21
voidspace (~voidspace@python/psf/voidspace) joined #pypy.13:34
antocuni (~antocuni@host155-125-dynamic.25-79-r.retail.telecomitalia.it) left irc: Ping timeout: 252 seconds13:39
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Quit: pnguyen13:41
tumbleweedfijal: you thought this was worth upstreaming: http://anonscm.debian.org/gitweb/?p=collab-maint/pypy.git;a=blob;f=debian/patches/compiler-flags13:56
tumbleweedacceptable as is? Should they rather only come from translation cmdline options?13:56
tumbleweedShould I touch every posixish platforrm?13:56
tumbleweedI suppose testcases are wanted13:58
_root_ (~Scalable@li252-14.members.linode.com) left irc: Ping timeout: 252 seconds14:05
dmalcolm (~david@c-24-61-12-82.hsd1.ma.comcast.net) left irc: Quit: Leaving14:05
Nick change: csenger` -> csenger|away14:17
ltratt (~ltratt@87.114.126.76) joined #pypy.14:17
fprimex (~brent@fl-67-233-144-239.dhcp.embarqhsd.net) joined #pypy.14:24
AlekSi (~AlekSi@176.57.74.133) joined #pypy.14:28
kenaan12arigo default 11c32fbc60b64c 15/pypy/: Move these three functions at interp-level: potential threading issues if they are written at app-level.14:28
kenaan12arigo default 11598e02bd0eb8 15/pypy/module/_hashlib/interp_hashlib.py: Try to be more careful about free()ing this in case something fails.14:34
CIA-1703arigo 07roundup * 10#934/subprocess hangs in 1.7 (but not in 1.6 or 1.5): 14:39
CIA-17A Linux 64 version from today, 09532c746387, does not seem to have any problem14:39
CIA-17any more, neither built normally nor with lldebug. I just got onc ... * 14https://bugs.pypy.org/issue93414:39
whitelynx (~whitelynx@63.241.75.144) joined #pypy.14:43
aboudreault (~alanb@osgeo/member/aboudreault) joined #pypy.14:47
dmitrey (~quassel@77.121.195.200) joined #pypy.14:55
mat^2 (~mathias@212.130.113.35) joined #pypy.14:58
JaredWigmore (~jared@n112119177158.netvigator.com) joined #pypy.15:06
stakkars (~tismer@i59F77E49.versanet.de) left irc: Quit: schnarch15:07
Nick change: stakkars_ -> stakkars15:07
dmitrey (~quassel@77.121.195.200) left irc: Ping timeout: 260 seconds15:08
jaffachief (~textual@host86-170-15-228.range86-170.btcentralplus.com) left irc: Ping timeout: 244 seconds15:21
JaRoel|4d (~jaroel|4d@office.fourdigits.nl) left irc: Remote host closed the connection15:26
JaRoel|4d (~jaroel|4d@office.fourdigits.nl) joined #pypy.15:27
JaRoel (~jaroel|4d@office.fourdigits.nl) joined #pypy.15:29
gtaylor (~gtaylor@108-196-160-156.lightspeed.tukrga.sbcglobal.net) joined #pypy.15:30
Rhy0lite (dje@nat/ibm/x-ppcsaykmlnbhbldb) joined #pypy.15:31
JaRoel|4d (~jaroel|4d@office.fourdigits.nl) left irc: Ping timeout: 244 seconds15:32
stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) joined #pypy.15:34
stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) left irc: Read error: Connection reset by peer15:34
Nick change: stakkars_ -> stakkars15:34
witulski (~stupsi@fwstups.cs.uni-duesseldorf.de) joined #pypy.15:36
witulski (stupsi@fwstups.cs.uni-duesseldorf.de) left #pypy.15:39
dmalcolm (david@nat/redhat/x-utvbryvimixqpokk) joined #pypy.15:41
anish_ (anish@nat/redhat/x-vpgockvpcwaidqro) left irc: Ping timeout: 248 seconds15:41
JaredWigmore (~jared@n112119177158.netvigator.com) left irc: Remote host closed the connection15:44
voidspace (~voidspace@python/psf/voidspace) left irc: Quit: Goodbye...15:47
dmitrey (~quassel@77.121.195.200) joined #pypy.15:47
mattip (~chatzilla@bzq-79-183-105-189.red.bezeqint.net) joined #pypy.15:49
mattiphi.15:51
arigatohi15:51
cocoatomo (~cocoatomo@p2118-ipbf901souka.saitama.ocn.ne.jp) joined #pypy.15:55
kenaan12mattip matrixmath-dot 113431bdf3f8a1 15/pypy/module/micronumpy/test/test_numarray.py: added test from numpy docstring15:55
kenaan12mattip numpypy-reshape 111c041f97db71 15/: close useless branch15:55
lesshastehi15:57
mattipfijal: ping15:57
ltratthi all. is the only defined way to hold a weakref in RPython through RWeakValueDictionary and friends?15:57
dmalcolm (david@nat/redhat/x-utvbryvimixqpokk) left irc: Quit: Leaving16:02
Alex_Gaynorltratt: no, import weakref; weakref.ref() works fine16:05
Alex_Gaynor(IIRC)16:05
EnCuKou (~encukou@ip-94-113-220-25.net.upcbroadband.cz) joined #pypy.16:07
apoirier_away (~apoirier@sakura.nagare.org) joined #pypy.16:08
apoirier (~apoirier@sakura.nagare.org) left irc: Ping timeout: 260 seconds16:08
ltrattah, that's rpython friendly? excellent!16:09
arigatoltratt: "Supports ref() without callbacks" says the docstring of pypy.rlib.rweakref16:17
mvt (~mvantelli@87.213.45.85) left irc: Quit: This computer has gone to sleep16:24
ltrattarigato: i wasn't sure if that referred to rweakref or weakref16:25
sacred_coder (~rambaho@202.3.77.231) left irc: Quit: Ex-Chat16:25
whyking (~quassel@ip68-14-13-208.ri.ri.cox.net) joined #pypy.16:26
arigatoright16:27
Action: arigato improves the docstring a bit16:27
ltratt:)16:28
ltrattin my private repository, i have a patch which allows unlimited inlining of converge-level code (ok, it tends to crash because of bug #978, but it works for some very simple examples).16:30
ltrattit's not clear to me that unlimited inlining is always a great idea16:30
kenaan12arigo stm 116eb15b35a17d 15/pypy/translator/stm/: add the stm_thread_id() helper16:30
kenaan12arigo stm 113c5c86ba384f 15/pypy/module/transaction/__init__.py: More hacking...16:30
kenaan12arigo stm 11db48523657f2 15/pypy/: Use thread_id() from stm instead of the one from threads.16:30
kenaan12arigo stm 11e5329461f8ca 15/pypy/module/transaction/: Make the ExecutionContext again a thread-local.  See comments.16:30
kenaan12arigo default 11207092a8b272 15/pypy/rlib/rweakref.py: Improve the docstring and re-export weakref.ref() under the name pypy.rlib.rweakref.ref().16:30
voidspace (~voidspace@python/psf/voidspace) joined #pypy.16:30
ltrattsince a) one spends a long time tracing b) there's a greater chance of getting stuck in the trace interpreter in a very slow bytecode16:30
arigatoyes, so far we solve this by carefully tuning the trace_limit parameter16:31
arigatoif the trace becomes longer than this, then we retry by inlining less16:31
ltratthow is the less inlining done?16:32
oal (u4126@gateway/web/irccloud.com/x-crkmvjyjqnsbdkgj) left irc: Remote host closed the connection16:33
bfirsh (u1308@gateway/web/irccloud.com/x-mtetdvqwlsuhbgdu) left irc: Remote host closed the connection16:33
ltratti'm not sure how my VM should know when a trace has been too long, and therefore how to inline less16:33
Alex_Gaynor (u1246@gateway/web/irccloud.com/x-yorxsgsorvedmskc) left irc: Remote host closed the connection16:34
rguilleberthi16:34
arigato(yay, richards.py finally runs in parallel!  running 1 iteration takes 6.96s, running 2 takes 7.61s)16:35
arigato(and 4 takes 8.18s)16:35
rguillebertwith a GC ?16:35
rguillebert:)16:35
arigatoof course not :-)16:35
arigatoltratt: that's automatic16:35
ltrattarigato: aha! i didn't realise that. that's very nice16:36
arigatowhen the jit metainterp records operation, it notices it gets too many of them, and retries by inlining less16:36
ltratti now think i'm getting close to the JIT I want16:36
arigato"inlining" here is defined as a recursive call from the main jit loop to the main jit loop16:36
ltrattcan that recursive call be indirect?16:37
arigatoyes16:37
ltrattok, then i guess it's doing the right thing already16:37
arigato:-)16:37
ltrattup until now, some short-running programs have been made worse by the JIT16:37
ltrattbut i think that's partly due to crappy slot lookup code16:37
mattip (chatzilla@bzq-79-183-105-189.red.bezeqint.net) left #pypy.16:37
ltratti've now pretty much fixed that16:37
ltratton cvstone, for example, i'm now only 50% slower than pypy (rather than 100% before)16:38
arigatoand richards.cv? :-)16:38
ltratti don't really know what the effect will be on bigger programs until issue 978 is resolved, but i'm hopeful16:38
ltrattrichards bumps into #978...16:38
arigatook16:38
ltrattdon't worry, though, pypy will still beat converge ;)16:40
ltrattbut at least it will then be a fairer contest16:41
arigato(...even with 4 cores pypy-stm is still 3x slower at a regular "pypy --jit off"... right now it sounds like you'd need a 16-core machine to benefit)16:41
arigatos/slower at/slower than16:41
arigatoltratt: :-)16:42
arigato(hum, we still get a large number of aborts...)16:45
arigatoor well, 212739, for a 10-seconds program... is that huge? or merely large?16:46
arigatoah16:54
arigatoall RPython strings are read character-by-character via stm instead of directly16:55
arigatoprobably missing the fact that 'immutable' is true on a part of the STR lltype16:55
Kaskuka (~John@osbk-4db14ccb.pool.mediaWays.net) left irc: Remote host closed the connection17:01
bgola (~bgola@c951826e.virtua.com.br) left irc: Ping timeout: 252 seconds17:01
Kaskuka (~John@osbk-4db14ccb.pool.mediaWays.net) joined #pypy.17:04
cocoatomo (~cocoatomo@p2118-ipbf901souka.saitama.ocn.ne.jp) left irc: Remote host closed the connection17:06
bfirsh (u1308@gateway/web/irccloud.com/x-nsyfrckocafmnpsb) joined #pypy.17:06
Action: Da_Blitz thinks arigato deserves some kind of award for implementing STM quicker than everyone thought posible17:06
Taggnostr (~quassel@dyn57-362.yok.fi) left irc: Read error: Connection reset by peer17:07
Taggnostr (~quassel@dyn57-362.yok.fi) joined #pypy.17:11
rguillebertDa_Blitz, "STM won't work"17:14
voidspacearigato: hey, you coming to pycon?17:17
arigatovoidspace: hi!  "likely"17:21
voidspacearigato: cool, will you be able to make the language summit?17:22
arigatoyes, likely17:22
voidspacehehe, great17:22
arigatosorry for not being more precise right now :-)17:22
voidspacearigato: I'll put you down as a yes and if it turns out you can't come you can let me know17:22
Alex_Gaynor (u1246@gateway/web/irccloud.com/x-benrfcmzgaejjsps) joined #pypy.17:22
#pypy: mode change '+o Alex_Gaynor' by ChanServ!ChanServ@services.17:22
arigatovoidspace: ok, thanks17:23
AlekSi (~AlekSi@176.57.74.133) left irc: Read error: Connection reset by peer17:23
AlekSi (~AlekSi@176.57.74.133) joined #pypy.17:24
JaRoel (~jaroel|4d@office.fourdigits.nl) left irc: Remote host closed the connection17:25
lucian (~lucian@93-97-174-114.zone5.bethere.co.uk) left irc: Read error: Operation timed out17:28
CIA-1703Dmitrey 07roundup * 10#1008/numpypy: commit the code for empty_like, zeros_like, ones_like: 17:32
CIA-17I have pasted latest version of my empty_like to http://pastebin.com/yUznKBGV ,17:32
CIA-17as for ones_like and zeros_like - they were taken from numpy sour ... * 14https://bugs.pypy.org/issue100817:32
apoirier_away (apoirier@sakura.nagare.org) left #pypy ("Leaving...").17:34
G2P (~G2P@fw-asn1.ornis.com) left irc: Quit: Leaving.17:34
tito (~tito@pdpc/supporter/active/tito) left irc: Ping timeout: 255 seconds17:34
tito (~tito@178.73.216.222) joined #pypy.17:36
tito (~tito@178.73.216.222) left irc: Changing host17:36
tito (~tito@pdpc/supporter/active/tito) joined #pypy.17:36
amaury (~amaury_@46-127-23-192.dynamic.hispeed.ch) joined #pypy.17:41
arigatook... the next target is to remove stm handling of all frame accesses in the main loop17:42
arigatothis requires some care17:42
arigatoin fact it may only require some care for sys._currentframes()17:42
arigatoah no, there is also an issue with generator frames17:43
etrepum (~bob@75-101-96-144.dsl.static.sonic.net) left irc: Ping timeout: 240 seconds17:47
oal (u4126@gateway/web/irccloud.com/x-qcpgnudvfefbglmo) joined #pypy.17:50
arigato (~arigo@adsl-89-217-233-144.adslplus.ch) left irc: Ping timeout: 252 seconds17:53
etrepum (~bob@75-101-96-144.dsl.static.sonic.net) joined #pypy.17:59
etrepum (~bob@75-101-96-144.dsl.static.sonic.net) left irc: Ping timeout: 252 seconds18:09
JaRoel|4d (~jaroel|4d@sink.jaroel.nl) joined #pypy.18:13
etrepum (~bob@75.101.96.144) joined #pypy.18:14
Telugodu (~rambaho@202.3.77.231) joined #pypy.18:17
etrepum (~bob@75.101.96.144) left irc: Ping timeout: 252 seconds18:19
kenaan12amauryfa merge-2.7.2 119c27a0100918 15/pypy/module/_multibytecodec/: Fix multibytecodec incremental tests: ensure that .encode(final=True) is always called at the end. Also have...18:20
Alex_Gaynoramaury: So we now have: error messages, mmap, io, and site tests to deal with?18:21
amauryyes18:22
amauryI'll try to fix the visible failure in test_io18:22
dmalcolm (~david@c-24-61-12-82.hsd1.ma.comcast.net) joined #pypy.18:22
Alex_Gaynorok, I tried copying the fix from cpython for io, but it's another case of "that patch is insufficient"18:22
amaurytest_write_rewind_write()18:22
amaurysame here :)18:23
asmeurer (~asmeurer@dhcp-baca-230.resnet.nmt.edu) joined #pypy.18:23
Alex_Gaynorhehe18:23
amaurytime for debugging18:23
amauryfortunately pypy implementation mimics CPython's18:23
amauryso gdb here, pdb there18:23
amauryand step side by side18:23
Alex_Gaynorthe pdb version is much nicer, IMO :)18:23
Alex_Gaynorfijal: ping18:28
zain (~textual@bzq-79-182-196-50.red.bezeqint.net) left irc: Quit: Computer has gone to sleep.18:28
Telugodu (~rambaho@202.3.77.231) left irc: Remote host closed the connection18:30
Telugodu (~rambaho@202.3.77.231) joined #pypy.18:30
etrepum (~bob@75-101-96-144.dsl.static.sonic.net) joined #pypy.18:32
ericflo (~ericflo@75.103.8.110) joined #pypy.18:37
etrepum (~bob@75-101-96-144.dsl.static.sonic.net) left irc: Ping timeout: 245 seconds18:44
arigato (~arigo@adsl-89-217-233-144.adslplus.ch) joined #pypy.18:46
AlekSi (~AlekSi@176.57.74.133) left irc: Remote host closed the connection18:51
Alex_Gaynorarigato: Did you fix the issue with immutable reads going through stm?18:53
Alex_Gaynor[unrelated] is it just me or should Metainterp.in_recursion really be call_depth or so18:53
arigatoAlex_Gaynor: yes, it was just getinteriorfield on partially-immutable structures like STR18:55
arigatoyes, in_recursion is really the app_level_recursion_depth18:55
harrisonpartch (~sr@69.209.201.172) joined #pypy.18:56
voidspace (~voidspace@python/psf/voidspace) left irc: Quit: Goodbye...18:59
papercrane (~papercran@c-76-103-172-115.hsd1.ca.comcast.net) joined #pypy.19:05
amauryAlex_Gaynor: found the bug in test_write_rewind_write()19:08
lucian (~lucian@cpc1-newc15-2-0-cust84.gate.cable.virginmedia.com) joined #pypy.19:09
kenaan12amauryfa merge-2.7.2 11bf9a09ac155b 15/pypy/module/_io/: Test and fix in mixed read/write/seek/write operations19:11
durin42 (~durin@adium/durin42) left irc: Ping timeout: 252 seconds19:12
durin42 (~durin@173-15-14-174-Illinois.hfc.comcastbusiness.net) joined #pypy.19:14
durin42 (~durin@173-15-14-174-Illinois.hfc.comcastbusiness.net) left irc: Changing host19:14
durin42 (~durin@adium/durin42) joined #pypy.19:14
Tobu (~Tobu@unaffiliated/tobu) left irc: Ping timeout: 252 seconds19:18
CIA-1703papercrane 07roundup * 10#1016/RPython AssertionError while running async io greenlet test: 19:19
CIA-17Yep, that error comes up on Linux as the errno's are different on Linux than on19:19
CIA-17OSX. I got a version working on Linux but was unable to get the ... * 14https://bugs.pypy.org/issue101619:19
Tobu (~Tobu@unaffiliated/tobu) joined #pypy.19:22
jokey (~jokey@gentoo/developer/jokey) joined #pypy.19:24
antocuni (~antocuni@host155-125-dynamic.25-79-r.retail.telecomitalia.it) joined #pypy.19:43
mattip (~chatzilla@bzq-79-183-105-189.red.bezeqint.net) joined #pypy.19:44
mattiphi19:46
mattipanyone want to discuss logical ops on numpypy arrays?19:46
mattiphttp://paste.pocoo.org/show/539432/19:46
mattipthis is how numpy calculates logical_and19:47
mattipI'm wondering where it fits into the pypy infrastructure.19:47
whyking (~quassel@ip68-14-13-208.ri.ri.cox.net) left irc: Read error: Operation timed out19:49
mattipis there already this functionality?19:50
mattipand I just need to import it19:50
mattipor do I need to create some new functions?19:50
dmitreyAFAIK some progress toward logical operations have been done19:51
dmitreyask fijal for more details19:51
mattipdmitrey: thanks.19:51
zain (~textual@bzq-79-179-136-94.red.bezeqint.net) joined #pypy.19:58
CIA-1703arigo 07roundup * 10#1004/Sandbox only works for single-threaded code: 20:01
CIA-17[wontfix] There are other issues with threads, including the fact that we are slightly20:01
CIA-17less sure that there are no attackable bugs in threaded co ... * 14https://bugs.pypy.org/issue100420:01
lucian (~lucian@cpc1-newc15-2-0-cust84.gate.cable.virginmedia.com) left irc: Ping timeout: 240 seconds20:02
leshaste (~lesshaste@87-194-206-189.bethere.co.uk) joined #pypy.20:11
leshastehi20:11
mattip (chatzilla@bzq-79-183-105-189.red.bezeqint.net) left #pypy.20:15
zain (~textual@bzq-79-179-136-94.red.bezeqint.net) left irc: Quit: Computer has gone to sleep.20:22
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.20:23
amauryHow would you call a Lock object which raises RuntimeError when acquire() is called again from the owning thread?20:27
amauryNonReentrantLock?20:27
exarkunisn't that the default kind of lock?20:27
amaury(context: the _io module should be signal-safe)20:27
amauryno, the default lock deadlocks in this case20:27
Alex_Gaynorwhat does it do when acquired from another thread?20:28
amauryit waits20:28
Alex_Gaynorhmm, I'm not sure what to call it20:28
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Quit: pnguyen20:36
dmitrey (~quassel@77.121.195.200) left irc: Remote host closed the connection20:44
Rhy0lite (dje@nat/ibm/x-ppcsaykmlnbhbldb) left irc: Quit: Leaving20:46
squiddy (~squiddy@f053084057.adsl.alicedsl.de) left irc: Quit: Leaving20:47
fijalAlex_Gaynor: pong20:48
antocuni (~antocuni@host155-125-dynamic.25-79-r.retail.telecomitalia.it) left irc: Ping timeout: 252 seconds20:48
fijalarigato: ping20:49
Alex_Gaynorfijal: hey, do you have any opinions about exposing current JIT parameters?20:49
Alex_GaynorISTM the portal would allow this to be donesomehow20:49
fijalyeah20:49
fijalit's doable :)20:49
fijala bit annoying though20:49
fijalI would not worry personally too much20:49
fijalfor now20:49
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.20:50
Alex_GaynorI guess I can skip it, annoying though20:50
CIA-1703fijal 07roundup * 10#995/jit bug with threads: Fortunately still in /tmp/x.py on tannit ;-) http://paste.pocoo.org/show/539462/ * 14https://bugs.pypy.org/issue99520:51
Alex_Gaynorfijal: I think I had anoyher thing, but I forgot20:51
Alex_Gaynorwhat are you working on ATM?20:52
fijalright now nothing20:53
fijalI was thinking about pushing numready and writing a short blog post that we did that20:53
Alex_Gaynorgreat, I caN HELP/REVIEW20:54
Alex_Gaynoroops20:54
fijalI don't think I need that20:54
fijalI'm also working on figuring out how financial aid works with registering for pycon20:54
dmitrey (~quassel@77.121.195.200) joined #pypy.20:59
amaury (~amaury_@46-127-23-192.dynamic.hispeed.ch) left irc: Quit: Quitte21:00
amaury (~amaury_@46-127-23-192.dynamic.hispeed.ch) joined #pypy.21:00
dmitrey (~quassel@77.121.195.200) left irc: Remote host closed the connection21:01
pjenveyamaury - I'd call it 'a better Lock'.. =] how about TryLock21:01
amauryok21:02
amauryI thought there was some official name for this21:02
lizardo (lizardo@nat/indt/x-oyudojmhpvbyljkz) left irc: Quit: Leaving21:03
pjenveymaybe but not that I can remember21:03
amauryIn any case RPython code looks nicer than C21:05
Alex_Gaynor:D21:06
amauryinstead of the ENTER_BUFFERED(self)/LEAVE_BUFFERED(self) macro pais21:06
amaurypairs21:06
amauryI have a nice "with" block21:06
Alex_GaynorRPython is very nice somtimes21:10
kenaan12amauryfa merge-2.7.2 11624143b36c8d 15/pypy/module/_io/: The underlying stream of a BufferedIO can call arbitrary code, or yield to some signal handler; protect agai...21:14
amauryhere you are!21:14
fijalAlex_Gaynor: so yeah, numready21:14
Alex_Gaynorfijal: want me to make it less terrible?21:14
fijalAlex_Gaynor: mattip said flatiter branch is done (?)21:14
fijalwant to make it work maybe first21:15
Alex_Gaynor?21:15
fijalthat was about which part?21:15
Alex_Gaynorthe last two lines21:15
bbot2Started: 15http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-32/builds/1528 [12amaury, merge-2.7.2]21:15
fijalah they're unrelated :)21:15
fijalI want to make numready work21:16
fijaland the flatiter is done if you want to have a look21:16
fijalAlex_Gaynor, amaury: thanks for helping with the release btw21:16
Alex_Gaynorsure, I can take a look21:16
mvt (~mvt@53530442.cm-6-4a.dynamic.ziggo.nl) joined #pypy.21:17
Alex_Gaynorfijal: to_coords in O(n) this doesn't seem right21:19
Alex_Gaynorfijal: do slices of a flatiter create a view or copy?21:22
fijalno idea21:25
fijalcheck?21:25
Alex_Gaynorsigh, stupid numpy21:26
Alex_Gaynorok, looks like slices of flat iters do in fact copy21:26
Alex_Gaynorwho the hell knows why21:27
mattip (4fb769bd@gateway/web/freenode/ip.79.183.105.189) joined #pypy.21:27
mattiphi21:29
fijalmattip: hi21:32
mattipI got bored and had a look at your reorganization of numpypy. I like.21:33
mvt (~mvt@53530442.cm-6-4a.dynamic.ziggo.nl) left irc: Quit: ZNC - http://znc.in21:33
mattipor would you rather have a whole new set of logical ops?21:34
mattipI noticed that there are some failing tests. Would you like help?21:34
mvt (~mvt@53530442.cm-6-4a.dynamic.ziggo.nl) joined #pypy.21:35
fijalmattip: what failing tests21:36
mattipI'm now away from that box, but I "hg up"ped to numyp-back-to-applevel, and played around.21:38
mattipas expected when I ran tests, some failed since it's not done yet, right?21:38
mattip(32 bit linux ubuntu)21:38
fijalah right21:39
fijalback-to-applevel is horribly broken21:39
fijalthats' ok :)21:39
mattipso I can do one of four things now:21:41
mattip- try to add new logical functions21:42
mattip- try to work on numpy-back-to-applevel21:42
mattip- try to clean u the windows nightly build so it passes more tests21:42
mattip- get a good night'ssleep21:43
mattipanyone care to vote?21:43
fijalhahaha21:44
fijalI bet the last item is the best21:44
fijalas far as I'm concerned it makes most sense if you do 4) than 1)21:44
mattipcool. I'll take a look tomorrow.21:46
mattipAlex_Gaynor: I couldn't figure out a better way to calculate coords from indices since they do not map nicely to slices.21:48
Alex_Gaynormattip: that also makes __getitem__ on flatiter O(n) though, right?21:49
mattipyes21:49
mattip:(21:49
kenaan12fijal numpy-back-to-applevel 119c6ebf53fca0 15/: minor improvements21:49
Alex_Gaynorwell, maybe not, if I'm reading correctly there's only a single iteration21:50
mattipno, there are two.21:50
mattipone in the calculation of the coords21:50
mattipand one to get the actual values21:50
kenaan12fijal numpy-back-to-applevel 11f35e55900c6e 15/pypy/module/micronumpy/interp_boxes.py: a test commit21:51
Alex_Gaynorright21:51
mattipCan't we claim using an iterator for getitem is a non-recommended API in the docs somewhere?21:52
fijalno21:52
fijalgetitem should do calculations21:52
fijallike item % shape[0], ...21:52
andrewfr (~andrew@modemcable211.101-70-69.static.videotron.ca) joined #pypy.21:53
mattipI created a separate function to do that: _to_coords21:53
fijalso what;'s wrong?21:54
mattipbut then flatiter's getitem calls _to_coords - looping through the sequence - then call the underlying array's getitem with the list of coords - looping again.21:54
Action: fijal is confused21:55
Alex_Gaynorfijal: read the code :)21:55
fijalok21:55
mattip_to_coords is in flatiter's getitem, not in BaseArray's getitem21:55
aboudreault (~alanb@osgeo/member/aboudreault) left irc: Read error: Operation timed out21:55
fijalcan you paste the name of the branch including all typos?21:55
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Read error: Connection reset by peer21:55
hruske (~Gasper@188-230-156-183.dynamic.t-2.net) joined #pypy.21:56
Action: mattip blush21:56
mattipnumppy-flatitter21:57
kenaan12fijal numpy-back-to-applevel 1127230fad5112 15/pypy/module/micronumpy/interp_boxes.py: add another test commit21:59
bbot24Failure: 15http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-32/builds/1528 [12amaury, merge-2.7.2]22:02
stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) left irc: Read error: Connection reset by peer22:02
stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) joined #pypy.22:02
ltratt (~ltratt@87.114.126.76) left irc: Quit: using sirc version 2.211+KSIRC/1.3.1222:05
fijalok read22:06
fijalthis is ugly, but not wrong complexity no?22:06
fijalmattip: it's enough to convert start and stop22:06
fijaland then you can skip steps22:06
fijaljust use an iterator22:06
fijaluh no22:07
fijalthis is super ugly22:07
mattipwhat happens if start is (0,5) and stop is (1,3) ?22:07
andrewfr (andrew@modemcable211.101-70-69.static.videotron.ca) left #pypy.22:07
fijalmattip: you know how many numbers you want, don't you?22:08
mattipyes.22:08
fijalyou create an iterator at position "start"22:08
fijaland you iterate it as many times as needed to get N elements22:08
fijalskipping steps22:08
mattipgood.22:08
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.22:09
fijalI think I don't care that much about iterating over steps22:09
fijallet's say22:09
mattipnow I have something to do. There were 5 possibilities.22:09
tilgovi (~randall@couchdb/developer/tilgovi) joined #pypy.22:10
amauryhugh22:10
amaury>>>> os.path.exists('/tmp\x00unlikely')22:10
amauryTrue22:10
tumbleweedfwiw, I've requested a sync of pypy into Ubuntu: https://launchpad.net/ubuntu/precise/+queue22:10
fijalhm22:11
fijalAlex_Gaynor: can you think about running numpy docstrings btw?22:11
fijaltumbleweed: cool!22:11
Alex_Gaynorfijal: I'm sure I can think about it, can you be more precise thoguh?22:11
Alex_Gaynortumbleweed: FWIW I know Barry Warsaw has it in a ppa22:11
fijaltumbleweed: amaury and Alex_Gaynor are merging 2.7.2 and armin fixed some bugs22:11
fijalAlex_Gaynor: as in "can we run them as tests"22:11
fijalor can we export them as tests22:11
fijaleither way22:11
Alex_Gaynorfijal: somehow, with doctest, probably22:12
tumbleweedAlex_Gaynor: yeah, I was wanting him to try and do an arm build. He works at canonical and so can get arm in his ppa22:12
fijalI would be maybe slightly happier with a file export22:12
Alex_Gaynoramaury: due to a bug, or you happen to have that file?22:13
Alex_GaynorI guess if you use null padded str that'd be a bug22:13
mattipfijal: I think I lost your train of thought: "I think I don't care that much about iterating over steps; let's say" ?22:13
amaurytry it yourself:22:13
amauryI have /tmp of course22:13
amauryand when /tmp\x00abcd is passed to open() or access()22:14
Alex_Gaynoramaury: pypy or cpython?22:14
amaurythere is a zero in the middle of char*22:14
amauryfour angles >>>>22:14
fijalmattip: I mean if you call iter.next() step times22:14
amaurypypy!22:14
Alex_Gaynoryay, pypy bug22:15
amauryCPython has a check for NUL bytes22:15
fijalAlex_Gaynor: there is another thing which I'm increasingly worried about22:15
Alex_Gaynorfijal: WRT what?22:15
Alex_Gaynoramaury: CPython should write a test, and we should fix it :)22:15
amauryit has one, in test_site22:15
Alex_Gaynorthat's a silly place for it22:16
fijalAlex_Gaynor: we have iterators that are very costly to use if they're not jitted22:16
amauryA bit indirect I confess22:16
Alex_Gaynorfijal: is there any point in using them without the JIT?22:16
fijalto be precise we do immutable reallocation precisely because when they get jitted it's efficient22:16
fijalwell, yes sometimes22:16
Alex_Gaynoramaury: AH, is this why this test fails?22:16
fijalor maybe22:16
fijalbut that means sticking jitdrivers to places like flatiter.getitem22:16
fijalbut also I have cases where it's inconvinient22:16
Alex_Gaynorfijal: well, I claim let's take it one step at a time22:17
amauryAlex_Gaynor: yes22:17
fijalso what I would need to do is to reallocate them without changing data22:17
Alex_Gaynorfijal: what do you mean?22:17
Alex_Gaynoryou mean make .next() inplace?22:17
fijalI have in a loop:22:17
fijalif something:22:17
fijaliter = iter.next()22:17
fijalelse:22:17
fijaldo_nothing22:17
fijalso right now I would have to write iter = iter.next_do_nothing()22:18
fijalor something dumb like this22:18
Alex_Gaynorright, so they're both virtual22:18
fijalright22:18
fijalbut this is super silly22:18
Alex_Gaynora bit, yes22:18
fijalbecause I have to care about reallocating them22:18
fijalright now I just didn't do it22:18
fijalbecause it's code explosion22:19
Alex_Gaynorok, we can always make changes later22:19
fijalso I stuck with the simples possible version for now22:19
Alex_Gaynorit's not like it isn't pretty easy to spot in traces22:19
fijalno22:19
fijalalso bridges22:19
fijaland whatnot :)22:19
fijalbut yes, later22:19
Alex_Gaynorlater22:20
Alex_Gaynorfor now, let's get stuff working, and have core stuff fast22:20
fijalI already have a few jit optimizations in mind22:20
fijalwell22:20
fijalit's not fast as of now22:20
Alex_Gaynorgive them to hakanardo :)22:20
azanella (~azanella@189.6.80.131) left irc: Ping timeout: 244 seconds22:20
fijalsome axis stuff or something like that increases iterators sometimes22:20
Alex_Gaynor?22:25
Tobu (~Tobu@unaffiliated/tobu) left irc: Ping timeout: 272 seconds22:25
mattiparggh. numpy can do this:  a.flat[2,3,-7, 0]22:26
fijalwhat does it do?22:26
Alex_Gaynorreally?22:26
Alex_Gaynorfor me it raises an Exception22:26
mattipnumpy.version.version =='1.3.0'22:27
Alex_Gaynorthat's old :)22:27
mattipa=numpy.arange(12).reshape(3,4).T22:28
Alex_GaynorI'm on 1.622:28
mattipcentos 6.122:28
mikefc__ (3cf2f0c4@gateway/web/freenode/ip.60.242.240.196) joined #pypy.22:28
fijalAlex_Gaynor: that's old :)22:29
Alex_Gaynorheh22:29
mattipwell good then, can we just not support uneven steps within the sequence?22:30
fijal"uneven steps"?22:31
mattipyes: a.flat[2,3,7,8]22:31
fijalit does not work on a recent numpy, what's the problem?22:31
Alex_Gaynorflat doesn't support tuple indexing in getitem at all in 1.622:32
Alex_Gaynor(well, excpet 0 or 1-item tuples)22:32
Action: mattip has to upgrade :(22:32
mattipsomeone today asked what numpy API is our target, do we have an answer we can stick in a WIKI page?22:33
hruske (~Gasper@188-230-156-183.dynamic.t-2.net) left irc: Quit: Leaving22:36
Tobu (~Tobu@unaffiliated/tobu) joined #pypy.22:37
tumbleweedpoke again: Committable? http://anonscm.debian.org/gitweb/?p=collab-maint/pypy.git;a=blob;f=debian/patches/compiler-flags22:39
harrisonpartch (~sr@69.209.201.172) left irc: Remote host closed the connection22:39
Alex_Gaynortumbleweed: It looks ok to me, but run it by fijal or someone22:40
fijal+122:40
fijalfreebsd buildbot never worked so I really don'22:40
fijalt care22:40
tumbleweedthanks22:41
tumbleweedthere are still the dead cflags and ldflags translation command line arguments, which should probably be removed or used22:41
kenaan12fijal default 11a56e47f860e4 15/pypy/module/micronumpy/tool/numready.py: This file belongs here for now22:41
kenaan12fijal buildbot 11fdaf7c879572 15/: remove numready from here22:42
Alex_Gaynorfijal: ok, I'm going to try to make numready be less awful now22:42
Alex_Gaynorwell, tonight22:42
aboSamoor (~rmyeid@nbl.cewit.stonybrook.edu) left irc: Read error: Operation timed out22:42
kenaan12stefanor default 11173aa3e5cde0 15/pypy/translator/platform/: Get additional compiler and linker flags from the environment (rather than ignoring them on linux, and replacing...22:43
amaurypypy should reject filenames with NUL bytes22:43
amaurythis could be done in ll_os.py and others, but it may have performance impact22:44
amaurynon jittable functions for example22:44
mattip (4fb769bd@gateway/web/freenode/ip.79.183.105.189) left irc: Quit: Page closed22:44
Alex_Gaynoramaury: shrug, so it'll have a performance impact, that's life :)22:44
aboSamoor (~rmyeid@nbl.cewit.stonybrook.edu) joined #pypy.22:45
arigatoshouldn't it be done in str2charp() directly?22:45
Alex_Gaynorthe problem is str2charp cuts things off, that's the point22:46
amaurynot always22:46
amauryos.write() probably uses str2charp as well22:46
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Quit: pnguyen22:46
Alex_Gaynorno, it probably uses str2charpn22:47
Alex_Gaynoror so22:47
Alex_Gaynorsince it's valid to have a NUL in a write clal22:47
amauryactually, it uses rffi.get_nonmovingbuffer22:47
amauryso you may be right22:47
Alex_Gaynorfijal: uhhh, your commit to builds.py is a syntaxError22:48
bja (~bja@69.11.216.98) joined #pypy.22:48
tumbleweedwhile we're talking about not caring about freebsd, here's another pair that I needed to get pypy behaving on Debian GNU/kFreeBSD http://anonscm.debian.org/gitweb/?p=collab-maint/pypy.git;a=blob;f=debian/patches/kfreebsd-glibc http://anonscm.debian.org/gitweb/?p=collab-maint/pypy.git;a=blob;f=debian/patches/kfreebsd-test-hangs22:51
aboSamoor (~rmyeid@nbl.cewit.stonybrook.edu) left irc: Ping timeout: 240 seconds22:51
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.22:51
tumbleweedsys.platform = gnkfreebsdX so one wants startswith freebsd when checking for FreeBSD's libc, and 'freebsd' in for checking for a FreeBSD kernel22:52
Alex_Gaynortumbleweed: in those expressions, can you use any()22:52
Alex_Gaynorit reads much more cleanly to me that way22:52
Alex_Gaynor(first patch)22:52
Alex_Gaynorsecond patch is fine22:53
tumbleweedsure22:53
aboSamoor (~rmyeid@nbl.cewit.stonybrook.edu) joined #pypy.22:54
tilgovi (~randall@couchdb/developer/tilgovi) left irc: Remote host closed the connection22:54
fijalAlex_Gaynor: uhhhh22:54
Alex_Gaynorfijal: ?22:54
fijalAlex_Gaynor: I did not mean to commit there :/22:54
Alex_Gaynorfijal: uncommit it!22:54
kenaan12fijal buildbot 11166c710d4406 15/bot2/pypybuildbot/builds.py: this was not supposed to be commited22:55
fijaldone22:55
fijalarigato: seen my bug report update?22:55
amaurybah22:55
amauryraise OperationError(space.w_TypeError) from rffi.str2charp is not easy22:56
fijalno22:56
Alex_Gaynoramaury: I don't think it's correct there anyways22:56
fijalamaury: what we do is we raise TypeError and reraise it as OperationError at the call site22:56
Alex_GaynorIt's not correct to do it in rffi.str2charp AFAICT22:57
amauryor have a specific RPython exception for this22:57
amauryAlex_Gaynor: where would you do it22:57
fijalfor example22:57
amauryin all posix functions?22:57
fijalhm22:57
Alex_Gaynoramaury: probably at each specific callsite where it should be checked22:57
Alex_Gaynor:/22:57
Alex_Gaynormaybe not22:57
fijalshouldn't we just use rffi.str2charpn always?22:57
Alex_Gaynorfijal: there is no sr2charpn I'm stupid22:58
amauryCPython checks this in the "s" argument code22:58
Alex_Gaynorstr2charp already has the length (of course)22:58
fijaluh right22:58
fijalamaury: maybe we can check it in "str" argument then?22:58
aboSamoor (~rmyeid@nbl.cewit.stonybrook.edu) left irc: Ping timeout: 245 seconds22:58
dripton (~dripton@pool-72-86-45-238.clppva.fios.verizon.net) joined #pypy.22:58
fijalit sounds a bit obscure if you ask me that strp2charp can raise something else than MemoryError22:58
Alex_Gaynorit's not correct in str argument, and we have no char* argument type22:59
amauryand use "bufferstr" when NUL is allowed22:59
bbot2Started: 15http://buildbot.pypy.org/builders/own-macosx-x86-32/builds/78523:00
bbot2Started: 15http://buildbot.pypy.org/builders/jit-benchmark-linux-x86-64/builds/21423:00
bbot2Started: 15http://buildbot.pypy.org/builders/jit-benchmark-linux-x86-32/builds/102423:00
bbot2Started: 15http://buildbot.pypy.org/builders/jit-benchmark-linux-x86-64-2/builds/4123:00
aboSamoor (~rmyeid@130.245.191.56) joined #pypy.23:00
fprimex (~brent@fl-67-233-144-239.dhcp.embarqhsd.net) left irc: Quit: happier days, hopefully!23:01
kenaan12amauryfa default 1136fefb3d271e 15/pypy/: a, b = space.unpackiterable(w_obj, 2) is not supposed to raise ValueError23:01
kenaan12stefanor default 1126b2fb7939ee 15/pypy/: Debian kFreeBSD uses glibc  Check for sys.platform.startswith("freebsd") when the check is for FreeBSD's userlan...23:02
kenaan12stefanor default 1167ae2044a17f 15/pypy/module/: Test hangs on kfreebsd23:02
fijalhttp://paste.pocoo.org/show/539524/23:04
fijalAlex_Gaynor: ?23:04
Alex_Gaynorfijal: looks like buildbot nonsense to me :)23:05
Alex_GaynorI suppose it works though23:05
asmeurer (~asmeurer@dhcp-baca-230.resnet.nmt.edu) left irc: Ping timeout: 255 seconds23:05
fijalhttp://paste.pocoo.org/show/539526/23:05
kenaan12fijal buildbot 11fbcf930f4155 15/bot2/pypybuildbot/builds.py: try to upload numpy compatibility website when doing benchmarks23:06
amauryIn CPython, PyArg_ParseTuple(args, "s", ...) reject NUL bytes23:07
amauryPyArg_ParseTuple(args, "s#", ...) accepts NUL bytes23:07
amaurybut you must pass a variable to hold the length23:07
fijalthat's a very comprehensive API description23:07
fijalalmost like immutable_fields23:08
amauryin pypy, we use unwrap_spec(x=str) in both cases23:08
amauryfor example, inet_aton() and inet_ntoa()23:09
fijalhow about bufferstr?23:09
amauryyes23:09
Alex_Gaynorbufferstr is a 3rd thing23:09
amaurybut every function must be checked23:09
Alex_Gaynorisn't it?23:09
amauryin CPython, s# also works for buffer-compatible objects23:10
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Quit: pnguyen23:11
Alex_Gaynorperhaps we should just add a new one23:11
amaurywhich is?23:12
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.23:12
fijalnonnullstr23:12
fijal?23:12
amaurywhat for?23:12
fijalnot sure23:12
fijalno idea23:12
fijalhow many cpython has?23:12
amaury"s": string with no NUL -> char*23:13
amaury"s#": any -> char*, size_t23:13
amaury"s*": buffer-like -> struct Py_Buffer23:13
amaury"s#": buffer-like -> struct Py_Buffer23:14
amaury(the 2nd was incorrect)23:14
Alex_GaynorCPython is scary23:14
amauryerr, sorry again23:14
fijalwhat's the difference between s# and s*?23:14
fijalyes please :)23:14
amaury"s#": buffer-like -> char*, ssize_t23:14
amaury"s*": buffer-like -> struct Py_Buffer23:15
amauryok23:15
tilgovi (~randall@couchdb/developer/tilgovi) joined #pypy.23:22
amaurywe don't really care of Py_buffer, since RPython strings have a length23:22
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) left irc: Quit: pnguyen23:22
pnguyen (~pnguyen@cpe-70-112-214-119.austin.res.rr.com) joined #pypy.23:24
zain (~textual@bzq-79-179-136-94.red.bezeqint.net) joined #pypy.23:26
bja (~bja@69.11.216.98) left irc: Read error: Connection reset by peer23:28
bja (~bja@69.11.216.98) joined #pypy.23:31
whitelynx (~whitelynx@63.241.75.144) left irc: Quit: Ex-Chat23:34
voidspace (~voidspace@87-194-212-65.bethere.co.uk) joined #pypy.23:47
voidspace (~voidspace@87-194-212-65.bethere.co.uk) left irc: Changing host23:47
voidspace (~voidspace@python/psf/voidspace) joined #pypy.23:47
arigato (~arigo@adsl-89-217-233-144.adslplus.ch) left irc: Ping timeout: 252 seconds23:53
amaury (~amaury_@46-127-23-192.dynamic.hispeed.ch) left irc: Ping timeout: 252 seconds23:59
--- Tue Jan 24 201200:00

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!