Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.unit0.net!news2.euro.net!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.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.05; 'executable': 0.07; 'compilers.': 0.09; 'subject:Why': 0.09; 'subject:create': 0.09; 'language,': 0.11; 'language': 0.14; 'example)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hex': 0.16; 'necessity.': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.17; "i'd": 0.22; 'programming': 0.23; 'device': 0.24; 'header:In-Reply-To:1': 0.25; 'wrote': 0.26; 'am,': 0.27; 'compiled': 0.27; 'language.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'mid': 0.29; 'subject:like': 0.29; 'fri,': 0.30; 'programming,': 0.33; 'to:addr:python-list': 0.33; 'everyone': 0.33; 'received:google.com': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'operating': 0.36; 'editor': 0.37; 'level': 0.37; 'uses': 0.37; 'systems,': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'talk': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'networking': 0.60; 'high': 0.61; 'direct': 0.69; '100%': 0.76; 'low': 0.83; '(your': 0.84; '2013': 0.84; 'level"': 0.84; 'dennis': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=0uHjONGBNckaYALHvIc/N1zh1+r3IC37mxR9gnewmHo=; b=y2ZidlDSH48I3GNHxXHVUz0Bejdnbve1JPu89lFR0JvwJOsPdWWO/uX6uYifUfNlc+ E0gb8bolz70yD9zhLg1nAqTzidPla8r9y8ITW5KqYkitE/QWx9gK/N2XNQjzHXCXvDXr HzDh4pBoAPG1st/5LRKta9vJlE7gY59pcFxIr2uw8h8p4UVLCThdkdVFZuXG5czh6S54 h+Zv0QU8F6VhU1cZBsasEGTyHdWMpUd9xTXUFFEishWy/B++VJC88N7XuARXdh1EHIJe qDS51mZqato0o+r0cze8FGeeKsldsAFKBbZIn1+4cjUvSPcPJmYGpPVTS1BYkFjetuQo 9d/A== MIME-Version: 1.0 X-Received: by 10.52.67.164 with SMTP id o4mr2698689vdt.42.1362085837397; Thu, 28 Feb 2013 13:10:37 -0800 (PST) In-Reply-To: References: Date: Fri, 1 Mar 2013 08:10:37 +1100 Subject: Re: Why is it impossible to create a compiler than can compile Python to machinecode like C? 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362085840 news.xs4all.nl 6973 [2001:888:2000:d::a6]:56488 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40180 On Fri, Mar 1, 2013 at 7:50 AM, Matty Sarro wrote: > C (your example) was intended for very low level programming, things like > operating systems, device drivers, networking stacks, where the speed of a > compiled executable and direct access to hardware was a necessity. That's > what Dennis Ritchie wrote it for. We call it a "mid level" programming > language, or a "low level" programming language depending on who you talk > to. I'd have to say mid level because low level would be writing in assembly > or playing with a hex editor :) Assembly is for people who write C compilers. C is for people who write language interpreters/compilers. Everyone else uses a high level language. Not 100% accurate but a reasonable rule of thumb. ChrisA