On Tue, May 22, 2018 at 12:48 AM, Nil Geisweiller <[email protected]> wrote:
> On 05/21/2018 11:11 PM, Linas Vepstas wrote: > >> actually make the atom. Atoms are also held in an index, so that they >> can be searched by name, by type. Insertion into an index is expensive -- >> and stupid, if you never use the index. Values avoid this overhead. >> > > Could this indexing be made lazy? > No, its fundamental to what the definition of the atomspace is. Its the only way that you can have a single, unique (Concept "cat") in the system. It also provides memory management, so that (Concept "cat") doesn't disappear, when the last pointer to it is released. Of course, you don't have to use the atomspace, if you don't want to -- but then you have to (a) provide your own memory management, and (b) provide your own way of finding all instances of (Concept "cat") that you care about. But if you just want (a) and (b), then why not just use the atomspace? --linas -- cassette tapes - analog TV - film cameras - you -- You received this message because you are subscribed to the Google Groups "opencog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/opencog. To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CAHrUA34Sh3L6vi1nKAN5TPOc8i4p2XYeC8R-6Kq323-0Rx%2B4cw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
