3 ms·
"I'm defining 'power' as a non-specific mix of expressiveness, terseness, maintainability, readability and flexibility" There might be room for some unspecifie
by joe_the_user 16y ago
"I'm defining 'power' as a non-specific mix of expressiveness, terseness, maintainability, readability and flexibility"
There might be room for some unspecified mix of these qualities on an argument over the "bestness" of a language.
But I'll quibble here and mention that power is conventionally defined as ONLY expressiveness/terseness with no consideration of maintainability.
In the J programming language:
quicksort=: (($:@(<#[) , (=#[) , $:@(>#[)) ({~ ?@#)) ^: (1<#)
http://en.wikipedia.org/wiki/J_(programming_language) http://en.wikipedia.org/wiki/J_(programming_language)
Now that's raw power... (and may not fit all requirements!)
- Inaimathi 16y agoHeh. The traditional snippet associated with that argument is the Game of Life in APL. http://www.youtube.com/watch?v=a9xAKttWgP4 http://www.youtube.com/watch?v=a9xAKttWgP4 And yes, this is specifically why I opted to redefine "power" in my post; the standard definition leaves out some points that I've found to be essential.
- primodemus 16y agotalk about raw power... here is a ray tracer in the K (a programming language from the apl family): http://www.nsl.com/k/ray/ray.k http://www.nsl.com/k/ray/ray.k