shrub/ape/hood.hoon

121 lines
6.0 KiB
Plaintext
Raw Normal View History

2015-06-12 00:53:32 +03:00
:: :: ::
:::: /hoon/hood/ape :: ::
2015-05-11 21:05:14 +03:00
:: :: ::
/? 314 :: zuse version
2015-05-14 22:24:43 +03:00
/+ sole, talk, helm, kiln, drum :: libraries
2015-09-02 03:24:18 +03:00
[. helm kiln drum]
2015-05-11 21:05:14 +03:00
:: :: ::
:::: :: ::
!: :: ::
=> |% :: module boilerplate
++ hood-0 ::
,[%0 lac=(map ,@tas hood-part)] ::
2015-05-11 21:05:14 +03:00
++ hood-good ::
|* hed=hood-head ::
|= paw=hood-part ::
?- hed ::
2015-05-16 03:23:40 +03:00
%drum ?>(?=(%drum -.paw) `drum-part`paw) ::
2015-05-12 03:31:37 +03:00
%helm ?>(?=(%helm -.paw) `helm-part`paw) ::
%kiln ?>(?=(%kiln -.paw) `kiln-part`paw) ::
2015-05-11 21:05:14 +03:00
== ::
++ hood-head ,_-:*hood-part ::
2015-05-12 23:10:22 +03:00
++ hood-make ::
|* [our=@p hed=hood-head] ::
2015-05-11 21:05:14 +03:00
?- hed ::
%drum (drum-port our) ::
2015-05-12 23:10:22 +03:00
%helm *helm-part ::
%kiln *kiln-part ::
2015-05-11 21:05:14 +03:00
== ::
++ hood-part ::
$% [%drum %0 drum-pith] ::
[%helm %0 helm-pith] ::
[%kiln %0 kiln-pith] ::
2015-05-11 21:05:14 +03:00
== ::
-- ::
:: :: ::
:::: :: ::
:: :: ::
2015-05-28 06:48:25 +03:00
|_ $: hid=bowl :: system state
hood-0 :: server state
2015-05-11 21:05:14 +03:00
== ::
++ able :: find/make part
|* hed=hood-head
=+ rep=(~(get by lac) hed)
=+ par=?^(rep u.rep `hood-part`(hood-make our.hid hed))
2015-05-12 23:10:22 +03:00
((hood-good hed) par)
2015-05-11 21:05:14 +03:00
::
++ ably :: save part
2015-05-12 03:31:37 +03:00
|* [moz=(list) rep=hood-part]
[(flop moz) %_(+> lac (~(put by lac) -.rep rep))]
2015-05-11 21:05:14 +03:00
:: :: ::
:::: :: ::
:: :: ::
2015-05-30 10:53:19 +03:00
++ coup-kiln-fancy (wrap take-coup-fancy):from-kiln
2015-05-14 22:24:43 +03:00
++ coup-kiln-spam ::
2015-05-28 10:56:08 +03:00
|= [way=wire saw=(unit tang)]
2015-05-14 22:24:43 +03:00
~? ?=(^ saw) [%kiln-spam-lame u.saw]
2015-06-12 00:53:32 +03:00
[~ +>]
2015-05-14 22:24:43 +03:00
::
2015-09-17 01:39:11 +03:00
++ coup-kiln-reload ::
|= [way=wire saw=(unit tang)]
~? ?=(^ saw) [%kiln-reload-lame u.saw]
[~ +>]
::
++ coup-drum-phat (wrap take-coup-phat):from-drum
++ coup-helm-hi (wrap coup-hi):from-helm
++ diff-sole-effect-drum-phat (wrap diff-sole-effect-phat):from-drum
2015-06-04 01:16:32 +03:00
++ from-lib
2015-09-02 01:20:17 +03:00
|* _[%helm ..$ ,_abet]:(helm)
2015-06-04 01:16:32 +03:00
=> .(+< [identity start finish]=+<)
=- [wrap=- *start] :: usage (wrap handle-arm):from-foo
|* handle=_finish
|= _+<.handle
=. +>.handle (start hid (able identity))
(ably (handle +<))
2015-05-17 22:39:03 +03:00
::
2015-09-02 01:20:17 +03:00
++ from-drum (from-lib %drum [..$ ,_se-abet]:(drum))
++ from-helm (from-lib %helm [..$ ,_abet]:(helm))
++ from-kiln (from-lib %kiln [..$ ,_abet]:(kiln))
2015-05-28 05:46:58 +03:00
::
2015-06-24 21:01:25 +03:00
++ init-helm |=([way=wire *] [~ +>])
++ made-kiln (wrap take-made):from-kiln
++ mere-kiln (wrap take-mere):from-kiln
++ mere-kiln-sync (wrap take-mere-sync):from-kiln
++ note-helm (wrap take-note):from-helm
++ onto-drum (wrap take-onto):from-drum
++ peer-drum (wrap peer):from-drum
2015-06-04 00:18:13 +03:00
++ poke-dill-belt (wrap poke-dill-belt):from-drum
2015-06-24 21:01:25 +03:00
++ poke-drum-link (wrap poke-link):from-drum
2015-09-12 03:07:50 +03:00
::++ poke-drum-exit (wrap poke-exit):from-drum
2015-06-24 21:01:25 +03:00
++ poke-drum-start (wrap poke-start):from-drum
++ poke-helm-hi (wrap poke-hi):from-helm
2015-06-04 00:18:13 +03:00
++ poke-helm-init (wrap poke-init):from-helm
2015-06-24 21:01:25 +03:00
++ poke-helm-invite (wrap poke-invite):from-helm
++ poke-helm-mass (wrap poke-mass):from-helm
++ poke-helm-reload (wrap poke-reload):from-helm
++ poke-helm-reload-desk (wrap poke-reload-desk):from-helm
++ poke-helm-reset (wrap poke-reset):from-helm
++ poke-helm-send-hi (wrap poke-send-hi):from-helm
2015-06-24 21:01:25 +03:00
++ poke-helm-verb (wrap poke-verb):from-helm
2015-07-13 23:57:01 +03:00
++ poke-helm-begin (wrap poke-begin):from-helm
++ poke-hood-sync (wrap poke-sync):from-kiln
2015-06-04 00:18:13 +03:00
++ poke-kiln-cp (wrap poke-cp):from-kiln
++ poke-kiln-label (wrap poke-label):from-kiln
2015-06-24 21:01:25 +03:00
++ poke-kiln-merge (wrap poke-merge):from-kiln
2015-09-16 03:24:44 +03:00
++ poke-kiln-cancel (wrap poke-cancel):from-kiln
2015-06-24 21:01:25 +03:00
++ poke-kiln-mount (wrap poke-mount):from-kiln
2015-06-04 00:18:13 +03:00
++ poke-kiln-mv (wrap poke-mv):from-kiln
2015-06-24 21:01:25 +03:00
++ poke-kiln-rm (wrap poke-rm):from-kiln
++ poke-kiln-schedule (wrap poke-schedule):from-kiln
2015-06-24 21:01:25 +03:00
++ poke-kiln-sync (wrap poke-sync):from-kiln
2015-09-17 01:39:11 +03:00
++ poke-kiln-autoload (wrap poke-autoload):from-kiln
2015-06-24 21:01:25 +03:00
++ poke-kiln-unmount (wrap poke-unmount):from-kiln
++ poke-kiln-unsync (wrap poke-unsync):from-kiln
2015-06-04 00:18:13 +03:00
++ poke-will (wrap poke-will):from-helm
++ quit-drum-phat (wrap quit-phat):from-drum
2015-06-24 21:01:25 +03:00
++ reap-drum-phat (wrap reap-phat):from-drum
2015-06-23 03:47:19 +03:00
++ woot-helm (wrap take-woot):from-helm
2015-09-17 01:39:11 +03:00
++ writ-kiln-autoload (wrap take-writ-autoload):from-kiln
++ writ-kiln-sync (wrap take-writ-sync):from-kiln
2015-05-11 21:05:14 +03:00
--