OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-agents commits / 0f1316c

Update notes
0f1316ca257fb902086bf441bdefd5663cc70307
by Linas Vepštas <linasvepstas@gmail.com> · 2024-04-07T02:35:23.000Z

Changed files (1) +5 -7

scm/pair-agent/count-agent.scm +5 -7
……@@ -28,9 +28,7 @@
2828 (define (incr-cnt edge)
2929 (SetValue edge (Predicate "count")
3030 (Plus (Number 0 0 1)
31 (Cond (FloatValueOf edge (Predicate "count"))
32 (FloatValueOf edge (Predicate "count"))
33 (FloatValueOf (Number 0 0 0))))))
31 (FloatValueOf edge (Predicate "count") (FloatValueOf (Number 0 0 0))))))
3432
3533 (define (extract stuff)
3634 (Filter
……@@ -66,11 +64,11 @@
6664
6765; Parses arrive as LinkValues. We want to apply a function to each.
6866; How? Need:
69; 3) ConcatenateLink like AccumulateLink, but flattens
70; Is this needed?
7167; 4) IncrementLink just like cog-inc-value!
72; 5) Support RuleLink so that sttream forking can be done with
73; multiple targets in the rule.
68; or is it enough to do atomic lock? Make SetValue exec under lock.
69;
70; cog-update-value calls
71; asp->increment_count(h, key, fvp->value()));
7472
7573; Works but non-atomic.
7674; Also requires RuleLink to work