App School

Notes

Cheatsheet

Desks:

|merge %bravo our %base

Agent:

=bravo -build-file %/app/bravo/hoon
:bravo +dbug
|nuke %bravo     :: stop, delete state
|suspend %bravo  :: stop, keep state
|revive %bravo   :: start, with prior state

Agents

Charlie

::  Pokes should pass through the action mark.
:charlie &charlie-action [%push ~zod 100]
:charlie &charlie-action [%push ~nec 50]
:charlie &charlie-action [%pop ~zod]
:charlie &charlie-action [%pop ~nec]

::  Show state
:tahuti +dbug

::  Peeks need the return value specified.
.^((list @) %gx /=charlie=/values/noun)

Delta

:delta &delta-action [%push ~zod 30.000]
:delta-follower [%sub ~zod]
:delta &delta-action [%push ~zod 10.000]

%echo

pilothouse chain desks/echo
:echo &echo-action [%push ~zod 5]
:echo &echo-action [%push ~zod 10]
:echo +dbug

%pokedex

::  start a thread
-pokedex!pokedex %diglett
::  poke an agent to start the thred
:pokedex %diglett