Sphereとともに

scalaとかplayframeworkとか。技術ブログにしたいなと。環境は Windows7x64, mac です。たまに声優さん情報が混ざります。最近ちょっとClojure触りました。

Scala Akka メモ

http://doc.akka.io/api/akka/2.0/akka/actor/ActorSystem.html

An actor system is a hierarchical group of actors which share common configuration, e.g. dispatchers, deployments, remote capabilities and addresses. It is also the entry point for creating or looking up actors.

アクターシステムは共通の設定を共有するアクターの階層的グループです。それは例えばディスパッチャーやデプロイメント、リモート機能やアドレスのようなものです。
それはまた、アクターを作成したり探したりするためのエントリーポイントでもあります。

// Java or Scala
system.actorOf(props, "name")
system.actorOf(props)

// Scala
system.actorOf(Props[MyActor], "name")
system.actorOf(Props[MyActor])
system.actorOf(Props(new MyActor(...)))

// Java
system.actorOf(MyActor.class);
system.actorOf(Props(new Creator() {
public MyActor create() { ... }
});
system.actorOf(Props(new Creator() {
public MyActor create() { ... }
}, "name");

Where no name is given explicitly, one will be automatically generated.

明示的に無名のものが与えられた時、それは自動的に生成されます。



日本語訳って難しいね

Effective Akka

Effective Akka