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


Groups > comp.lang.python > #29719

Re: Algorithms using Python?

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Algorithms using Python?
Date 2012-09-22 00:29 -0400
Organization > Bestiaria Support Staff <
References <TYV6s.7304$Vh6.4862@newsfe20.iad> <jngp58p2mq1nrov4l0tj29e891vrg8vo6b@invalid.netcom.com> <CALwzidke_7Ah--wpN63i5=VRGr0_w+Ez71ibAAzgVd+6dyv5TA@mail.gmail.com> <mailman.1042.1348262055.27098.python-list@python.org> <505d1424$0$29981$c3e8da3$5496439d@news.astraweb.com>
Newsgroups comp.lang.python
Message-ID <mailman.1061.1348288170.27098.python-list@python.org> (permalink)

Show all headers | View raw


On 22 Sep 2012 01:28:04 GMT, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> declaimed the following in
gmane.comp.python.general:


> 
> Writing Fortran77 in Python!
>

	Well, if one really wants to learn "linked lists" from the core
concept where the links refer directly to offsets within the memory
block (array) <G>; then expand to where the links refer to dynamically
allocated memory... Do the same with stacks, queue, and deques... Much
easier to debug if all one needs to dump is a snapshot of an array and
analyze for "lost free memory" (any array entry that is not "pointed to"
when traversing the chain of data nor the chain of free cells) -- since
such would be uncollected garbage in lower-level languages. Python masks
such concerns -- you unlink a node, and it gets garbage collected...

	You should have seen the final project in my algorithms class (ca.
1979)... A hashed-head multiple-linked list * ... Done using a version
of BASIC that only supported four open files at a time (on top of which,
I used chain-loading to move from the master controller (user interface,
if you will) to each functional operation). The instructor had made the
mistake of stating the project could be done in any language /he/ knew
(so he received my BASIC, a lot of FORTRAN-IV, and at least one
Meta-Symbol).


* And in the last 30+ years, I've seen only ONE non-classroom use of an
HHMLL -- the directory structure of AmigaOS!

-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Thread

Algorithms using Python? Mayuresh Kathe <mayuresh@kathe.in> - 2012-09-21 14:26 +0530
  Re: Algorithms using Python? Joel Goldstick <joel.goldstick@gmail.com> - 2012-09-21 10:41 -0400
  Re: Algorithms using Python? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-21 15:45 -0400
  Re: Algorithms using Python? Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-21 14:07 -0600
  Re: Re: Algorithms using Python? Evan Driscoll <driscoll@cs.wisc.edu> - 2012-09-21 15:43 -0500
  Re: Algorithms using Python? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-21 17:14 -0400
    Re: Algorithms using Python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-22 01:28 +0000
      Re: Algorithms using Python? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-22 00:29 -0400
  Re: Algorithms using Python? Wayne Werner <wayne@waynewerner.com> - 2012-09-26 10:55 -0500
    Re: Algorithms using Python? 88888 Dihedral <dihedral88888@googlemail.com> - 2012-09-27 04:15 -0700
    Re: Algorithms using Python? 88888 Dihedral <dihedral88888@googlemail.com> - 2012-09-27 04:15 -0700

csiph-web