Quote (annexusquam @ 9 Sep 2017 14:55)
I don't think you can make a comparison like that, different languages are good at different things, and it's impossible to settle on an objective "typical" piece of code for a given language to be measured.
What you could do is go on rosettacode.org and compare the code for a few common tasks.
Agreed, while one launguage may require less code for same output, the resources required to parse the data can vary drastically including which fuctions are called for
For example (parsing)
Lang1
1+1+1
=3
Lang2
1+1+1
=2+1
=3
Lang3
(1)+(1)+(1)
=(2)+(1)
=(3)
Lang4 [xor]
(1)+(1)+(1)
=(2)+(1) ~ (1)+(2)
=3 ~ 3
=check ^
=3
Etc
This post was edited by death_knight on Sep 9 2017 08:47pm