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).
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).
1: http://rosettacode.org/wiki/Hello_world/Text