@@ -33,7 +33,7 @@ discarded when execution completes. Thus, the execution is "pure".
3333Next ` PureExec ` got used to define tail-recursive loops. The structure
3434here is
3535```
36- (DefineLink (DefinedProcedutre "foo")
36+ (DefineLink (DefinedProcedure "foo")
3737 (PureExec AST (DefinedProcedutre "foo")))
3838```
3939so the AST performs a single-step of the loop, and the
@@ -51,9 +51,7 @@ Until `PureExec` was introduced, there wasn't anything analogous for
5151execution. The ` ParallelLink ` and cousins run threads, but there was no
5252` SerialLink ` mostly because step-wise execution was not needed.
5353
54- The whole Threaded/Serial Atomese toolset needs to be revised to be
55- cleaner. ThreadJoinLink should be marked obsolete. PureExec needs to
56- be redesigned as described below.
54+ PureExec needs to be redesigned as described below.
5755
5856Since the initial idea of ` PureExec ` was purity, it could not be used
5957for tail-recursive, serialized execution in the current AtomSpace: so an
@@ -62,14 +60,13 @@ to generalize this to allow a GPU to be specified, or more generally an
6260external object.
6361
6462But first, a distraction:
65- The ` ExecutThreadedLink ` gathers results into a QueueValue. There needs
66- to be a ` NullLink ` which says "execute me but discard the return value".
67- But such a ` NullLink ` could naturally do serial execution. So ... it
68- suggests that we need a "serial exec and gather the return values" as
69- well as a "serial exec and discard the return values" link types. What
70- names should they be given?
63+ The ` ExecuteThreadedLink ` gathers results into a QueueValue. The
64+ ` ParallelLink ` fires and forgets: it runs threads, dettaches, does
65+ not wait for completion; does not collect results. Also does not specify
66+ max-threads to use (because doing so des not seem to make sense, if
67+ one is not going to wait?)
7168
7269TODO List
7370---------
7471Writiing the above, the TODO list expands:
75- * The ThreadJoinLink should be removed from Atomese.
72+ * The ThreadJoinLink should be removed from Atomese. DONE.
0 commit comments