On Saturday, April 25, 2015 at 6:46:08 AM UTC-7, Henry Law wrote:
> Some people have a clue; I'm not convinced that you are yet one of them.
I should state my "clue" right here and now.
The main feature of the Mentifex AI Minds is
that they establish nouns and verbs and other words
as longitudinal (diachronic) concepts, so that
an idea such as "Boys play games" can be represented
internally as an associative node on the "boy" concept
tagged orthogonally over to a node on the "play" concept,
which leads further by associative tag over to the "game" concept.
These AI Minds in Forth and in JavaScript have already
shown the ability to infer new knowledge from old knowledge.
For instance, a human being may input "boys play games"
and sometime later input "john is a boy". The AI Mind
will infer that John, being a boy, perhaps play games,
and will ask the user, "DOES JOHN PLAY GAMES".
I am now trying to create the same level of AI in Perl,
while streamlining the AI codebase and removing what
to me is like "Junk DNA" in the Forth AI code.
>
> On 25/04/15 14:16,
menti...@gmail.com wrote:
> > On Saturday, April 25, 2015 at 5:24:53 AM UTC-7, Robbie Hatley wrote:
> >> Package variables (in this case in package main::) should be
> >> declared with "our":
> >
> > Indeed, Pearl by Example, 5th Edition, page 689
> > has information on "our", which I must henceforth consider.
>
> There is no book of that name but I do recommend you read "Perl by
> Example".
OK, you got me. I was in a rush after coding this morning
and I made at least two mistakes in my post upthread.
The book is "Perl by Example," and in a commented line like
sub sensorium; #2015apr24 PbEx5e p. 351: Forward declaration.
I am starting to refer to the book as "PbEx5e" w. page number.
Since that book has a copyright in this same year of 2015
when I am finally coding the AI in Perl, I may try to give
a lot of page-number references to things I find in that book,
so that other Perl newbies like myself may purchase the book
and follow along with the AI coding.
I am also taking pains to change a line of code as done below:
# print "Think: ", $message, " is okay \n"; # 2015apr24
print " comes from auditory memory. \n"; # 2015apr24
where I comment out the old line and put the new line below.
But I leave in the commented-out line for at least one
iteration of coding and Web-uploading, so that anyone
trying to follow the genesis of the AI may see the change.
>
> >>
> >> our $engram = "a";
> > This (Saturday) morning I coded inconclusively --
> > because perl was objecting to my use of "my $1" in a loop,
> > so I did not have any stable code to upload.
> > Perhaps if I use "our" tonight, the code will work better.
>
> "our $1" will not work any better, because the names of variables (after
> the initial character which shows what type they have) must be "a string
> beginning with a letter or underscore, and containing letters,
> underscores, and digits." (perldata)
There was my second mistake this morning. I accidentally
did not type $i as I found on PbEx5e p. 197.
>
> >> The $ sigil is used on any scalar (singular) values, even
> >> if they're elements of an array. The @ sigil is used only
> >> for whole arrays.
> >
> > Oh, you're right! I used $aud for fetching phonemes
> > from the @aud auditory array, but I did not realize
> > that I should use $aud also in _storing_ phonemes.
>
> This discussion is nothing whatever to do with whether you are
> "fetching" or "storing"; it's to do with fundamental data types and the
> ways that they are referred to in a program. Again, read perldata.
> You will make no progress until you understand this basic point.
>
OK, thank you for the sound advice. I have been runnng around
Seattle all morning and afternoon. Now I must nap before coding.
> --
>
> Henry Law Manchester, England
Arthur T. Murray