15 ms·
While there's a huge amount of redundancy and nested method calls, it's worth bearing in mind that: 1. This is a preview release 2. The intention is almost ce
by mcobrien 15y ago
While there's a huge amount of redundancy and nested method calls, it's worth bearing in mind that:
1. This is a preview release
2. The intention is almost certainly that the output code will be compiled and optimized later.
Compilation is a huge point. When you run the HelloWorld sample through Google's Closure Compiler, it's 71 lines, not 17,259 (https://gist.github.com/1280982 https://gist.github.com/1280982). That's still enormously wasteful, but the duplicate method declarations and other obvious fat disappear.
- wlievens 15y agoWhile I think your points are very valid, the "71 lines" metric is not, because Closure Compiler tends to create really long lines. When pretty-printed, that code became 2255 lines again.