ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes, yes, I know it's one of THOSE threads again. I would like your opinion on what scripting language suits best my needs :-P
First a little about my background: I've been using C++ for 8 years on and off, for pretty much everything from useful file formatting "scripts" to game programming (SDL, OGL...) to statistical computations and visualization. I have had some experiences with M-code in MatLab and of course (as a devoted linux user for the past 7 or so years) bash scripting.
Despite C/C++ being versatile and fast I don't always want to bring out the bazooka to kill a moth so to speak, so it would have been great with a slightly more flexible (albeit perhaps not as fast) alternative.
So, what do I want? Here are my main priorities:
Easy file handling and (re-)formatting (convenient retrieval of columns/rows, flexible output control)
Statistics are crucial to me. So this scripting language should have an (as extensive as possible) statistical library.
Visualization should be easily accessible. Not necessarily interactive, but I would very much like to save to either raster or preferably vector formats.
(edit) Oh, yes, and bindings to some GUI lib could have been useful.
Can anyone suggest a flexible scripting language which may suit my needs?
Thanks in advance
Last edited by MasterOfTheWind; 02-20-2009 at 04:05 AM.
As you already know much has been said about this subject. So, I think it is best to read some of them and pick a choice and go through a tutorial. If you don't like it, pick another.
I do think it is safe to say that of those 3 languages, perl has the most libraries/modules available. And also that ruby as well as python invite you to code more cleanly/readable than perl.
After learning C, C++, java, bash and PHP, personally I picked python and I don't regret it. Languages I now still use are C, bash and python.
1.file formatting etc: Perl is very good at this.
2. Stats: try the PDL aka Perl Data Lang modules
3. I believe Perl has modules for this too
4. GUI Perl has bindings to several, inc TK.
1.file formatting etc: Perl is very good at this.
2. Stats: try the PDL aka Perl Data Lang modules
3. I believe Perl has modules for this too
4. GUI Perl has bindings to several, inc TK.
Perl is probably the most powerful of the three, and shines in its functional (opposed to traditionally imperative) part, as well as data structures and scoping. And, of course, closures.
One of its strongest features is anonymity - where desired. Anonymity allows you to avoid name conflicts/namespace pollution. I know anonymity is a difficult subject for people with C++ background - I have a good friend of mine writing in C++ :-).
Because of Perl's strong functional feature one can implement various OO models - in addition to the "standard" Perl one.
H
Can anyone suggest a flexible scripting language which may suit my needs?
Thanks in advance
you only have 3 choices. If you do have not experience in any of them, study and research them for at least a week each. Then pick the one you like. you can easily do research using google.
yes I agree, sergei.
i've done the same doing perl and glade, It's like pulling your own teeth out.
what makes it so bad is that the gtk documentation is abominable.
PerlQt is a very fast and easy way to create great looking GUI programs using the Qt drag and drop form designer and Perl. PerlQt is powerful enough for advanced developers and easy for beginners as well.
PerlQt is a very fast and easy way to create great looking GUI programs using the Qt drag and drop form designer and Perl. PerlQt is powerful enough for advanced developers and easy for beginners as well.
One "newer binding" is last updated in 2007 and the other one isn't available to download.
I couldn't even get the one to build which is actually available for download.
I'd say: right now, there's no QtPerl. (Or I didn't find it yet )
GtkPerl is more or less painless from the perl-side - and if you need better documentation, just use the PyGtk documentation; it translates very easily into GtkPerl.
Perl and Python are things of the past ...
Go Ruby baby !!!
I actually like Ruby quite a lot, but I wouldn't necessarily recommend it for a couple of reasons. (1) The core implementation (the Matz interpreter) is still significantly slower than either Perl or Python. (2) It's a bit of a moving target at the moment: 1.9.1 is out (and shows some nice speed increases, apparently), but although reasonably stable is not a true stable release. For example, many gems (Ruby's version of libraries/modules/add-ons) don't work yet with 1.9.1.
Perl is outstanding for text handling, and I believe it handles statistics quite well, but I've heard nothing but horror stories about using it for GUI apps. (It's my preferred language, by the way, so I'm not picking on it, just reporting what I have read.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.