What is your favorite scripting language?
February 26th, 2008 by LJ Staff
Special Magazine Offer -- 2 Free Trial Issues!
Receive 2 free trial issues of Linux Journal as well as instant online access to current and past issues. There's NO RISK and NO OBLIGATION to buy. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Sorry, offer available in the US only. International orders, click here.
Subscribe now!
Recently Popular
| Linux HOWTO: Video Editing Magic with ffmpeg | Jul-23-08 |
| Google Gadgets for Linux | Jul-21-08 |
| Building a Call Center with LTSP and Soft Phones | Aug-25-05 |
| Man vs. Myth: Greg Kroah-Hartman and the Kernel Driver Project | Jul-21-08 |
| Review: HP 2133 Mini-Note | Jul-16-08 |
| Boot with GRUB | May-01-01 |
Featured Videos
Non-linear video editing tools are great, but they're not always the best tool for the job. This is where a powerful tool like ffmpeg becomes useful. This tutorial by Elliot Isaacson covers the basics of transcoding video, as well as more advanced tricks like creating animations, screen captures, and slow motion effects.
Shawn Powers reviews the HP Mini-Note portable computer.
Thanks to our sponsor: Silicon Mechanics
Silicon Mechanics is a leading manufacturer of rackmount servers, storage, and high performance computing hardware. The best warranty offerings available are backed by experts dedicated to customer satisfaction.
From the Magazine
August 2008, #172
There's nuttin like a Cool Project to give you some relief from the summer heat, so get out your parka cuz we got a bunch of em. First up is the BUG, not a bug, The BUG. It's got a GPS, camera and more, in a hand-sized package that's user programmable. The BUG does everything. It's both a floor wax and a dessert topping. Get one now. Need a software version of a Swiss Army knife? Take a look at Billix, and don't leave home without it. Then, chew on this one, an X server on a Gumstix device driving an E-Ink display. Need more storage? How about 16 Terabytes? Can do.
And, of course, we have the usual cast of characters: Marcel, Reuven, Dave, Kyle, Doc, plus the new kid on the block Shawn Powers. But it doesn't stop there: build a MythTV box on a budget, build your own GIS system, set up the tools to monitor your enterprise and more. Finally, remember The War of the Worlds? Now you can play too.
Delicious
Digg
Reddit
Newsvine
Technorati







