| Store | Cart

Working around a lack of 'goto' in python

From: leeg <l...@teaching.physics.ox.ac.uk.valid>
Wed, 10 Mar 2004 14:46:41 +0000
Stephen Horne wrote:

> On Tue, 09 Mar 2004 01:34:06 +0000, leeg> <leeg at teaching.physics.ox.ac.uk.valid> wrote:> >>Y2KYZFR1 wrote:>>>><snip GOTO>>>> >>> No stay away from computers until you understand how and why this is.>>>>*points at the Linux kernel source*> > Examples of use are not proof that such use is a good thing.> > More relevant here, kernal programming is not the kind of job that> Python is designed for. What is justifiable in kernal programming is> not necessarily justifiable for the kinds of applications that are> written in Python. On similar principles, whats justifiable in the> Python source code is not necessarily justifiable in, errrm, Python> source code :-)> 

Y2kyzfr1's statement was that GOTO is a bad thing and should never be used,
which is not a discussion of the lack or otherwise of a particular
statement in the Python language.  I agree that an example is not a good
advocation.  However in the case of the kernel source, if thousands of
people have looked at the code and not come up with a better way to do
whatever is done without a goto, then the goto method must have at least
*some* merit :-).

On the subject of kernel hacking and Python, why can't kernel programming be
considered in Python?  Because the reference implementation of the language
is interpreted[1], and interpreted slowly?  That's the case with Java too;
however people have written Java machines in software and in hardware that
are plenty fast enough to write whole operating systems in, and have goen
on to write whole operating systems in them.  The same could in principle
be done with Python, and Python is a language in which one could
principally write a whole operating system.  So why should that be
irrelevant in a discussion of Python?

[1]"Byte compilation" is a jargontastic way of saying tokenised, then
interpreted.
-- 
Graham Lee
I am leeg, for we are many
"An upsettingly large part of academia right now seems to be working on
bringing Java into the 1980s." - Avi Bryant
http://users.ox.ac.uk/~wadh1342

Recent Messages in this Thread
Brett Mar 06, 2004 06:18 pm
Andrew Koenig Mar 06, 2004 06:30 pm
Carmine Noviello Mar 06, 2004 06:41 pm
Jeff Schwaber Mar 06, 2004 06:41 pm
Peter Otten Mar 06, 2004 06:48 pm
Rene Pijlman Mar 06, 2004 06:49 pm
Christian Tismer Mar 06, 2004 08:50 pm
Roy Smith Mar 06, 2004 09:16 pm
Stephen Horne Mar 08, 2004 05:01 am
Dan Bishop Mar 06, 2004 11:23 pm
David M. Cooke Mar 07, 2004 08:49 am
Stephen Horne Mar 07, 2004 06:35 pm
Roy Smith Mar 07, 2004 06:54 pm
Stephen Horne Mar 07, 2004 07:57 pm
Roy Smith Mar 07, 2004 08:49 pm
Stephen Horne Mar 08, 2004 02:54 am
benjamin schollnick Mar 08, 2004 03:38 am
Stephen Horne Mar 08, 2004 05:10 am
Roger Binns Mar 07, 2004 10:33 pm
Roy Smith Mar 08, 2004 02:11 am
Roger Binns Mar 08, 2004 05:09 am
Georgy Mar 08, 2004 09:09 am
Jeff Epler Mar 08, 2004 02:50 pm
Mel Wilson Mar 08, 2004 03:43 pm
Roger Binns Mar 08, 2004 08:43 pm
Donn Cave Mar 08, 2004 10:46 pm
Roger Binns Mar 09, 2004 12:11 am
Stephen Horne Mar 08, 2004 03:30 am
Stephen Horne Mar 08, 2004 05:29 am
Y2KYZFR1 Mar 08, 2004 04:41 pm
Lou Pecora Mar 08, 2004 04:59 pm
Y2KYZFR1 Mar 09, 2004 04:36 pm
Joe Mason Mar 09, 2004 04:57 pm
Roy Smith Mar 09, 2004 05:25 pm
Joe Mason Mar 09, 2004 06:53 pm
Roy Smith Mar 09, 2004 09:05 pm
Roger Binns Mar 10, 2004 04:23 am
Roy Smith Mar 10, 2004 01:52 pm
Isaac To Mar 10, 2004 05:36 am
Jeff Epler Mar 10, 2004 01:05 pm
Isaac To Mar 10, 2004 03:58 pm
gabor Mar 10, 2004 04:34 pm
Donn Cave Mar 10, 2004 05:49 pm
Stephen Horne Mar 11, 2004 03:02 am
Jacek Generowicz Mar 11, 2004 11:40 am
Stephen Horne Mar 11, 2004 02:50 pm
Stephen Horne Mar 09, 2004 09:43 pm
Roy Smith Mar 09, 2004 09:55 pm
Stephen Horne Mar 10, 2004 12:41 am
Isaac To Mar 10, 2004 05:16 am
Christopher A. Craig Mar 08, 2004 07:54 pm
leeg Mar 09, 2004 01:34 am
Stephen Horne Mar 09, 2004 09:52 pm
leeg Mar 10, 2004 02:46 pm
Stephen Horne Mar 10, 2004 04:58 pm
Roger Binns Mar 10, 2004 06:14 pm
David MacQuigg Mar 09, 2004 11:26 pm
Anton Vredegoor Mar 10, 2004 10:11 am
Messages in this thread