Re:Code Length Measured in 14 Languages
by koenigdavidmj on Wednesday November 14, 2012 @12:19PM
(#4784304)
Maybe domain-specific is the wrong term. It's certainly a Turing complete language. But it's optimised to make a particular set of operations easier, so those operations are going to come out shorter than the same operations in a general purpose language.
Re:Code Length Measured in 14 Languages
by mathola16 on Wednesday November 14, 2012 @12:23PM
(#4784324)
This is only true if you think the test set in Rosette Code is biased towards the domain that Mathematica is optimized for.
There is no reason to think this looking at the website.
Since he uses median ratios, then a single spectacular ratio will not skew the results.
Re:Code Length Measured in 14 Languages
by btilly on Wednesday November 14, 2012 @01:22PM
(#4784633)
Not the test set in Rosetta Code.
The part of the test set that people have actually provided Mathematica solutions for. There is every reason to believe that people are more likely to provide Mathematica solutions for problems that Mathematica is likely to be good at.
See this[0] for more info
[0] http://reference.wolfram.com/legacy/v5/Tour/MathematicaAsAPr...