News for hackers. Stuff that matters.
Re:Reasonable Scala Compiler by m12k on Friday August 18, 2017 @05:52AM (#15044837)
What I'm looking for in a language:

1. Solid mix of functional programming and Object oriented programming (though FP is more important - I'd gladly give up inheritance if I get good support for interfaces and traits instead)

2. Static type checking

3. Good support for efficient immutable data structures.

4. Solid concurrency features

5. Easy cross-compilation to and interaction with JS

5a. Cross-compilation to iOS and Android would be nice but it's not a dealbreaker

6. Good tooling (i.e. IDE-support, package manager)

7. A solid standard library

8. An active open source community around it

9. Said open source community should contain a good web MVC framework (or sensibly pluggable modules to the same effect)

10. A REPL

11. Sensible compilation times

So far it looks to me like only Scala and Haskell are candidates - and it sounds like Scala really struggles with the compilation times. If Reason/ocaml gained more traction it might become a contender. And if I gave up on static type checking then Clojure would be an option. And if I settled for a sprinkling of functional programming instead of having that be the basis, then Kotlin or maybe C#. Any other suggestions?

Re:Reasonable Scala Compiler by lmm on Friday August 18, 2017 @06:07AM (#15044891)
I think you've covered the main options. At a guess: Maybe F# if you're willing to go with a smaller open-source community. Maybe Rust or Idris if you're willing to deal with something a bit less mature with less tooling. Maybe Swift, Crystal or Nim, though I know less about them and their communities seem smaller.
Re:Reasonable Scala Compiler by superlopuh on Friday August 18, 2017 @10:55AM (#15046714)
Sounds like OCaml to me, although I'm not super experienced with it. Not sure exactly how concurrency is handled.
Re:Reasonable Scala Compiler by Matthias247 on Friday August 18, 2017 @07:11AM (#15045141)
Besides the options you mentioned I really think Typescript is a high contender on that list. Even though it's just Javascript with typing it ticks most boxes you mention. Depending on how you value some features (e.g. nr. 5) it might even be the best option.
Re:Reasonable Scala Compiler by lmm on Friday August 18, 2017 @08:16AM (#15045441)
Its FP support is even more limited than C#'s, no?
Re:Reasonable Scala Compiler by Matthias247 on Friday August 18, 2017 @09:16AM (#15045786)
Imho they are about the same, or maybe TS is even a little bit better, since you can really have freestanding functions (C# has either (static) member functions or delegates). The Javascript ecosystem probably also leans a bit more towards FP style in the mainstream (with lodash, ramda, redux, etc.) than C# does. What are you missing in particular? I guess the main thing for both is tail recursion.
Re:Reasonable Scala Compiler by lmm on Friday August 18, 2017 @09:24AM (#15045844)
Does TypeScript have any kind of "do notation" or "comprehension" syntax? LINQ is not the best by any means but it does seem like a big improvement over nothing.
Re:Reasonable Scala Compiler by Matthias247 on Sunday August 20, 2017 @02:46PM (#15059681)
No, it doesn't. I guess that's because monads are not considered idiomatic typescript. And for the special case of async programming there's async/await support.
Re:Reasonable Scala Compiler by akhilcacharya on Friday August 18, 2017 @04:19PM (#15049404)
This is basically what I'm looking for too.

For me, ES6+ is near ideal in terms of syntax and features if it had parallelism support.

Re:Reasonable Scala Compiler by mahyarm on Friday August 18, 2017 @02:17PM (#15048490)
I've heard that Haskell also has a compile time problem. And swift does too. :(