Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'languages,': 0.04; 'subject:Python': 0.06; 'binary': 0.07; 'incompatible': 0.07; 'performs': 0.09; 'yeah,': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'janssen': 0.16; 'subject:Java': 0.16; 'switches': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'input': 0.22; 'manual': 0.22; 'saying': 0.22; 'load': 0.23; 'parse': 0.24; 'text,': 0.24; 'text.': 0.24; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; '[1]': 0.29; 'am,': 0.29; 'primarily': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'loading': 0.31; 'this.': 0.32; 'text': 0.33; 'fri,': 0.33; 'could': 0.34; 'subject: (': 0.35; 'received:google.com': 0.35; 'data,': 0.36; "i'll": 0.36; 'so,': 0.37; 'two': 0.37; 'level': 0.37; 'represent': 0.38; 'to:addr:python-list': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'guy': 0.60; 'entire': 0.61; 'matter': 0.61; "you're": 0.61; 'back': 0.62; 'high': 0.63; 'story': 0.63; 'term': 0.63; 'today': 0.64; 'cards': 0.65; 'computers': 0.72; 'cut': 0.74; 'analysis': 0.75; '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=2nRB3k4Yw3XIYkBryTNXYhdLmSi+6o46/clN0d85WPY=; b=jdDs03HtujnNPIwOhXOXAkq9jis+enlC89xIS22SmZ823udU+4Meav6bYLL2E1ls/q JcysWOfjyNxBeMAo7e2dL6KosfDJNIcBn9OKBfrmCKXT+ITH2kryF4dJ44o9KktKoV9w Le4gbWZbj8l35Ral81oi9r945FRMc1nS1kUZ5U69s9MvVEK3ahG9ouYm/KDJvFsHTE5k 7gMFP4hYrZ54Fl0cwgEPihvtP5+9o6h/ByLNBGiWEcTCBXe6U8jfm6dzduloKnPche8F xBsRov85vHvreuWYdZ3hwbD8/O+QQF1Z4YORuuujQwL61nuRTDnLg8i6V52Zip+K2Fsy UKLg== MIME-Version: 1.0 X-Received: by 10.66.65.108 with SMTP id w12mr2023841pas.183.1382022020486; Thu, 17 Oct 2013 08:00:20 -0700 (PDT) In-Reply-To: References: <525F33BD.80409@nedbatchelder.com> <525F46F5.10802@nedbatchelder.com> Date: Fri, 18 Oct 2013 02:00:20 +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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382022029 news.xs4all.nl 15986 [2001:888:2000:d::a6]:45949 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56964 On Fri, Oct 18, 2013 at 1:49 AM, Mark Janssen wrote: > It's like this. No matter how you cut it, you're going to get back to > the computers where you load instructions with switches. At that > point, I'll be very much looking in anticipation to your binary-digit > lexer. Even when computers were primarily programmed in high level languages, boot code could still be toggled in with manual switches. There's a story around someplace of a guy who did that _over the phone_ and, if I recall correctly, without a reference manual - which would mean he had the entire boot code for that computer memorized. So, yeah, loading instructions with switches isn't incompatible with lexing, though I don't know if that term existed at the time. Ultimately, computers work with data, which can be represented (and inputted) with binary states like switches, and can itself represent text. To parse text, a computer performs analysis on binary data. Someone could today build a computer that takes input on punched cards or switches or a Navajo saying A'la'ih and Do'neh'lini [1], and then parse the corresponding text as (say) C code. The two are completely orthogonal. ChrisA [1] if http://xkcd.com/257/ is correct