neo: fix foreign deps && hack around no leaf

This commit is contained in:
Liam Fitzgerald 2024-06-12 15:23:42 -04:00
parent d6fb3e3dbb
commit c5058d3fee
5 changed files with 72 additions and 29 deletions

View File

@ -282,7 +282,7 @@
++ on-ack ++ on-ack
|= =ack:neo |= =ack:neo
=/ dst=name:neo (de-pith:name:neo p.p.ack) =/ dst=name:neo (de-pith:name:neo p.p.ack)
?> =(src.bowl ship.dst) :: ?> =(src.bowl ship.dst)
?: =(sys-pith p.p.ack) ?: =(sys-pith p.p.ack)
%. run %. run
?~ q.ack ?~ q.ack
@ -577,7 +577,18 @@
++ meat . ++ meat .
++ new ++ new
|= =yuga:neo |= =yuga:neo
=. yuga.deli yuga =. yuga.deli
%- gas-yuga
%+ murn ~(tap by ~(tar of:neo yuga))
|= [=pith:neo =aeon:neo]
=/ res (look %x pith)
?: ?=(?(~ [~ ~]) res)
`[pith aeon]
?~ rot=(~(get of:neo u.u.res) ~)
`[pith aeon]
?: =(p.exe.p.p.u.rot p.exe.p.aeon)
~
`[pith aeon]
~& new-yuga/yuga ~& new-yuga/yuga
meat meat
++ fetched ++ fetched
@ -718,6 +729,7 @@
++ abet run ++ abet run
++ rent . ++ rent .
++ get-ward (~(gut of:neo city) pith *ward:neo) ++ get-ward (~(gut of:neo city) pith *ward:neo)
++ has-kid !=(~ kid:(~(dip of:neo city) pith))
++ put-ward |=(=ward:neo rent(city (~(put of:neo city) pith ward))) ++ put-ward |=(=ward:neo rent(city (~(put of:neo city) pith ward)))
++ fact ++ fact
|= [=care:neo paxs=(set pith:neo)] |= [=care:neo paxs=(set pith:neo)]
@ -738,7 +750,6 @@
^- yuga:neo ^- yuga:neo
?~ pic=(need (look care p/our.bowl pith)) ?~ pic=(need (look care p/our.bowl pith))
*yuga:neo *yuga:neo
~& epic/u.pic
(epic-to-yuga u.pic) (epic-to-yuga u.pic)
:: ::
++ stop ++ stop
@ -791,6 +802,8 @@
=. rent (fact %z zed.war) =. rent (fact %z zed.war)
?~ nex=(dif:pith:neo pith until) ?~ nex=(dif:pith:neo pith until)
rent rent
?. has-kid
rent
$(pith (snoc pith i.nex)) $(pith (snoc pith i.nex))
-- --
++ rage ++ rage
@ -825,7 +838,8 @@
=/ =rave:neo (~(gut of:neo riot) here *rave:neo) =/ =rave:neo (~(gut of:neo riot) here *rave:neo)
=? run =(here change) =? run =(here change)
(spaz exe.rave %x change) (spaz exe.rave %x change)
=? run =(here (~(parent of:neo tide) change)) =/ par (~(parent of:neo loam) change)
=? run =(`here par)
(spaz why.rave %y change) (spaz why.rave %y change)
=. run =. run
(spaz zed.rave %z change) (spaz zed.rave %z change)
@ -1273,7 +1287,6 @@
!=(txt q.q.u.pal) !=(txt q.q.u.pal)
++ read-txt ++ read-txt
|= pax=path |= pax=path
~& reading-txt/pax
=+ .^(src=@t %cx `path`(welp root pax)) =+ .^(src=@t %cx `path`(welp root pax))
=. pax (snip pax) =. pax (snip pax)
=. run (write-txt pax src) =. run (write-txt pax src)
@ -1283,7 +1296,6 @@
++ read-file ++ read-file
|= pax=path |= pax=path
^+ run ^+ run
~& reading/pax
?. =((rear pax) %hoon) ?. =((rear pax) %hoon)
(read-txt pax) (read-txt pax)
=+ .^(src=@t %cx `path`(welp root pax)) =+ .^(src=@t %cx `path`(welp root pax))
@ -1299,7 +1311,6 @@
(mean p.res) (mean p.res)
%- mule |. %- mule |.
(scan (trip src) (rein:ford:neo [our.bowl (pave:neo (snip pax))])) (scan (trip src) (rein:ford:neo [our.bowl (pave:neo (snip pax))]))
~& [lib=lib pro=pro]:file
=/ has-imports=? =/ has-imports=?
?& (levy pro.file |=(pro:ford:neo ~(exists pro stud))) ?& (levy pro.file |=(pro:ford:neo ~(exists pro stud)))
(levy lib.file |=(lib:ford:neo ~(exists lib stud))) (levy lib.file |=(lib:ford:neo ~(exists lib stud)))
@ -2106,9 +2117,7 @@
^- $-(vase vase) ^- $-(vase vase)
?~ as.peer |=(=vase vase) ?~ as.peer |=(=vase vase)
.^(tube:clay %cc (welp /(scot %p our.bowl)/[r.p.u.p.syn]/(scot %da now.bowl) /(rear kid)/[u.as.peer])) .^(tube:clay %cc (welp /(scot %p our.bowl)/[r.p.u.p.syn]/(scot %da now.bowl) /(rear kid)/[u.as.peer]))
~& res/~(key by ~(tar of res))
=. res (~(dip of res) path.peer) =. res (~(dip of res) path.peer)
~& res/~(key by ~(tar of res))
=/ =note:neo [%poke %clay-res !>(`res:clay:neo`[hand case res])] =/ =note:neo [%poke %clay-res !>(`res:clay:neo`[hand case res])]
~& sending-to/src ~& sending-to/src
=/ =move:neo [[p/our.bowl #/$/clay] src note] =/ =move:neo [[p/our.bowl #/$/clay] src note]
@ -2548,13 +2557,22 @@
=/ lom (~(dip of:neo loam) prefix) =/ lom (~(dip of:neo loam) prefix)
=/ fam (~(dip of:neo farm) prefix) =/ fam (~(dip of:neo farm) prefix)
=/ rav (~(dip of:neo riot) prefix) =/ rav (~(dip of:neo riot) prefix)
=/ ton (~(dip of:neo town) prefix)
=/ cit (~(dip of:neo city) (tail prefix))
:- >fam< :- >fam<
:- >rav< :- >rav<
:- >ton<
:- >cit<
%- zing %- zing
%+ turn ~(tap by ~(tar of:neo lom)) %+ turn ~(tap by ~(tar of:neo lom))
|= [=pith:neo =soil:neo] |= [=pith:neo =soil:neo]
:~ >pith< :~ >pith<
>~(key by soil)< >~(key by soil)<
?~ val=(ram:on:soil:neo soil)
leaf/"No data"
?~ q.val.u.val
leaf/"~"
(sell q.u.q.val.u.val)
== ==
:: ::
++ print-dbug ++ print-dbug

View File

@ -395,7 +395,9 @@
=| gifts=(list gift:dirt:neo) =| gifts=(list gift:dirt:neo)
|= =epic:neo |= =epic:neo
^+ [gifts loam farm] ^+ [gifts loam farm]
=/ pic ~(tap of:neo epic) =/ pic
%+ sort ~(tap of:neo epic)
|=([[a=pith:neo *] [b=pith:neo *]] (lte-pith:neo a b))
|- |-
?~ pic ?~ pic
:+ gifts loam :+ gifts loam

View File

@ -1,14 +1,14 @@
:: ::
/- neo /- neo
|_ =slip:neo |_ =ack:neo
:: ::
++ grad %noun ++ grad %noun
++ grab :: convert from ++ grab :: convert from
|% |%
++ noun slip:neo ++ noun ack:neo
-- --
++ grow ++ grow
|% |%
++ noun slip ++ noun ack
-- --
-- --

View File

@ -2,7 +2,7 @@
^- kook:neo ^- kook:neo
|% |%
++ state pro/%sig ++ state pro/%sig
++ poke ~ ++ poke (silt %rely ~)
++ kids ++ kids
:+ ~ %y :+ ~ %y
%- ~(gas by *lads:neo) %- ~(gas by *lads:neo)
@ -32,20 +32,20 @@
^- (quip card:neo pail:neo) ^- (quip card:neo pail:neo)
?> =(%rely stud) ?> =(%rely stud)
:_ state :_ state
=+ !<([=term =stem:neo] vax) =+ !<([=term =leaf:neo] vax)
?> ?=(%y -.q.stem)
:: only get new kids :: only get new kids
=/ kids %+ murn
%+ skim ~(tap by ~(tar of:neo q:(~(got by deps.bowl) %pub)))
~(val by kids.q.stem) |= [=pith:neo =idea:neo]
|= [=ever:neo =mode:neo =pail:neo] ^- (unit card:neo)
=(%add mode) ~& pith/pith
?: =(~ kids) ?. ?=([[%da @] ~] pith)
~ ~
=/ pai=pail:neo pail:(snag 0 kids) ?: (~(has of:neo kids.bowl) pith)
=/ mes !<(message q.pai) ~
:~ :- (welp here.bowl ~[da/now.mes]) ?. =(%message p.pail.idea)
[%make [%message `pai ~]] ~
== ~& making/~
`[(welp here.bowl pith) %make %message `pail.idea ~]
-- --
-- --

View File

@ -2222,6 +2222,29 @@
#/std #/std
[p/ship.disk term.disk ~] [p/ship.disk term.disk ~]
-- --
++ lte-pith
|= [a=pith b=pith]
^- ?
?~ a &
?~ b |
?. =(i.a i.b)
%+ lte-dime
?^(i.a i.a [%tas i.a])
?^(i.b i.b [%tas i.b])
$(a t.a, b t.b)
::
++ lte-dime
|= [a=dime b=dime]
^- ?
?. =(p.a p.b)
(aor -.a -.b)
?+ p.a (lte q.a q.b)
%rd (lte:rd q.a q.b)
%rh (lte:rh q.a q.b)
%rq (lte:rq q.a q.b)
%rs (lte:rs q.a q.b)
%s !=(--1 (cmp:si q.a q.b))
?(%t %ta %tas) (aor q.a q.b)
==
::
-- --