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.

Ahead-of-time JavaScript compiler

34 pointsby apaprockiover 9 years ago

5 comments

ahmacleodover 9 years ago
&gt; It is not expected that the performance of compiled applications will ever rival &#x27;v8&#x27;. JavaScript is an awful language for static compilation - it almost seems designed to foil any attempts at optimization, and so a JIT will always have a significant performance advantage.<p>For the compiler un-initiated such as myself, is there a simplified explanation for why static compilation is inferior to JIT for languages like javascript?
评论 #10231643 未加载
评论 #10231198 未加载
评论 #10231254 未加载
评论 #10231181 未加载
评论 #10231263 未加载
marssaxmanover 9 years ago
Weird that the label specifies &quot;ahead of time&quot;, which is implicit in &quot;compiler&quot;, but does not mention that it is a Javascript-to-C++ translator rather than a normal machine-code-producing compiler.
评论 #10231334 未加载
评论 #10231216 未加载
评论 #10230732 未加载
z92over 9 years ago
<p><pre><code> Transition the runtime to C [from C++] </code></pre> Wondering why? I thought C++ and C are comparable in speed.
评论 #10231749 未加载
mtdewcmuover 9 years ago
It was only a matter of time before someone did this. Did it really take this long?
评论 #10231544 未加载
billylindemanover 9 years ago
but does the output compile with emscripten?