Asa Rossoff wrote:
From: "Paul" <[EMAIL PROTECTED]>

Op Sat, 19 Jun 2004 01:53:04 -0700 schreef Asa Rossoff:


Which of the scripted languages run fastest, and which use ram most
efficiently?
The languages I know (just) a bit about are Perl, Python, and Tcl.

I don't know Perl or Tcl. I always try to get things going in Bash shell scripts, and if that does not work I use Python. Python is screamingly fast (did you know that Walt Disney studios switched to Python for generating their cartoon movies because of the speed?).

I once wrote a Python program that interacts with a MySQL database and
uses TKInter/Tcl as a graphical interface to users, and that is very
fast. I never looked at memory efficiency, but so far I have not found
any drawbacks.

At my work we are now using Python to run equipment interfaces in a
semiconductor factory for some mission critical operations. I think that
accounts for something.


This is helpful, thanks.    My reason for being concerned about both speed
and memory are that currently my hardware is on the ancient side (P200 56MB
ram), and secondly, I know those issues are both of great consequence in
larger scale operations, like on web servers and heavy data analysis.

I used to write Perl stuff on a similar machine. Compared with the amount of memory something like OpenOffice eats, any script you write in any language will have a minimal impact on system resources. You'd probably only notice the difference if you were using the box as a web server running data-crunching CGI applications that turned out to be popular enough to have a number of people accessing them at the same time, or if you use humunguous arrays or hashes (for example if you write a program that involves putting every definition in the Oxford English Dictionary into a hash, then don't expect to get your search results quickly!).


If you decide to go for Perl, mail me off list and I'll give you some pointers (well Perl usually calls them references - "pointers" is more of a C thing ;-)). I'm not an expert, just a guy who uses it for simple practical applications, but that's probably an advantage.

BTW, I'm not trying to start a Perl/Python war here. Apart from anything else, if we get going on that, those weirdo Ruby hackers will join in ;-)

Sir Robin

--
"A popular Government, without popular information, or the means of acquiring it,
is but a Prologue to a Farce or a Tragedy; or perhaps both."
- James Madison


Robin Turner
IDMYO
Bilkent Universitesi
Ankara 06533
Turkey

www.bilkent.edu.tr/~robin


____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to