Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10792

Re: Early binding as an option

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'permissions': 0.04; 'skip': 0.04; 'interpreter': 0.07; 'bits.': 0.09; 'server,': 0.12; 'wed,': 0.12; 'am,': 0.13; 'wrote:': 0.15; 'bieber': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "function's": 0.16; 'invoked.': 0.16; 'privilege': 0.16; 'represents.': 0.16; 'similarities': 0.16; 'subject:Early': 0.16; 'aug': 0.19; 'once,': 0.19; 'language': 0.20; 'memory': 0.21; 'header:In-Reply-To:1': 0.22; 'code.': 0.22; 'received:209.85.213.46': 0.23; 'received:mail- yw0-f46.google.com': 0.23; 'somewhere': 0.23; 'thus': 0.23; 'interface': 0.23; 'code': 0.24; 'translation': 0.25; 'function': 0.26; 'lee': 0.28; 'all,': 0.28; 'message-id:@mail.gmail.com': 0.28; "didn't": 0.29; 'compile': 0.29; 'code,': 0.29; 'object': 0.30; 'characters,': 0.30; 'invoke': 0.30; 'looks': 0.30; 'source': 0.32; 'shows': 0.32; 'coding': 0.32; 'rather': 0.33; 'done': 0.33; "i've": 0.33; 'to:addr:python-list': 0.34; 'however,': 0.34; 'flag': 0.35; 'idea': 0.36; 'operations': 0.36; 'similar': 0.37; 'some': 0.37; 'but': 0.37; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'patch': 0.38; 'perhaps': 0.39; 'should': 0.39; 'finding': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'address': 0.61; 'taking': 0.65; 'special': 0.67; 'today': 0.71; 'article': 0.76; 'dennis': 0.77
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:content-transfer-encoding; bh=gLpTJx9qWVM1lww7Z5VEY5qXDbWrzJP1jHvrQ65TSoU=; b=Xcn5l+IdAz3lz95+I0UcOcK8koHeSq9Y5pgH1qs6XaxzH1o/eifII9r7/zIS0lqYIq aIQy5xy396Qn3GTOSyCVSvC8Q6bV1QtCk0uu/wf/ag8Dc2ed8yqOcKVPXetKVUJOt9zk ZqZ7YOFqox1z+hEg4t95d8Mv5bJEDnMTIn/s0=
MIME-Version 1.0
In-Reply-To <j1ajq5$214$2@dough.gmane.org>
References <CAPTjJmpWN1Tq-46UoHjh_-q9ahkivTWmLJR3_eF9iThHwXQnhA@mail.gmail.com> <4E38315C.1000102@jollybox.de> <CAPTjJmqfi8YfSYU8wHMZCxQ-3iYim+TOfq9qwn3MOq695R2Cgw@mail.gmail.com> <j1ajq5$214$2@dough.gmane.org>
Date Wed, 3 Aug 2011 09:58:53 +0100
Subject Re: Early binding as an option
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1825.1312361935.1164.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312361935 news.xs4all.nl 23867 [2001:888:2000:d::a6]:52193
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10792

Show key headers only | View raw


On Wed, Aug 3, 2011 at 5:46 AM, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
>        Horrors... That looks like some MUF code I've seen (I never had a
> MUF flag on my old characters, so had no privilege to write in MUF --
> MPI was available to all, and even it had some links to MUF operations
> using similar magic numbers).
>

Hehe. I didn't mean that it should be thus in the source code, but
that some simple notation would tell the interpreter that it can make
that translation in memory - at the tokenization stage, or perhaps
when the function is invoked. The idea is that the interpreter can
skip one step - the step of taking the name "len", looking it up, and
finding the object <built-in function len> that it represents. It can
do that part of the work once, and patch in the function's address
somewhere as a special token - right into the tokenized source code.

Parenthesis: Reading the Wikipedia article on MUF shows that it has a
number of similarities to what I do today in coding my MUD - I have an
extremely rudimentary editor interface (smart editing is done on the
client), submit my code to the server, compile it, and invoke it - and
it's governed by permissions bits. However, I use a rather better
language than MUF :)

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Early binding as an option Chris Angelico <rosuav@gmail.com> - 2011-08-03 09:58 +0100

csiph-web