Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'decent': 0.07; 'python': 0.08; '21,': 0.09; 'similarities': 0.09; 'am,': 0.12; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; '"normal"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parks': 0.16; 'travis': 0.16; 'mon,': 0.16; 'language,': 0.17; 'language': 0.17; 'wrote:': 0.18; 'programming': 0.21; '(or': 0.22; 'header:In-Reply-To:1': 0.22; 'statement': 0.23; 'indentation': 0.23; 'reference.': 0.23; 'compiled': 0.25; 'code': 0.25; 'language.': 0.28; '(you': 0.28; 'message-id:@mail.gmail.com': 0.28; 'nov': 0.29; "i've": 0.31; 'actual': 0.32; 'pretty': 0.32; 'to:addr:python-list': 0.34; 'languages': 0.35; 'example,': 0.37; 'but': 0.37; 'reference': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'received:209.85': 0.38; 'programming.': 0.39; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'more': 0.61; '2011': 0.61; 'your': 0.61; 'subject': 0.62; 'yourself': 0.69; '11:46': 0.84; 'compiles': 0.84; 'partially': 0.84; 'subject:Reference': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xn+dE9hNswRapKsXx/9wTUCjGQuP1YPyk+zLS7ZCtzM=; b=FemveriZF3dSB67u5jV/lBcDnw5fRxSqgwC16CnlHBSdSe3nHtgBLOvyYgFzlicJw6 gBwgPqQQ6Ng/5kzwMcptKNU5J5v282/YfGlibJFT69agmcbPgmRtE9wnVQQ5DmFzv+9M 8iSrJllsLb3tz59aXxRDjrlAbD3cP35Pwz5VA= MIME-Version: 1.0 In-Reply-To: <79379487-0081-4067-92ed-c6717652e1ff@y7g2000vbe.googlegroups.com> References: <79379487-0081-4067-92ed-c6717652e1ff@y7g2000vbe.googlegroups.com> Date: Mon, 21 Nov 2011 13:33:21 +1100 Subject: Re: Using the Python Interpreter as a Reference 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.12 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321842811 news.xs4all.nl 6905 [2001:888:2000:d::a6]:47574 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15977 On Mon, Nov 21, 2011 at 11:46 AM, Travis Parks wrote: > I am currently working on designing a new programming language. It is > a compiled language, but I still want to use Python as a reference. > Python has a lot of similarities to my language, such as indentation > for code blocks, lambdas, non-locals and my language will partially > support dynamic programming. If you want to use Python as a reference for designing your language, look at the documentation. It's pretty decent on the subject of language specs (you may find yourself reading a lot of PEPs as well as the "normal" docs). But for actual code - you may want to look at Cython. I've never used it, but it compiles Python code to C (IIRC); that's more likely to be what you're after. What's your language's "special feature"? I like to keep track of languages using a "slug" - a simple one-sentence (or less) statement of when it's right to use this language above others. For example, Python is optimized for 'rapid deployment'. ChrisA