-
Actors
- high level concurrency abstraction
- thread:actor != 1:1
- concurrent objects/processes, exist and exectute independently
- each actor has it's own state, they (ideally) share nothing
- erlang has immutable data structures, ruby doesn't (take care of it yourself!)
- recomendation - concurrency is not parallelism talk
- high level concurrency abstraction
-
Ruby Actors - Celluloid
- OOP actor = cell, Erlang actors are processes that have no state, Ruby actor have state in for of instance variables
- internals:
- each object/actor runs in a separate thread
- each task is executed in it's own fiber (enables long lasting ops to be suspended)
- implements the core erlang ideas:
- linking/monitoring
- supervisors
- some other cool features:
- futures
- pools
-
Demo ...
-
Notifications
You must be signed in to change notification settings - Fork 0
neektza/actor_demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published