Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'broken': 0.04; 'cpython': 0.05; '(so': 0.07; 'fixes': 0.07; 'made.': 0.07; 'arrays': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'far)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'underlying': 0.16; 'elements': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; '(such': 0.24; 'large,': 0.24; 'java': 0.24; 'post': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'array': 0.29; 'possibility': 0.29; 'problem': 0.35; 'no,': 0.35; 'should': 0.36; 'implement': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'extended': 0.61; 'length': 0.61; 'today.': 0.61; 'full': 0.61; 'charset:windows-1252': 0.65; 'within': 0.65; 'computers': 0.72; 'million': 0.74 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Serhiy Storchaka Subject: Re: Bug in timsort!? Date: Thu, 26 Feb 2015 09:33:07 +0200 References: <1cf84559-3a63-4799-a879-ae8e513d387e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 193.202.118.167 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424935994 news.xs4all.nl 2902 [2001:888:2000:d::a6]:54481 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86481 On 25.02.15 18:56, Chris Kaynor wrote: > While the CPython implementation was only broken for arrays of length > larger than 2**49, aka, practically not broken, the Java > implementation (such as used on Android phones) was broken with arrays > of length > 67,108,864 at the time the post was made. While still very > large, an array of 67 million elements is well within the realm of > possibility today. The Java fixes (so far) have only extended the > number out, rather than actually fix the underlying problem - the > CPython fixes that were committed implement the full proven fix, so > CPython should now be able to handle infinite length arrays (once we > can build computers with that much storage...). No, it is limited to arrays with length < about 2**64.