Re: Tcl faster than Perl/Python...but only with tricks...



Cameron Laird wrote:

Plenty of people--including book authors--*do* write
things like this in Python.

Okay, maybe, I did not check that. I started using Python just one year ago
and would never come to this solution, because I learned Python by doing
and looking into its Tutorial where they show you the "for line in
file"-trick as one of the first things.

Tcl, OTOH, I learned in the early 90ies, and used it ever since as my
favourite language, but I really had to think about my really fast
solution.

But I do not want to discuss Tcl vs. anything. I just compared the execution
time of some languages for the same thing, and how people seem to do them
naturally in that language. What I wondered then was the time, either
[gets] or [while] used.

Regards
Stephan
.



Relevant Pages

  • Re: Does Python really follow its philosophy of "Readability counts"?
    ... with enforcing that "shouldn't" in the language itself? ... In Python, direct access to pointers is a MUST NOT. ... where you are allowed to mess with the implementation. ... human assembly language programmers? ...
    (comp.lang.python)
  • Re: why did these companies choose Tcl over Python
    ... I used to work on a project which was written mostly in Tcl. ... which was written in Tcl (or, at least, has Mimic as its scripting ... I know you can extend/embed Python, but it's a LOT easier in Tcl. ... scripting language. ...
    (comp.lang.python)
  • Re: Some more notes
    ... >that is the language that you are accustomed to. ... You are right, I'm just a newbie in Python, and there are other ... Okay, I'll use os.path.normcase to convert them. ... with imperaive programming) and often it's also faster, ...
    (comp.lang.python)
  • Re: Python for Fortran programmers
    ... proposition for Python in the Fortran community", ... compiled language such as Fortran or C++, but I would still prefer to ... greater number of programming errors that are typically detected by a ...
    (comp.lang.fortran)
  • Re: Basic inheritance question
    ... used 'this' in C++ and Java. ... but in Python it doesn't. ... language, they would write a lot of ten liners that is changed a LOT ... Add three levels of inheritence and a couple globals and you'll find out ...
    (comp.lang.python)