New filters on the Home Feed, take a look!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

26
What are some simple but powerful compile-to-JS languages I might not know about, or that you are working on (not Elm, Reason, PureScript, or ClojureScript)?
Post Body

It seems like there is still a lot of enthusiasm for new compile-to-native languages, but I am particularly interested in compile-to-JavaScript.

I like static types and the ability to do encapsulation (eg with something like OO for defining data types). I like to feel like a language has a small ā€œcoreā€ and relatively small syntax. I donā€™t like the Haskell syntax for functions (ā€œNumber -> Number -> Number,ā€ that kind of stuff) as found in Elm and PureScript. I like the idea of MLs like Reason, but the details of how types and modules work, and the standard library, and the tool chain, are just all too weird for me. Some of itā€™s just really old cruft because OCaML is an old language, and also TypeScriptā€™s approach to types makes a lot more sense to me, where types are expressions in terms of other types, and you can do what you want with them. But TypeScript is a big language that inherits JavaScriptā€™s quirks.

I like that ClojureScript feels sort of small and has macros, but the dynamic typing, the memory-inefficient persistent data structures hard-coded into the language (and difficulty defining new data types and separating interface from implementation), and various other things rub me the wrong way.

Iā€™ve looked at Haxe (couldnā€™t get into it), and Dart (too basic).

From what Iā€™ve seen of Elm, the syntax is too Haskelly, but I donā€™t think the type system is very powerful. Itā€™s also very hard to drop into JS when you need to, I hear.

Anyway, I know Iā€™m complaining a lot and not being very specific. I just want to hear about languages I havenā€™t mentioned. I wonā€™t be too harsh on anything you send my way.

Author
Account Strength
100%
Account Age
16 years
Verified Email
Yes
Verified Flair
No
Total Karma
11,627
Link Karma
1,087
Comment Karma
10,205
Profile updated: 1 week ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago