Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.073 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'subject:Python': 0.06; 'integers': 0.09; 'python': 0.11; 'language,': 0.12; 'example)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'perceived': 0.16; 'string).': 0.16; 'subject:Java': 0.16; 'wrote:': 0.18; 'integer': 0.24; '15,': 0.26; 'second': 0.26; '(for': 0.26; 'header:In-Reply-To:1': 0.27; 'absolute': 0.30; 'message-id:@mail.gmail.com': 0.30; '(which': 0.31; 'code': 0.31; 'agreed.': 0.31; 'comparison': 0.31; "d'aprano": 0.31; 'second,': 0.31; 'steven': 0.31; "we're": 0.32; 'quite': 0.32; 'computer.': 0.33; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'checks': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'major': 0.40; 'even': 0.60; 'is.': 0.60; 'more': 0.64; 'relatively': 0.65; 'optimized': 0.68; '1990s.': 0.84; 'calculations': 0.84; 'hardly': 0.84; 'modern,': 0.84; 'rexx,': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qYlUCtBI8DszR/u5Jz9CecABOvv683QzGu7zvFvGdds=; b=v8CNYq86fzA0CaKqcYbey4Kgzk9vEozlNM9pm5vaxHZSZhMZFBFgLP2CgplbW7/xgE 3C/op2zbnfW1PUBTuuk5xCkCwxjuef3tE5s7ik1YPiARY5zu3tE9vTJL9OAeoDbod3pG wsslDBTJ2I3dFXwym8noX0TWX4gt5EZdxv0eDtrxidQrVw5pxYMqBvLJWWPkw2qZae+U K9T4nuw9TjswwWewYnKVBjI+B9ONywxaFETHrapzUfd2/ojGmNx4N/4h6MHYiD/jl8TT Whw3959r3LGBtM4BDu35Ueq036JM3XkaADx5Ytcr2ql9PTsngRHPs3knGDA1fZ5ZDb3Q jTwg== MIME-Version: 1.0 X-Received: by 10.68.200.200 with SMTP id ju8mr82842pbc.172.1381807743440; Mon, 14 Oct 2013 20:29:03 -0700 (PDT) In-Reply-To: <525cb400$0$29984$c3e8da3$5496439d@news.astraweb.com> References: <525cb400$0$29984$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 15 Oct 2013 14:29:03 +1100 Subject: Re: Python was designed (was Re: Multi-threading in Python vs Java) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1381807747 news.xs4all.nl 15927 [2001:888:2000:d::a6]:55792 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56841 On Tue, Oct 15, 2013 at 2:18 PM, Steven D'Aprano wrote: > Even using vanilla CPython, you can write pure > Python code that (for example) checks over 12,000 nine-digit integers for > primality per second, on a relatively old and slow computer. If that's > not *fast*, nothing is. Agreed. I used to do my major numeric calculations in OS/2 REXX, which served me quite well in the 1990s. But Python smokes it, even the oh-so-slow Python 3 where every integer is a bignum (which is fair comparison against REXX, where every number is... uhh... a string). A modern, optimized language, even one that's perceived as "slow", is able to do many orders of magnitude more calculations per second than a human can.... okay, that's hardly fair, but it's about the only absolute we're ever going to get :) ChrisA