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.

List of languages that compile to JS

95 pointsby gaopreaover 11 years ago

17 comments

gordonguthrieover 11 years ago
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 未加载
gaopreaover 11 years ago
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>
kreekover 11 years ago
I was going to make snarky comment about writing JavaScript in JavaScript until I saw the language extensions section, very useful!
parallelistover 11 years ago
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 未加载
saurikover 11 years ago
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 未加载
diminotenover 11 years ago
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.
spegover 11 years ago
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 未加载
Mikeb85over 11 years ago
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++).
babbyover 11 years ago
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 未加载
jgalt212over 11 years ago
JS + lodash is good enough for me.
joubertover 11 years ago
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.
joemaller1over 11 years ago
And I expect most of these can be compiled via a Grunt task. JavaScript is the Borg.
Grue3over 11 years ago
A rare instance where compiled code is actually slower than before &quot;compilation&quot;.
auviover 11 years ago
I want to say that JavaScript is the &quot;Assembly Language&quot; of the web.
评论 #7067234 未加载
评论 #7072025 未加载
mahadazadover 11 years ago
Wow thats a never ending list.
zemover 11 years ago
if you&#x27;re interested in the topic, altjs.reddit.com could use some love
Fasebookover 11 years ago
This shows us how useful JS really is.
评论 #7066953 未加载
评论 #7072041 未加载