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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

List of languages that compile to JS

95 点作者 gaoprea超过 11 年前

17 条评论

gordonguthrie超过 11 年前
Boy am I glad I added LuvvieScript (Erlang dialect) to it last week. Its sits a bit lonely, the last transpile-to-javascript language to come in. Robert Virding of Lisp-Flavoured-Erlang pointed out that once I get it working all the other compile-to-Erlang languages (Elixir, LFE, Joxa) will also run in the browser (so no pressure then).
评论 #7066765 未加载
gaoprea超过 11 年前
I expect an increasingly larger C&#x2F;C++ codebase to be ported with emscripten and asm.js with decent enough performance (especially dev tools). Currently C++ code compiled with emscripten runs in Firefox only 1.5x slower than natively compiled code [1]. Notable ports can be found at emscripten wiki page [2].<p>[1] <a href="https://hacks.mozilla.org/2013/12/gap-between-asm-js-and-native-performance-gets-even-narrower-with-float32-optimizations" rel="nofollow">https:&#x2F;&#x2F;hacks.mozilla.org&#x2F;2013&#x2F;12&#x2F;gap-between-asm-js-and-nat...</a><p>[2] <a href="https://github.com/kripken/emscripten/wiki" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kripken&#x2F;emscripten&#x2F;wiki</a>
kreek超过 11 年前
I was going to make snarky comment about writing JavaScript in JavaScript until I saw the language extensions section, very useful!
parallelist超过 11 年前
Can’t believe how long this list is. Would be great to have some kind of maturity rating system for each item.
评论 #7067058 未加载
评论 #7066786 未加载
评论 #7067120 未加载
saurik超过 11 年前
This seems to be a &quot;gave up on website, replaced with GitHub&quot; version of altjs.org (which now rediects here). (This website used to have Cycript listed, but now doesn&#x27;t.)
评论 #7066512 未加载
diminoten超过 11 年前
How is async.js a language extension? If it&#x27;s a &quot;language extension&quot;, then isn&#x27;t it arguable that every library is a &quot;language extension&quot;?<p>At the very least I&#x27;m unsatisfied with the rationale provided in the page. Other items generally explain what makes them worthy of this list, but async.js is just, &quot;Async utilities for node and the browser&quot; which is, while immensely useful, doesn&#x27;t change JavaScript in a way that is shared by other items on the list.
speg超过 11 年前
I&#x27;m torn between CoffeeScript and TypeScript. If there was a language that had the syntax sugar of CoffeeScript plus static typing, I would be in heaven.
评论 #7067855 未加载
评论 #7068029 未加载
Mikeb85超过 11 年前
I think the reason so many languages compile to JS, is that you essentially get to play with and learn a new language, and it&#x27;s guilt free. Usually you need to choose between technologies - JVM or .NET, Python or Ruby, HTML5&#x2F;Canvas or Flash, etc... With compile to JS languages, you&#x27;re never forced to make that choice, if you ever get bored of a language you just compile it into JS and continue with your life.<p>Right now I&#x27;m having a lot of fun playing with Haxe and OpenFL&#x2F;Lime (formerly NME). Being able to create an app with the Flash-like API and compile it, without modifications for HTML5&#x2F;Flash&#x2F;Windows&#x2F;Linux&#x2F;Mac&#x2F;Android&#x2F;iOS&#x2F;Tizen natively (!!) feels like some sort of unholy hack. Not to mention it&#x27;s other abilities (compile to everything from JS to Java, C# and C++).
babby超过 11 年前
I&#x27;ve had this discussion in other threads; but, how wise it is to use these instead of vanilla JS in a project you want contributed to?<p>I personally find CoffeeScript very useful, and believe it&#x27;s sufficiently widespread and mature as to be viable. All of these others though, I can only see it as increasing the learning curve on a project. I want to use IcedCoffeeScript (Oh, am I tired of Promises) and some of the JS extensions but I can&#x27;t justify it. It&#x27;s like a cake that I know I can&#x27;t eat.
评论 #7068769 未加载
评论 #7067133 未加载
评论 #7069147 未加载
jgalt212超过 11 年前
JS + lodash is good enough for me.
joubert超过 11 年前
Nice. I am currently working on providing primitives in JavaScript for writing async code without callbacks or chained functions. Added a link (<a href="http://jspipe.org" rel="nofollow">http:&#x2F;&#x2F;jspipe.org</a>) to that page.
joemaller1超过 11 年前
And I expect most of these can be compiled via a Grunt task. JavaScript is the Borg.
Grue3超过 11 年前
A rare instance where compiled code is actually slower than before &quot;compilation&quot;.
auvi超过 11 年前
I want to say that JavaScript is the &quot;Assembly Language&quot; of the web.
评论 #7067234 未加载
评论 #7072025 未加载
mahadazad超过 11 年前
Wow thats a never ending list.
zem超过 11 年前
if you&#x27;re interested in the topic, altjs.reddit.com could use some love
Fasebook超过 11 年前
This shows us how useful JS really is.
评论 #7066953 未加载
评论 #7072041 未加载