Re:2048 in Idris
by jacquesm on Tuesday April 29, 2014 @08:50PM
(#7670923)
2048 in 'x' is some kind of meme now. It would be nice to do a compilation of all these so you can compare the languages by various metrics.
[ Parent
| on HN ]
Here is one comparison for 2048:
http://codegolf.stackexchange.com/questions/24134/create-a-s...
I think the idea of comparing languages based on a variety of tasks is interesting. We've all seen "hello world" in many languages[1], but including other tasks (like 2048) would provide a much richer summary of the language. Thus, a language could be efficiently summarized by tuples of "complexity parameters:"
- lines of code - number of characters - total number of tokens - number of blank lines (which might approximate modularity) - ...etc
For example, using "hello world" and 2048 as code targets:
complexity("java", "num-characters") would yield: (115, 1269). complexity("python3", "num-characters") would yield: (25, 2048).