The Prototype of the Hive Switchboard
Cloning process state via psychic imprinting.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Cloning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ERLANG PATTERN //
-module(the_prototype).
-export([clone/1]).
clone(State) ->
spawn(fun() -> loop(State) end).
loop(State) ->
receive
{update, NewState} -> loop(NewState);
{get, Caller} -> Caller ! State, loop(State)
end.
The Prototype
Why conjure from scratch when you can imprint the memory of one spirit onto a newborn thread in the Switchboard?
Runic Tags:
#erlang
#actors
#telepathy
#switchboard
#prototype