Sunday, 15 August 2010

Relation between Akka and scala.actors in 2.10 -



Relation between Akka and scala.actors in 2.10 -

the scala 2.10 release notes says this: "akka actors part of distribution. original scala actors deprecated."

the latest akka library ("akka 2.1.0 scala 2.10") mentions next dependency:          com.typesafe.akka:akka-actor_2.10:2.1.0    , next examples:          import akka.actor.actor          class myactor extends actor {..}          val scheme = actorsystem("mysystem")

my project includes these libraries:          org.scala-lang:scala-library:2.10.0          org.scala-lang:scala-actors:2.10.0

in classpath, have no bundle called "akka". see instead scala.actors, doesn't seem deprecated. so, in way akka actors "part of distribution"? if is, indeed, case, still supposed add together "akka-actor_2.10" library dependency? if so, utilize akka.actor or non-deprecated scala.actors.actor ?

in scala 2.9.2 scala actors part of scala-library.jar.

if download scala-2.10.0 distribution there no actors in scala-library , both akka-actors.jar , scala-actors.jar supplied.

the latter nowadays backwards compatibility , removed in future major release.

akka-actors replacement , should utilize new development (and move using scala-actors across when possible).

if have no current code in project using actors should reconfigure project's dependencies remove org.scala-lang:scala-actors:2.10.0 , instead depend on com.typesafe.akka:akka-actors_2.10:2.1.0 if want utilize actors.

i not sure why there's no deprecation annotation on classes in scala-actors in 2.10.0 believe it's added in 2.10.1.

you can find more info on migration guide.

scala akka actor scala-2.10

No comments:

Post a Comment