TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dead Code Elimination for Beginners

121 pointsby kinetikover 14 years ago

4 comments

kenjacksonover 14 years ago
I highly recommend reading this article.<p>Although it does point out one reason that JS is a poor language to be the foundation for client-side web computing: It's extremely difficult to optimize a language this dynamic. I honestly think we could be leaving 50% perf improvement on the floor due to the dynamic nature of the language.<p>And this is on top of the fact that you already have to reduce the amount of time spent optimizing since you don't compile the code ahead of time (most optimistically using a JIT of some sort).<p>Can we please move away from JS and move to a nice IL?
评论 #1917360 未加载
评论 #1917167 未加载
评论 #1917100 未加载
评论 #1917254 未加载
ashish01over 14 years ago
Follow up on : <a href="http://news.ycombinator.com/item?id=1913102" rel="nofollow">http://news.ycombinator.com/item?id=1913102</a>
jsvaughanover 14 years ago
this is pretty damning for ie9 js performance isn't it? they are going to have to rework their static code analysis and it sounds like they don't have the js knowhow - what else might they incorrectly be optimizing?
评论 #1917374 未加载
larschover 14 years ago
What are the real benefits of dead code elimination on actual production code in real applications? Seems to me that only synthetic tests contain dead code (by intend) whereas dead code in production code is by definition unnecessary and, by most coding standards, a bug.
评论 #1918404 未加载
评论 #1917489 未加载
评论 #1918153 未加载