This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Scala and the fly likes Advantages of Scala actors compared to Java's message passing solutions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Scala
Bookmark "Advantages of Scala actors compared to Java Watch "Advantages of Scala actors compared to Java New topic
Author

Advantages of Scala actors compared to Java's message passing solutions

Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1280

Hi folks,

without knowing very much details, I think the actor model is basically based on message passing, right? Obviously there are existing solutions for message passing in Java, too, although they are probably more often used for distributed systems. But why weren't the basic concepts used in Java for concurrent programming, too? OK, I know there are already actor implementations for Java out there, but I haven't heard anything about this before Scala has grown in popularity. So I guess there must be some more important advantages of Scala actors over Java based implementations. Or is it just because no one has tried to think "the functional way" in Java before?

Marco
andrew ennamorato
Ranch Hand

Joined: Oct 03, 2007
Posts: 100
I'm gonna piggy back on this one, because this was basically my question.

Having heard a lot about Scala (Twitter backend, quick read about Scala Actors), I'm wondering what it is in Scala (or maybe Venkat can help explain the concepts or give an example) that makes it so highly performant? Why Scala not JMS or some clustering (Coherence, Terracotta) solution? (Not that I'm arguing one over the other, just asking because I don't know).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Advantages of Scala actors compared to Java's message passing solutions
 
Similar Threads
Use cases and system actors
Do Scala Actors have "spawn"
What can Scala do for concurrent programming that Java can't?
Scala vs erlang
The "Scala Posse"