Readit News logoReadit News
trailfox commented on Another Scala rant on HN   groups.google.com/forum/#... · Posted by u/nuriaion
laureny · 12 years ago
> Scala is not C++.

That was not the point. The comparison is that Scala is to Java what C++ is to C.

Powerful and flexible but with a lot of baggage that ends up making it impractical.

trailfox · 12 years ago
> The comparison is that Scala is to Java what C++ is to C.

Which is pure opinion/speculation.

trailfox commented on Top Ceylon language features I wish we had in Java   blog.jooq.org/2013/12/03/... · Posted by u/lukaseder
RivieraKid · 12 years ago
Agree that Kotlin has slightly better interoperability and IDE support (but Ceylon is interoperable with Java too and has an Eclipse-based IDE).

But I like Ceylon more because:

* Union and intersection types.

* I find the type system cleaner and more elegant.

* It's an attempt to build a whole new platform with a new SDK. Kotlin is, in a way, just a syntax skin over the Java platform.

* Reified generics. Kotlin got rid of them.

* I personally find Ceylon's "String str" more readable than Kotlin's "str: String".

* Type-safe metaprogramming.

* Comprehensions (not 100% sure Kotlin doesn't have them).

* It's compilable to JS.

* Slightly more regular syntax, more readable generic declarations, better web documentation, currying, spread operator, etc.

trailfox · 12 years ago
I happen to find str: String much more readable than String str.
trailfox commented on Another Scala rant on HN   groups.google.com/forum/#... · Posted by u/nuriaion
pron · 12 years ago
Call it educated speculation based on years of experience with similar decisions.

How big is the team? How many years of maintenance have you had on those projects? I remember C++ looked pretty awesome for a while. It was certainly great for one-man projects or small team. Then the problems started piling up. Thing is, C++ didn't have any good alternatives (maybe now we'll have Rust); Scala does.

trailfox · 12 years ago
I think you're confusing Scala and C++.
trailfox commented on Another Scala rant on HN   groups.google.com/forum/#... · Posted by u/nuriaion
pron · 12 years ago
Yes, I have watched that talk, and Martin Odersky is clearly aware of Scala's problems. If he were to come up with a new language, I would certainly give it a try, but I think it's too late for Scala.

BTW, to reiterate some of what's been said in other comments, I am certainly not opposed to using Scala in "Ruby style" projects (though Clojure would be a better option for those, too, IMO); I do, however, think that it's a very bad alternative for large Java projects.

trailfox · 12 years ago
In our experience Scala has been a superb alternative for large Java projects. Practical experience vs. your opinion/speculation?
trailfox commented on IntelliJ IDEA 13 is Released   blog.jetbrains.com/idea/2... · Posted by u/rdemmer
krisdol · 12 years ago
You can edit them to your heart's content though. I have never had an issue, but I use the "Default for XWin" setting. There are about a dozen other keymap templates available by default, though.
trailfox · 12 years ago
I use the defaults, and then set about removing all shortcuts from my desktop
trailfox commented on Another Scala rant on HN   groups.google.com/forum/#... · Posted by u/nuriaion
pron · 12 years ago
My bet is on Kotlin, and if it doesn't catch on, I'm perfectly fine with Java 8 (I also use Clojure, but you say it's not your cup of tea).
trailfox · 12 years ago
IntelliJ plugin download stats:

  Scala  883,000
  Kotlin  21,000

trailfox commented on Another Scala rant on HN   groups.google.com/forum/#... · Posted by u/nuriaion
CmonDev · 12 years ago
That's Mono - it lags behind .NET CLR.
trailfox · 12 years ago
I know, but the .NET CLR has lagged the JVM for years in terms of performance, but its a few years since I did a comparison...
trailfox commented on IntelliJ IDEA 13 is Released   blog.jetbrains.com/idea/2... · Posted by u/rdemmer
trailfox · 12 years ago
The most annoying thing about IntelliJ is the way it's keyboard shortcuts clash with virtually every keyboard shortcut of your average Linux distro. Other than that it's an awesome tool.
trailfox commented on Another Scala rant on HN   groups.google.com/forum/#... · Posted by u/nuriaion
CmonDev · 12 years ago
VM-level support of generics, value types and tail call optimization. My knowledge could be outdated though.

http://stackoverflow.com/a/267496/486561http://stackoverflow.com/a/480362/486561

trailfox · 12 years ago
Scala implement tail call optimization in the compiler. In general the JVM has always outperformed the CLR:

http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

trailfox commented on Another Scala rant on HN   groups.google.com/forum/#... · Posted by u/nuriaion
CmonDev · 12 years ago
Easy - drop the JVM branch and continue the CLR branch. This way you could gain better performance as well.
trailfox · 12 years ago
Better performance? What are you basing that on?

u/trailfox

KarmaCake day401February 20, 2013View Original