- Ford receives a ++sign from Clay containing the ++care of new revisions of some files we subscribed to on a ++path.
- Ford does a bi-jug lookup of the changed dependencies in its state's deps, which will return a set of ++build-indices whose builds they refer to may need to get rebuilt.
- For each of those build indices, Ford calls ++build-up.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> |% | |
+$ result | |
%+ each * | |
:: | |
$: blocks=(set [=term =beam]) | |
:: | |
$= continuation | |
$- (map [=term =beam] (unit cage)) | |
result | |
== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: start with some data from the lexical subject | |
:: | |
=/ a=@ 2 | |
:: a ford rune produces a +schematic:ford | |
:: | |
^- schematic:ford | |
:: /? produces a %reef at that version | |
:: | |
/? 310 | |
:: /+ prepend expression into subject (like =+ for ford) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: +cache-key: a key for looking up a build in the cache | |
:: | |
+= cache-key | |
$: sub-results=(list build-result) | |
$% [%$ literal=cage] | |
[%alts ~] | |
[%bake renderer=term query-string=coin path-to-render=rail] | |
[%bunt mark=term] | |
[%call ~] | |
[%cast mark=term] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: +cache-key: a key for looking up a build in the cache | |
:: | |
+= cache-key | |
$: sub-results=(list build-result) | |
$% [%$ literal=cage] | |
[%alts ~] | |
[%bake renderer=term query-string=coin path-to-render=rail] | |
[%bunt mark=term] | |
[%call ~] | |
[%cast mark=term] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|% | |
:: +make-diff: create a noun representing the diff from :a to :b | |
:: | |
++ make-diff | |
|= [a-vase=vase b-vase=vase] | |
^- vase | |
:: | |
?> (~(nest ut p.a-vase) | p.b-vase) | |
?> (~(nest ut p.b-vase) | p.a-vase) | |
:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: +build-status: current data for a build, including construction status | |
:: | |
:: +build-status stores the construction status of a build as a finite | |
:: state machine (:state), and it also contains the information needed | |
:: to relate this build to other builds, such as clients and sub-builds. | |
:: | |
+= build-status | |
$: :: listeners: current set of external listeners tracking this build | |
:: | |
listeners=(set listener) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|% | |
++ heap | |
|* a=mold | |
|= compare=$-([a a] ?) | |
=> |% | |
+= bi-tree [val=a rank=@ud kids=(list bi-tree)] | |
+= bi-heap (list bi-tree) | |
-- | |
|% | |
:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: | |
:: sys/ford/hoon | |
:: | |
|% | |
:: | |
:: +axle: overall ford state | |
:: | |
+= axle | |
$: :: date: date at which ford's state was updated to this data structure | |
:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A noun is an atom or a cell. An atom is a natural number. A cell is an ordered pair of nouns. | |
Reduce by the first matching pattern; variables match any noun. | |
nock(a) *a | |
[a b c] [a [b c]] | |
?[a b] 0 | |
?a 1 | |
+[a b] +[a b] |