Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actor model in Elm

Don't use this for production code (yet). I'm working on a few changes to the API that will be breaking changes.

Concepts

Some concepts / vocabulary.

Component

  • Like an Elm program with out-messages.
  • Can NOT know anything about other components.
  • Is self contained and can be run as a standalone app. This makes development/testing easy.
  • When a component is started (instantiated) it is called a process.
  • Each process is identified by a unique PID (process id).
  • Knowing a PID, you can send messages to that process.

There are three types of components:

  • UI Component
  • Service Component
  • Layout Component

See Webbhuset.Component for more info.

Actor

  • An actor is a component that has been "wrapped" to be part of a system.
  • The actor defines how a component's out-messages should be handled.
  • Maps received messages to the component's in-message type.
  • An actor implements the connections between components.
  • The actor uses the ActorSystem module to perform actions, such as sending messages, spawning processes.

System

  • Defines which components are avaiable and bootstraps them.
  • The "runtime", routes messages, spawns actors etc.

About

Framework for component based development in Elm using the Actor Model

Resources

Stars

29 stars

Watchers

10 watching

Forks

Releases

Packages

Contributors

Languages