Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'subject:Python': 0.06; '22,': 0.09; 'components,': 0.09; 'correct,': 0.09; 'scripting': 0.09; 'python': 0.11; 'language.': 0.14; 'scripting.': 0.16; '\xc2\xa0i': 0.16; 'language': 0.16; 'wrote:': 0.18; 'written': 0.21; 'code,': 0.22; 'email addr:gmail.com>': 0.22; 'switched': 0.24; 'mon,': 0.24; '>': 0.26; 'primary': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; 'libraries': 0.31; 'piece': 0.31; 'sep': 0.31; 'received:209.85.212': 0.32; 'basic': 0.35; 'received:209.85': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'shows': 0.36; 'too': 0.37; 'received:209': 0.37; 'performance': 0.37; 'being': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'short': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'games,': 0.60; 'ian': 0.60; 'full': 0.61; 'such': 0.63; 'stand': 0.64; 'provide': 0.64; 'believe': 0.68; '1:00': 0.84; 'civilization': 0.84; 'games.': 0.84 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=3w99jGDWyVJ4VqL5aTMdnaiqrdPBu+fUTDEb9gEt+ig=; b=YfrqwBdsPQRn8RqkDJjpokxfmBtOZkXSZ7NuExWF5yBKkJC9V9LB1ds0XVF6OOCCY6 RW09yuVwaW2ODmbXVV6bRn3c1FMSmFWCHx2NNPy0J5zd9Ql7UsTK/khup8jDE2NxuXOL fHiYR2P1NizGBMmxnbTkTMH7ZTSY3bPbKQbt0C0hGXsNncHlJUt4BFtR6NhhR6gU9Lnp qM7xCKAsJlryhdcoOPida0tBlc4MWAg5qB1qsa7GQlUqL00HskXuMsaA1cvCuHVUm44U BYC9xAeiV7OmJw58ZK0zsmvQZtfGrukjqMq4a15bwTyAoJO4TpuMWqJdasOs3FqnzoBN Evsg== X-Gm-Message-State: ALoCoQngXIUdljeVotLt4Y0lPsgPJNd81vIiglhmmJk+PhoVR59bYYuvaC8Ag92R81/8VRc/UgR0 X-Received: by 10.180.38.114 with SMTP id f18mr17956922wik.24.1411423204312; Mon, 22 Sep 2014 15:00:04 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <9b76b07d-db88-4e08-9abe-10df1ac9953e@googlegroups.com> From: Chris Kaynor Date: Mon, 22 Sep 2014 14:59:44 -0700 Subject: Re: Python advice To: Python Content-Type: multipart/alternative; boundary=e89a8f6439c6b8aca40503ae9257 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: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411423206 news.xs4all.nl 2978 [2001:888:2000:d::a6]:42822 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78184 --e89a8f6439c6b8aca40503ae9257 Content-Type: text/plain; charset=UTF-8 On Mon, Sep 22, 2014 at 12:39 PM, Ian Kelly wrote: > On Mon, Sep 22, 2014 at 1:00 PM, Chris Kaynor > wrote: > > Python is pretty good base-line language. It is really good as a glue > > language to piece together other components, or for IO-bound or > user-bound > > code, but will not preform well enough for many other applications such > as > > games. It is good for short parts of games, but a full next-gen engine > would > > be much too slow if written in pure Python, however Civilization 5 uses > > Python as its scripting language. There are also libraries available that > > can provide enough performance to do basic games in Python. > > Correction: Civilization 4 used Python for scripting. For Civilization > 5 they switched to Lua, I believe for performance-related reasons. > I stand corrected. A quick search shows you are correct, for all of Civ4 using Python, Civ5 using Lua, and the primary reason being performance. --e89a8f6439c6b8aca40503ae9257 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Sep 22, 2014 at 12:39 PM, Ian Kelly <ian.g.kelly@gmail.com>= wrote:
On Mon, S= ep 22, 2014 at 1:00 PM, Chris Kaynor <ckaynor@zindagigames.com> wrote:
> Python is pretty good base-line language. It is really good as a glue<= br> > language to piece together other components, or for IO-bound or user-b= ound
> code, but will not preform well enough for many other applications suc= h as
> games. It is good for short parts of games, but a full next-gen engine= would
> be much too slow if written in pure Python, however Civilization 5 use= s
> Python as its scripting language. There are also libraries available t= hat
> can provide enough performance to do basic games in Python.

Correction: Civilization 4 used Python for scripting. For Civilizati= on
5 they switched to Lua, I believe for performance-related reasons.
= =C2=A0
I stand corrected. A quick search shows you are correct, = for all of Civ4 using Python, Civ5 using Lua, and the primary reason being = performance.

--e89a8f6439c6b8aca40503ae9257--