Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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). That's still enormously wasteful, but the duplicate method declarations and other obvious fat disappear.



While 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: