Chapter 1 :
Why Scala ?
Scala : Scalable language
Scala code
Scala libraries from other
is
easily scalable and
you
can import languages
Java's Big Integer
~here it uses
library Scala has its
go
own
.
for control structures Scala actor-based API for concurrent
.
uses
programming
Actors :
concurrent abstractions that can be implemented on top of threads .
send operation
by sending
*
communicate messages to each other . ↓
~
Actor performs message send and receive .
the send is asynchronous the actor doesn't have to for the message
,
meaning sending wait
to be received and processed before proceeding The .
actor stores
incoming messages in a
quene in a mailbox .
haue
or thisiss receiveblockwhere
an actor
easy case
queries <
the mailbox with
-> messages need to match a case for it
message pattern to proceed if it doesn't the actor suspends
, ,
and waits for further
incoming messages .
scala cictor
checksum calculator
implementing7
service ~
waits for
message
refers to the actor
usually
that made the request
Why Scala ?
Scala : Scalable language
Scala code
Scala libraries from other
is
easily scalable and
you
can import languages
Java's Big Integer
~here it uses
library Scala has its
go
own
.
for control structures Scala actor-based API for concurrent
.
uses
programming
Actors :
concurrent abstractions that can be implemented on top of threads .
send operation
by sending
*
communicate messages to each other . ↓
~
Actor performs message send and receive .
the send is asynchronous the actor doesn't have to for the message
,
meaning sending wait
to be received and processed before proceeding The .
actor stores
incoming messages in a
quene in a mailbox .
haue
or thisiss receiveblockwhere
an actor
easy case
queries <
the mailbox with
-> messages need to match a case for it
message pattern to proceed if it doesn't the actor suspends
, ,
and waits for further
incoming messages .
scala cictor
checksum calculator
implementing7
service ~
waits for
message
refers to the actor
usually
that made the request