News for hackers. Stuff that matters.
Re:Felix - a fast scripting language by aaronblohowiak on Friday January 04, 2013 @02:19PM (#5009221)
My "good enough" definition: a scripting language is a language that does not require you to write a main() function or define a class / object in order to produce output and features automatic memory management.
Re:Felix - a fast scripting language by chc on Friday January 04, 2013 @05:09PM (#5010259)
So Common Lisp and Fortran are scripting languages? This test seems to be more like "Is the language heavily influenced by C or C++?"
Re:Felix - a fast scripting language by ciupicri on Saturday January 05, 2013 @12:33AM (#5011750)
Then add it's easy to create one-liners.
Re:Felix - a fast scripting language by aaronblohowiak on Saturday January 05, 2013 @02:52PM (#5013784)
I will add this as a great qualifier, though i fear the day where someone says that APL is a scripting language ;)
Re:Felix - a fast scripting language by ciupicri on Saturday January 05, 2013 @03:29PM (#5013933)
I'm not familiar with APL, but after seeing the examples from Wikipedia [1], I think I know what you mean:

    # generates a typical set of Pick 6 lottery numbers
    x[⍋x←6?40]
    # finds all prime numbers from 1 to R
    (~R∊R∘.×R)/R←1↓⍳R
    # game of life
    life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}
[1] http://en.wikipedia.org/wiki/APL_%28programming_language%29#...