TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

V8 has optimized new JavaScript language features (2018)

106 点作者 hbrundage超过 4 年前

7 条评论

chrismorgan超过 4 年前
&gt; <i>const performs a lot better in optimized code than var or let</i><p>This puzzles me; if only ever one value is assigned, I would have expected at least <i>let</i> to perform identically to <i>const</i> in optimised code, because I expect the optimiser to look at the <i>let</i> and say “never reassigned, turn it into a <i>const</i>”. By the sound of it, I’m wrong, and I’d be interested to know <i>why</i> I’m wrong.
评论 #25018689 未加载
评论 #25018715 未加载
评论 #25018752 未加载
评论 #25023868 未加载
评论 #25018635 未加载
saurik超过 4 年前
In stark contrast: &quot;Using const&#x2F;let instead of var can make JavaScript code run 10× slower in Webkit&quot; ;P.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24844353" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24844353</a>
评论 #25019881 未加载
评论 #25021771 未加载
talolard超过 4 年前
Buried in there is that we finally get named capture groups on regular expressions. What a day!
评论 #25018993 未加载
评论 #25018965 未加载
dandigangi超过 4 年前
&quot;entirely new approach to how bound function exotic objects are implemented&quot;<p>Does anyone have information on using the term &quot;exotic&quot;? I haven&#x27;t heard that before and not sure how to understand what they meant by that.
评论 #25021425 未加载
bufferoverflow超过 4 年前
I&#x27;m pretty sure destructuring is still slow as hell. Like if you want to clone an array, arr.slice(0) is 3x faster than [...arr]
评论 #25024406 未加载
Ajnasz超过 4 年前
Still no tail call optimization? ¯\_(ツ)_&#x2F;¯
Gaelan超过 4 年前
This should be (2018).
评论 #25019187 未加载