Node and Distributed Erlang
Hamler is compiled to Erlang/OTP, which is a concurrent, fault-tolerant, distributed programming platform. A distributed Erlang/OTP system consists of a number of Erlang runtime systems called
node. Nodes are connected with TCP/IP sockets and communicate by message passing.
An Erlang runtime system --
node is identified by a unique name like an email address. Erlang nodes communicate with each other via these names.
epmd for registering node name first:
firstname.lastname@example.org on a
Hamler REPL console:
hamler repl > import Control.Distributed.Node > import Control.Distributed.NetKernel > start :"email@example.com"
firstname.lastname@example.org on another
Hamler REPL console, then connect to the
hamler repl > import Control.Distributed.Node > import Control.Distributed.NetKernel > start :"email@example.com" > connectNode :"firstname.lastname@example.org" true > nodes ['email@example.com']
-- TODO: ...