Link Details

Link 700559 thumbnail
User 956993 avatar

By singularity
via hacking-scala.posterous.com
Published: Nov 24 2011 / 11:32

Some thoughts about complexity of Scala in comparison to the Java complexity that we face every day but fail to notice.
  • 12
  • 1
  • 1501
  • 1029

Comments

Add your comment
User 902267 avatar

javakata replied ago:

-2 votes Vote down Vote up Reply

"Java forces you to actually know how exactly variance works."

No it doesn't, it's optional. You can also get invariance or complete co/countervariance. But since you don't know how that works, you can't see why having complete co/counter variance for read and write operations is bad.

By the way, not only is Scala abismaly slow as compared to Java. It's abismaly slower than Java reflection/introspection libraries like SPeL. And those libraries are by themselves abismaly slower than pure Java.

User 213745 avatar

kitdavies replied ago:

1 votes Vote down Vote up Reply

"By the way, not only is Scala abismaly slow as compared to Java."

I'm sure Twitter wouldn't use it for their API backend if it was abysmally slow.

Truth is, it depends very much on what you are trying to do with Scala. It can be just as fast as Java but certain styles or patterns of coding will slow things down. See here for example:
http://stackoverflow.com/q/5901682

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java EE7
Written by: Andrew Lee Rubinger
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. CI Patterns
  5. CI Tools
  1. Spring Integration
  2. Git
  3. Regex
  4. Java
  5. REST