Skip to content

Commit

Permalink
Merge pull request #6353 from ashelkovnykov/eval-ted
Browse files Browse the repository at this point in the history
ted: add mark to use eval thread via khan
  • Loading branch information
belisarius222 committed Mar 2, 2023
2 parents ccc3527 + 5ff37c5 commit 1bd6f99
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
10 changes: 10 additions & 0 deletions pkg/arvo/mar/ted/eval.hoon
@@ -0,0 +1,10 @@
/- eval=ted-eval
|_ put=inpt:eval
++ grab |%
++ noun inpt:eval
--
++ grow |%
++ noun put
--
++ grad %noun
--
5 changes: 5 additions & 0 deletions pkg/arvo/sur/ted/eval.hoon
@@ -0,0 +1,5 @@
^?
|%
+$ deps (list path)
+$ inpt $@(cord (pair cord deps))
--
9 changes: 2 additions & 7 deletions pkg/arvo/ted/eval.hoon
@@ -1,16 +1,11 @@
/- spider
/- spider, eval=ted-eval
/+ strandio
=, strand=strand:spider
=>
|%
+$ deps (list path)
+$ inpt $@(cord (pair cord deps))
--
^- thread:spider
|= raw=vase
=/ m (strand ,vase)
^- form:m
=+ !<(arg=(unit inpt) raw)
=+ !<(arg=(unit inpt:eval) raw)
?~ arg
(strand-fail:strand %no-input ~)
?@ u.arg
Expand Down
9 changes: 2 additions & 7 deletions pkg/arvo/ted/khan-eval.hoon
@@ -1,16 +1,11 @@
/- spider
/- spider, eval=ted-eval
/+ strandio
=, strand=strand:spider
=>
|%
+$ deps (list path)
+$ inpt $@(cord (pair cord deps))
--
^- thread:spider
|= raw=vase
=/ m (strand ,vase)
^- form:m
=+ !<(arg=(unit inpt) raw)
=+ !<(arg=(unit inpt:eval) raw)
?~ arg
(strand-fail:strand %no-input ~)
=/ com
Expand Down

0 comments on commit 1bd6f99

Please sign in to comment.