Obviously our favorite language isn't always the most practical, but if you always had the choice and any language would do, what would you choose for your scripting language?
Personally, I've fallen in love with python. I'm tempted to look into ruby as well, and have considered playing with haskell's GHCi, but all in all python is my go to for scripting.
what would you choose for your scripting language?
Lua -- no questions asked.
Edit: A reason why:
Unlike Python, Lua isn't that strict with spacing. I find it stupid how a Python script will refuse to execute if the spacing isn't correct.
Additionally, Lua's syntax resembles C code, which I'm familiar with, so it's quite understandable. The downside to Lua is that integration with C/C++ is quite annoying.
for small administrative tasks, like looping throught all the files: Bash
for bigger things: Scala, because:
1. it has much better REPL than Python
2. it much faster than any scripting language (technically, it is compiled to machine code)
3. in most cases it is terser than Python / Ruby and almost just as dynamic
4. it has the biggest standard library
5. <rant mode> no stupid whitespace syntax </rant mode>
The only downside is it starts up half a second longer than Python. Not a big deal.
I love Perl's extended regex syntax. If I'm on the command line, I like perl one-liners.
If I'm actually writing a script for something it depends on what I'm doing. If I'm writing some kind of install/backup script, I use Bash. If I'm processing text, such as XML, I usually use Perl. The problem with Perl is that it's too complicated to remember without using it often. I always have to re-learn parts of it to get things done (except for the one-liners).
I've been meaning to pick up Python but I haven't had the time recently. I hear it's great for "all of my scripting needs."
No. Scripting languages usually are more expressive and more simple than programming languages, but x86 assembly is the simplest and most expressive language of them all. Here's "hello world" in 8086 assembly:
A scripting language or script language is a programming language that supports the writing of scripts, programs written for a software environment that automate the execution of tasks which could alternatively be executed one by one by a human operator.
I learned a little assembly (using Emu8086) but I don't know where to find good tutorials for learning again. Been told learning x86 is useless now though. :/