@@ -20,24 +20,24 @@ A function that produces the list of primes less than or equal to
20its argument, an atom:
20its argument, an atom:
23−|= thru/@ :: 1
23+|= thru=@ :: 1
24^- (list @) :: 2
24^- (list @) :: 2
25−=/ field/(set @) (silt (gulf 2 thru)) :: 3
25+=/ field=(set @) (sy (gulf 2 thru)) :: 3
26=< abet:main :: 4
26=< abet:main :: 4
28++ abet :: 6
28++ abet :: 6
29 (sort ~(tap in field) lth) :: 7
29 (sort ~(tap in field) lth) :: 7
31++ main :: 9
31++ main :: 9
32− =/ factor/@ 2 :: 10
32+ =/ factor=@ 2 :: 10
33 |- ^+ ..main :: 11
33 |- ^+ ..main :: 11
34 ?: (gth (mul factor factor) thru) :: 12
34 ?: (gth (mul factor factor) thru) :: 12
35 ..main :: 13
35 ..main :: 13
36 $(factor +(factor), ..main (reap factor)) :: 14
36 $(factor +(factor), ..main (reap factor)) :: 14
38++ reap :: 16
38++ reap :: 16
39− |= factor/@ :: 17
39+ |= factor=@ :: 17
40− =/ count/@ (mul 2 factor) :: 18
40+ =/ count=@ (mul 2 factor) :: 18
41 |- ^+ ..reap :: 19
41 |- ^+ ..reap :: 19
42 ?: (gth count thru) :: 20
42 ?: (gth count thru) :: 20
43 ..reap :: 21
43 ..reap :: 21
@@ -51,9 +51,9 @@ its argument, an atom:
51## `sieve`: explanation
51## `sieve`: explanation
54−|= thru/@ :: 1
54+|= thru=@ :: 1
55^- (list @) :: 2
55^- (list @) :: 2
56−=/ field/(set @) (silt (gulf 2 thru)) :: 3
56+=/ field=(set @) (sy (gulf 2 thru)) :: 3
59Line `1`: we are building a gate (function) whose sample
59Line `1`: we are building a gate (function) whose sample
@@ -62,7 +62,7 @@ Line `1`: we are building a gate (function) whose sample
62Line `2`: the product of this gate is a list of atoms.
62Line `2`: the product of this gate is a list of atoms.
64Line `3`: we introduce a variable `field`, whose type is a set of
64Line `3`: we introduce a variable `field`, whose type is a set of
65−atoms. The `silt` function converts a list to a set. The `gulf`
65+atoms. The `sy` function converts a list to a set. The `gulf`
66function creates the range `2` through `thru` inclusive, as a
66function creates the range `2` through `thru` inclusive, as a
67list of atoms.
67list of atoms.
@@ -90,7 +90,7 @@ the set as a list. We sort this list in ascending order with
92++ main :: 9
92++ main :: 9
93− =/ factor/@ 2 :: 10
93+ =/ factor=@ 2 :: 10
94 |- ^+ ..main :: 11
94 |- ^+ ..main :: 11
@@ -116,8 +116,8 @@ replacing the core with a version sieved by `reap`.
118++ reap :: 16
118++ reap :: 16
119− |= factor/@ :: 17
119+ |= factor=@ :: 17
120− =/ count/@ (mul 2 factor) :: 18
120+ =/ count=@ (mul 2 factor) :: 18
123Lines `16` and `17`: the `reap` arm, which produces a gate that
123Lines `16` and `17`: the `reap` arm, which produces a gate that
@@ -149,9 +149,9 @@ multiple of `factor`, and deleting it from `field`.
150Finally, the same code in a more concise "kernel" style.
150Finally, the same code in a more concise "kernel" style.
153^- (list @)
153^- (list @)
154−=+ fed=(silt (gulf 2 top))
154+=+ fed=(sy (gulf 2 top))
155=< abet:main
155=< abet:main
157++ abet (sort (~(tap in fed)) lth)
157++ abet (sort (~(tap in fed)) lth)
@@ -163,7 +163,7 @@ Finally, the same code in a more concise "kernel" style.
163 $(fac +(fac), ..main (reap fac))
163 $(fac +(fac), ..main (reap fac))
166− |= fac/@
166+ |= fac=@
167 =+ cot=(mul 2 fac)
167 =+ cot=(mul 2 fac)
168 |- ^+ ..reap
168 |- ^+ ..reap
169 ?: (gth cot top)
169 ?: (gth cot top)