Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Explaining how a (Mind) program works

Thread Tools

Explaining how a (Mind) program works

Arthur T. Murray
Posts: n/a
"Bill Modlin" <(E-Mail Removed)> wrote on Fri, 26 Sep 2003:
>>> If I wanted to explain how one of my programs worked
>>> I would not give someone a print out of the code.
>>> First I would explain it in higher level (folk psychology?)
>>> terms and then explain how I embodied these ideas in actual code.

>> I'm not sure why - especially if the person you're explaining it to
>> is a programmer and knows the language.

> For the same reason that all good programs are liberally annotated
> with comments. Programming languages are for controlling computers,
> not for communicating with people. It is laborious and error prone
> to attempt to discover the purpose of an algorithm implemented by
> a bit of code just by inspecting that code.

Nevertheless the original source code has to be made available, e.g. -- AI Mind in JavaScript; -- Mind.Forth PD AI.

> This is true even for the original author of the code.
> Code that seemed crystal clear and obvious at the time
> you wrote it is often indecipherable when a year later
> you are called upon to adjust or fix it in some fashion.

The factoring of Forth and the hierarchy of objects help here,
plus liberal comments and statements at the end of each Mind-
Module explaining to what other Module program-flow returns: -- Modules.

> Of course, the extensional function of each line of code is obvious
> to anyone who knows the language. There is no mystery in a line of
> code that says to increment the value of some variable by two:
> it says exactly what is to happen. [...]

> Literal quoting of code is sometimes a useful adjunct to understanding
> of function. We all generally like to have actual source to work with.

Yes, and so the AI4U (AI For Your) textbook of artificial intelligence at
contains a full source-code listing of the AI Mind-1.1 in MSIE JavaScript.
On September 24, 2003, a rather mean-spirited reviewer at B&N, hiding
behind anonymity, complained that "This book is not really a textbook
because it explains nothing. It rather is a collection of 'modules'
which the author expects the reader to implement" -- without pointing out
that the AI Mind modules are already implemented at the end of the book.

Now this author is indeed trying to get Minds coded in XYZ languages: -- C++ with new AI code; -- see Mind.JAVA #1 & #2; -- Lisp AI Weblog; -- first Perl module; -- Prolog AI Weblog; -- Python AI Weblog; -- Ruby AI Blog (OO AI); -- Scheme AI Weblog; -- see "Mind.VB #001" link.

> But it is only an adjunct: the necessary ingredient for understanding
> of non-trivial function is explanation of the principles of operation
> in human-interpretable language.

I have created every conceivable instrument of explaining the AI Mind. is Steps to DIY AI. -- AI Standards. -- AI Variables.

> Given the code one may never understand what it is for.

Recently I have been meeting in person with an incognito engineer
who has volunteered to attempt to translate (port) Mind.Forth into AI C++ Source Code.

> Given an understandable explanation of just what is to be done

Nothing beats having a one-on-one interactive discussion of
what is to be done to code AI and how to do it. That optimal
option is why I have a dreamworld fantasy of hiring out to CS
departments and AI labs to have my primitive but AI-coding
brain picked clean and dry of any contribution I make to AI.

> and how to do it, any programmer can produce new code
> for a function readily enough: having an actual worked out
> version to go by is a dispensable luxury. [...]

A.T. Murray
-- has been solved. -- AI Textbook; -- Goertzel on Mentifex; -- ACM SIGPLAN Mind.Forth
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Explaining how a (Mind) program works Arthur T. Murray Perl Misc 3 09-27-2003 11:35 AM
Explaining how a (Mind) program works Arthur T. Murray Python 1 09-27-2003 08:04 AM
Explaining how a (Mind) program works Arthur T. Murray Java 1 09-26-2003 11:38 PM
Explaining how a (Mind) program works (Was: Re: Learning...) Arthur T. Murray C++ 2 09-26-2003 06:28 PM