Live data from Hacker News

List of languages that compile to JS

github.com

11–20 of 53 posts

Re: List of languages that compile to JS

#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).

If you fancy developing your own transpile-to-js language I have written up the actual process in some detail: http://luvv.ie/toolchain.html

Erlang (via Erlang Core) is actually quite a sweet example. Erlang (which is small) is transformed into Erlang Core (a language targetted at machines not humans) which has a very small set of primitives (21 in all). That Language is turned into a compact AST which is then transpiled to a Javascript AST and transformed back up to Javascript using standard JS syntax tools.

I have also written up the thinking about how to make an OTP-ish Erlang dialect in the browser work as part of Erlang/OTP's 'span of control' in the server-side cluster: http://luvv.ie/mission.html

Re: List of languages that compile to JS

#12

Can’t believe how long this list is. Would be great to have some kind of maturity rating system for each item.

While by no means a definitive system, the order in which they're listed within each section tends to reflect their maturity to a degree (at least amongst the top few in each section).

Re: List of languages that compile to JS

#13
I wonder if Holy C will become popular. Maybe, only in God's temple can Holy C be used.

God says... epic_fail stuff hard_working Angel I_donno happy happy_happy_joy_joy freak cracks_me_up fool look_buddy I_didn't_do_it prosperity scorning try_again do_not_disturb You_can_count_on_that commanded once_upon_a_time Moses Zap I'm_done look_out BRB relax

----

Dance, nigger angel, entertain me. I have expensive tastes -- only the best angels get to dance for me.

Re: List of languages that compile to JS

#14
post #9

This shows us how useful JS really is.

More like: "This shows us how desirable it is to try and circumvent writing JavaScript, despite how important the Web is."

I'm not saying JavaScript is good or bad. Just saying that there is certainly a strong desire to not write it, as evidenced by this long list of transpile languages.

Re: List of languages that compile to JS

#15

Can’t believe how long this list is. Would be great to have some kind of maturity rating system for each item.

From my experience, CoffeeScript seems to be running away from the pack. ClojureScript, Dart and TypeScript all are probably leaders of the second tier, which is far and away more popular than the rest.

Re: List of languages that compile to JS

#17
I'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?

I personally find CoffeeScript very useful, and believe it'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't justify it. It's like a cake that I know I can't eat.

Re: List of languages that compile to JS

#18

Can’t believe how long this list is. Would be great to have some kind of maturity rating system for each item.

Indeed. I was coming here expecting the list to be long, and I was still surprised at how much bigger it was than I initially imagined.

Re: List of languages that compile to JS

#19
post #17

I'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? I personally find CoffeeScript very useful, and believe it'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…

[deleted]

Re: List of languages that compile to JS

#20

Can’t believe how long this list is. Would be great to have some kind of maturity rating system for each item.

From my experience, CoffeeScript seems to be running away from the pack. ClojureScript, Dart and TypeScript all are probably leaders of the second tier, which is far and away more popular than the rest.

CoffeeScript was never part of the pack. It's older than most of these and introduced most people to the idea of languages that compile to JavaScript.
Post reply on HN