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


Groups > comp.lang.python > #10782

Re: Early binding as an option

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Early binding as an option
Date 2011-08-02 21:46 -0700
Organization > Bestiaria Support Staff <
References <CAPTjJmpWN1Tq-46UoHjh_-q9ahkivTWmLJR3_eF9iThHwXQnhA@mail.gmail.com> <4E38315C.1000102@jollybox.de> <CAPTjJmqfi8YfSYU8wHMZCxQ-3iYim+TOfq9qwn3MOq695R2Cgw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1820.1312346772.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, 2 Aug 2011 18:42:01 +0100, Chris Angelico <rosuav@gmail.com>
declaimed the following in gmane.comp.python.general:

> Surely it must help a lot; looking up names is string operations. If
> "len" could be replaced with "@10794928" where 10794928 is the actual
> address of the len object, then it'd be doing no work that isn't
> normally done, and would go straight to the object and call it.
>
	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).

	That, or attempts to use SYSTEM RPL on an HP calculator. Normal
"user" programs, using user commands (those accessible via
keyboard/menu) all include validation calls on their input arguments.
Using system RPL one can write programs/functions that check the
arguments once at the beginning, then assume all parameters will be of
the correct type, and bypass the validation on function internal
operations.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Thread

Re: Early binding as an option Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-02 21:46 -0700

csiph-web