urbit/base/dog/solid.hoon

41 lines
864 B
Plaintext
Raw Normal View History

2015-03-12 19:35:06 +03:00
::
2015-06-05 03:27:01 +03:00
:::: /hoon/solid/gun
2015-03-12 19:35:06 +03:00
::
/? 314
2015-03-30 09:48:16 +03:00
/- *sole
2015-03-12 19:35:06 +03:00
::
::::
!:
|= $: [now=@da eny=@uvI bec=beak]
2015-03-12 19:35:06 +03:00
[~ ~]
==
2015-03-30 09:48:16 +03:00
%+ sole-so %noun
2015-04-30 01:48:45 +03:00
=+ top=`path`/(scot %p p.bec)/home/(scot %da now)/arvo
2015-03-12 19:35:06 +03:00
=+ pax=`path`(weld top `path`[%hoon ~])
~& %solid-start
=+ gen=(reck pax)
~& %solid-parsed
=+ ken=q:(~(mint ut %noun) %noun gen)
~& %solid-compiled
:- ken
=+ all=.*(0 ken)
=+ ^= vay ^- (list ,[p=@tas q=@tas])
:~ [%$ %zuse]
2015-05-10 01:55:05 +03:00
[%g %gall]
2015-03-12 19:35:06 +03:00
[%f %ford]
[%a %ames]
[%c %clay]
[%d %dill]
[%e %eyre]
[%t %time]
==
|- ^+ all
?~ vay all
=+ pax=(weld top `path`[q.i.vay ~])
=+ txt=((hard ,@) .^(%cx (weld pax `path`[%hoon ~])))
=+ sam=[now `ovum`[[%gold ~] [%veer p.i.vay pax txt]]]
~& [%solid-veer i.vay]
=+ gat=.*(all .*(all [0 42]))
=+ nex=+:.*([-.gat [sam +>.gat]] -.gat)
$(vay t.vay, all nex)