Compile-to-JS Languages

Discussions center on programming languages that compile or transpile to JavaScript (e.g., TypeScript, ClojureScript, Elm) as alternatives to writing code directly in JS, including debates on their value versus learning JavaScript.

➡️ Stable 0.5x Programming Languages
4,073
Comments
20
Years Active
5
Top Authors
#4019
Topic ID

Activity Over Time

2007
10
2008
41
2009
85
2010
145
2011
237
2012
250
2013
363
2014
330
2015
323
2016
301
2017
267
2018
218
2019
191
2020
252
2021
235
2022
216
2023
183
2024
211
2025
197
2026
18

Keywords

e.g PHP JIT JS CLI OK ActionScript GWT AI PyPy javascript js compile languages compiles language coffeescript compiled bytecode compiler

Sample Comments

bla2 Jun 21, 2015 View on HN

There are many languages that compile to JavaScript (TypeScript, Dart, CoffeeScript, ...). You don't have to use JavaScript.

lucian303 Jan 1, 2013 View on HN

Another language that compiles to JS. Really? Just learn Javascript already.

iLemming Mar 28, 2017 View on HN

Nothing about other languages transpiled/compiled to JavaScript? No Clojurescript, Elm or Purescript?

weavie Mar 30, 2015 View on HN

You aren't limited to Javascript, any compile to JS language can surely be used.

chii Jul 12, 2017 View on HN

"and any application that can't be written in javascript will soon be compiled to javascript" -- me

Helianthus Nov 6, 2013 View on HN

Point was to compare compile-to-javascript languages.

DjDarkman Nov 25, 2010 View on HN

JavaScript is so moldable, you could easily make a compiler that translates to JavaScript. You could even write a language and translate it in the browser, see CoffeeScript.

DjDarkman Nov 25, 2010 View on HN

JavaScript is so moldable, you could easily make a compiler that translates to JavaScript. You could even write a language and translate it in the browser, see CoffeeScript.

satvikpendem May 18, 2020 View on HN

Ah that's disappointing. i wonder if there is any work to create a JS compiler.

floatboth Jun 7, 2017 View on HN

People already trying to do this. It does not accomplish the "replacing JS" goal :)