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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

List of languages that compile to JavaScript

10 点作者 philonoist超过 2 年前

3 条评论

armchairhacker超过 2 年前
It would be great if the list could rank how &quot;well&quot; these languages compile to JavaScript along some metrics:<p>- How much functionality remains in JavaScript vs the most-supported platform<p>- How many language bugs there are in JavaScript vs the most-supported platform by running a large testsuite (e.g. all tests of all public packages)<p>- How large the JS &quot;binary&quot; is, how long it takes to load (many languages put their entire VM into the JavaScript)<p>- How well the language interops with HTML &#x2F; DOM (can you make usable websites with it? How about static sites with embedded content as opposed to React-style webapps?)<p>- <i>How well the language interops with JavaScript libraries (npm)</i><p>Because there are a lot of languages which claim to compile to JavaScript but my experience is that many are unfortunately not practical due to issues with the above.<p>By far the most popular JS-target language is TypeScript, in part because it integrates <i>very</i> seamlessly being essentially JavaScript with optional type annotations. There are other contenders which also integrate well enough to be practical and which are used in large-scale projects (Elm, Scala.js, Dart). But I know that some the languages and compiling tools listed don&#x27;t work very well and have major limitations.
philonoist超过 2 年前
Past threads that are no indexed by Algolia<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=2075111" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=2075111</a> [2011]<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4012596" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4012596</a> [2012]<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4831187" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4831187</a> [2012]
pestatije超过 2 年前
It&#x27;d be more interesting a Webasm list...if you have to compile, compile to the metal.
评论 #34389396 未加载