Tcl all the way
On April 3rd, 2008 Anonymous (not verified) says:
Tcl/Tk of course! Tcl/Tk has to be the most under rated programming/scripting language out there - huge potential, but very little spotlight.
REBOL
On March 30th, 2008 Leke (not verified) says:
REBOL because its fun and easy to get started with. It also runs on many platforms and has a command line (bash style) environment.
I also like Lua because its concepts are so minimalistic, yet applicable to many situations.
miss leading survey
On March 20th, 2008 Anonymous (not verified) says:
for people who simply want to see the result of the survey there's no button to press so you're forced to press "other" in a little effort not to ruin the survey results.
Next time try to put in a button so people can see the results without voting (since not everybody scripts).
favorite scripting language
On March 19th, 2008 Anonymous (not verified) says:
tcl
Favorite Scripting Languages
On March 18th, 2008 Blue_Bullet (not verified) says:
Regina REXX runs on almost any platform. No need to learn a different language for each platform. It is robust and integrates nicely with other packages.
My scripting needs are
On March 13th, 2008 Anonymous (not verified) says:
My scripting needs are simple, and bash serves those needs quite well. I do dip into awk and python occaisionally but I haven't spent much concentrated effort on learning scripting in those languages.
Bash and PHP
On March 13th, 2008 Alan (not verified) says:
I voted for Bash because it is my all purpose scripting language, but I do use PHP for my web work.
J from jsoftware.com
On March 12th, 2008 Devon McCormick (not verified) says:
This is a fantastic language for doing the quick little one-off tasks that seem to crop up during the day. It also has powerful, built-in analytic capabilities as well as a useful set of addons including interfaces to packages like LAPACK.
Tcl/Tk
On March 11th, 2008 jaf (not verified) says:
It is a pity you didn't include Tcl/Tk in the list.
Both powerful & readily available on lots of platforms.
I use Tcl and Tk for all tasks that need scripting.
Vote for Favorite Scripting Language
On March 8th, 2008 Nicholas (not verified) says:
Groovy +1
Tcl / Tk
On March 10th, 2008 Mark Burrito (not verified) says:
Easy, and powerful. The only language I can really 'love'.
groovy scripting
On March 8th, 2008 Anonymous (not verified) says:
I think groovy should have made the list. I'm biased because I'm comfortable with Java, but groovy is an excellent scripting tool.
WML
On March 7th, 2008 Anonymous (not verified) says:
WML is my favorite scripting language. I am learning it now and am enjoying it.
UNFORTUNATELY, i have to learn it on an XP computer but will be on LINUX in JUNE! :)
Tcl/Tk
On March 6th, 2008 dizzy (not verified) says:
Simple, flexible, powerful and fun!
Tcl/Tk
On March 5th, 2008 TclFan (not verified) says:
For day-to-day scripting, Tcl is still my #1 choice after 10 years. Recently started using PHP for web work, and like the OOP model, but it's overkill for 90% of what I do on a daily basis. Tcl is short, sweet, and works. My company still uses it today for commercial GUI applications.
pike!
On March 5th, 2008 eMBee (not verified) says:
the best compromise on
object oriented purism (unlike python, the basic types (int, float, string, array, mapping, multiset) are not classes to make them easier to optimize)
syntax (c syntax may not be for everyone, but it is used quite a lot, so having the same syntax in a runtime compiled (or scripting) language is nice, even though i prefer pythons indenting)
speed (pike tries to produce machinecode where possible and thus has non-portable compiled/bytecode, compared to pythons bytecode which is portable, but who needs that when it is easy to recompile code anyways?)
greetings, eMBee.
Tcl/Tk
On March 5th, 2008 El Yaqui Grande (not verified) says:
I muddle my way through Perl for my work scripts.
I gave PHP a try and was very happy.
Tcl/Tk was the first scripting language I was ever exposed to in detail (the staff programmer at my job at the time did everything with Tcl/Tk)
XRX
On March 4th, 2008 Andrzej (not verified) says:
These days I mainly script REST-based processes, so I prefer to use XQuery as my scripting language of choice. The combo of XQuery, REST and XForms (XRX) is a killer.
Tcl/Tk and Tile
On March 4th, 2008 Bob Techentin (not verified) says:
Tcl/Tk, of course. For applications, web stuff, and the themed widget toolkit gives you native look-n-feel on Windows and Linux. Very happy!
Tcl
On March 4th, 2008 Wiwat (not verified) says:
Definitely Tcl. I use Tcl as my main scripting language. Combined with EXPECT and TK make Tcl the best choice for me to produce a modularized software testing suite.
tcl
On March 3rd, 2008 Anonymous (not verified) says:
Tcl is very intuituve and can be learned easily in stages.
It very powerful and has lots of available extensions and packages. Its easy to share code. I'm never at a loss of finding functionality that was already coded by someone else when really needed.
Scripting language
On March 3rd, 2008 Anonymous (not verified) says:
I voted for AWK, but actually use igawk - it's advanced awk (gawk) with includes -- makes for a really clean way to write code.
I do quite a bit of data conversion/transformation work with patient data. It's great for that kind of work, although I'd never want to do CGI-BIN stuff with it.
Scripting language: other aka APL
On March 3rd, 2008 Geneva Anonymous (not verified) says:
I use APL because it is old and doesn't appear inferior to more recent notations. Very flexible and terse. Enough products on the market. (In some case, Unix programs or commands are the tools of choice.)
APL
On March 3rd, 2008 markr (not verified) says:
APL ... Absolutely the best scripting language developed. Question is where can you still get the APL interpreter? I think a new generation can be turned onto APL with a little exposure.
Where to get (an) APL
On March 12th, 2008 Anonymous (not verified) says:
I'm a big APL fan but have been enjoying J (jsoftware.com) for the past several years as it has many of the advantages and lacks some of the drawbacks of APL.
You also can get a cheap, non-commercial copy of Dyalog APL from http://www.dyalog.com/ . As much as I like J, Dyalog has a much slicker IDE. However, I can code and run J from within emacs, so I'm very happy with this.
Scripting language: bash
On March 3rd, 2008 Geneva Anonymous (not verified) says:
Considering bash as an entry point to Unix, I wish to add awk and grep and so on. For some tasks of file manipulation, I use APL in its APLX avatar with multiple parallel sessions. What is a "scripting language", is it the Opposit or the complement of an "oral" or "voicing language" ?
tcl
On March 3rd, 2008 g-man (not verified) says:
What did you EXPECT?
Applescript
On March 3rd, 2008 oldcola (not verified) says:
Seems that I'm the first one to give this answer :-(
And I have no doubt that you
On April 23rd, 2008 Anonymous (not verified) says:
And I have no doubt that you will be the last.
TCL left out?
On March 3rd, 2008 Anonymous (not verified) says:
AWK is on the list but TCL is kept out? Tsk. Tsk.
tcl
On March 3rd, 2008 Tim (not verified) says:
tcl is still an improvement over it's would-be successors. Simple, industrial-strength, and a new version just came out!
Scripting language
On March 3rd, 2008 Hans Bezemer (not verified) says:
My favorite scripting language is 4tH, a Forth derivate. No wonder, I wrote it myself ;-)
Kudos on your 4tH!
On March 3rd, 2008 Cesar U (not verified) says:
Hi Hans,
I'm actually a tcl advocate myself, but I was took a look at 4tH about a week back to see about using it for writing 2d graphic games on low end mobile hardware such as the GP2X from Game Park Holdings.
Given it took me a few days to port tcl over to the GP2X arm processor, I was blown away that it took me only one minute to cross compile 4tH for the GP2X.
I sincerely think 4HT has alot of potential. Keep up the good work.
BASH or Ruby
On March 2nd, 2008 remi (not verified) says:
BASH for simple things ... Ruby when it gets complicated, or too hard to read.
If I ever want to be able to read the script again, I use Ruby.
It's never fun to come back to abunchof:
cat this | awk '{print $3}' | grep "18,000 escape characters" | ...Also, Ruby's "magic" helps me be really, really productive and write DSLs and whatnot, making the code super yummy and easy on the eyes.
Tools like RSpec and Autotest help me quickly confirm that the script actually works and won't explode if given unexpected input, and also creates usage documentation.
PS ... why does this site's CAPTCHA have to suck so bad? I'm on attempt 4 to post this comment ... it's totally unreadable ...
Stop piping cats
On March 3rd, 2008 cherwin (not verified) says:
Thats awful what you're doing here
cat this | awk '{print $3}' | grep "18,000 escape characters"could easily be converted into
awk '/18,000 escape characters/{print $3}' thisPeople really do need to learn to stop piping cats.
J form jsoftware.com
On March 2nd, 2008 a.frappe (not verified) says:
Is in the family of Array Processing Languages, it runs on Linux, Win, MacOS.
One line of J can do the same work as hundreds of lines of VBScript.
It's syntax is extremely simple and regular, maybe some thinks that this syntax is so cryptic, but Perl regex isn't it?
Take a look J at www.jsoftware.com and
http://www.jsoftware.com/jwiki/Scripts#head-458cc2df2b7015f67da15aacadabdd742b12ed57 - to see working examples of what I'm saying.
;)
One more vote for TCL
On March 2nd, 2008 Anonymous (not verified) says:
And I'm impressed by the number of comments for it.
I voted bash...
On March 2nd, 2008 Anonymous (not verified) says:
First, let me comment on this. Lua is wonderful but both language and ABI break between language revisions. This is why it's only _really_ used as an embedded language.
The only relevant languages on that poll are bash and legacy awk. What matters from here on out is the runtime; parrot, tamarin, JVM, nekovm and Microsoft's patent trap. In fact the only relevant scripting language for the next 10 years is javascript; increasingly an output target for other languages (see Haxe, GWT).
scripting languages
On March 2nd, 2008 herzeleid (not verified) says:
I use bash for lightweight scripting, but if things get hairy I go for perl.
TCL / Tk / Expect
On March 2nd, 2008 Anonymous (not verified) says:
TCL with Tk and/or Expect. Especially great for automating interactive CLI applications. I still use it on a regular basis (along with bash). Even the new git uses it for a GUI (git-gui). Easy to code, comprehensible for maintenance, powerful and extensible.
Tcl/Tk - I've used it for
On March 2nd, 2008 MartyBacke (not verified) says:
Tcl/Tk - I've used it for years and it's available for lots of platforms, including Mobile Windows.
J (jsoftware.com)
On March 2nd, 2008 bathala (not verified) says:
J is so powerful that we've created a Domain-Specific Language out of it. :)
J (jprogramming.com)
On March 1st, 2008 Anonymous (not verified) says:
I am relatively new to J, but I am planning on doing a large percentage of my future work with this language. I have never used a language that is so powerful and concise.
Scripting language - J (from jsoftware.com), A+
On March 1st, 2008 Lorin Lund (not verified) says:
I use J for all kinds of things. Plan to use A+ when I finish porting it to Windows. I can't easily get away with using FreeBSD (my preference over Linux) very often so I need something that works on Windows. I'm toying with trying Tcl/Tk. I used to use PERL for a lot of ad hoc things before I learned J.
Script
On March 1st, 2008 Marshall Nolan (not verified) says:
REXX is excellent although I have played with others: perl, bash, AWK, & python.
I should like to see also J
On March 1st, 2008 Lorenzo (not verified) says:
I should like to see also J in this list!
J = jsoftware.com
On March 1st, 2008 gosi (not verified) says:
J is the most advanced programming language around
Can be downloaded from
http://jsoftware.com/
Right tool for the task
On February 29th, 2008 Krzysztof Kosiński (not verified) says:
If I had to:
- implement some kind of a parser - Perl
- create a dynamic website - PHP
- write a number-crunching program - C++
- write a simple install script - Bash
- write a really complex program - C++, or C++ libraries + scripting language binding
- add some fancy client-side functionality to a website - JavaScript (and I would rather drop the feature rather than use Flash or Java)
I didn't use Python, Lua, AWK or Ruby, but I think there are also some optimal uses for them. I heard that Ruby can be quite slow. I was scared away from Tcl because of the archaic look of its Tk widgets, though there probably is a GTK+ binding.
My point is that if you dictate your choice of language for a given task based on personal preference, you might simply lose time.
Tcl !
On February 29th, 2008 C Jolly (not verified) says:
Please add Tcl to your list. It is simply the best!
Tcl
On February 29th, 2008 Anonymous (not verified) says:
Tcl of course... Can't believe it is not on the list.