Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18946 > unrolled thread

AI Differences between Forth and JavaScript

Started byMentifex <mentifex@myuw.net>
First post2013-03-19 10:21 -0700
Last post2013-03-20 20:43 +0000
Articles 5 — 4 participants

Back to article view | Back to comp.lang.javascript


Contents

  AI Differences between Forth and JavaScript Mentifex <mentifex@myuw.net> - 2013-03-19 10:21 -0700
    Re: AI Differences between Forth and JavaScript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-03-19 14:43 -0700
      Re: AI Differences between Forth and JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-20 11:03 +0100
        Re: AI Differences between Forth and JavaScript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-03-20 13:47 -0700
    Re: AI Differences between Forth and JavaScript Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-03-20 20:43 +0000

#18946 — AI Differences between Forth and JavaScript

FromMentifex <mentifex@myuw.net>
Date2013-03-19 10:21 -0700
SubjectAI Differences between Forth and JavaScript
Message-ID<9cb9f93a-0f52-4732-aa93-aec8c28c3a9e@qo9g2000pbb.googlegroups.com>
The German artificial intelligence for Linux

http://cyborg.blogspot.com/2009/11/linux.html

64-bit supercomputers is currently the most
advanced Mentifex AI Mind, but it warrants
porting into a JavaScript tutorial version
for memetic purposes of AI diaspora and for
incentivising ports into further languages
(both programming and natural languages).

Therefore yesterday I was translating the

http://code.google.com/p/mindforth/wiki/InFerence

module for machine reasoning from Forth into

http://cyborg.blogspot.com/2009/08/javascript.html

JavaScript and I ran into problems with how to
translate the following Forth neural-net AI code:

1 t +!  \ increment t to store direct object; 30jan2013
seqtqv @  7 psi{ @  t @  0 psi{ !  \ dir. obj 30jan2013
 40  t @  1 psi{ !  \ activation of direct object 30jan2013
seqtqv @  7 psi{ @  t @  8 psi{ !  \ enx 18dec2012; 30jan2013
dobseq @   t @  0 de{ !   \ so noun can be found; 30jan2013

The code above in Forth and below in JavaScript
stores the direct object "child" in the inference
formed when we tell the AI that "Eve is a woman."
Since the AI knows that "Women have a child",
the artificial Mind infers the possibility,
"Eve has a child." Forth fetches the concept of
"child" from one point in the mindgrid array and
inserts the stack-riding value into another point.
To code the same neural-net algorithm in JavaScript,
it was necessary to create the special variables
"seqdob" for the sequential direct object and
"seqenx" for the sequential English transfer.
Notice how verbose the code is in JavaScript:

t = (t+1);  // increment time to store direct object; 18mar2013
Psi[seqtqv].psiExam(); // obtain seqdob from Psi array; 18mar2013
seqdob = psi7;  // to serve as "psi0" in next insertion 18mar2013
seqenx = psi8;  // to serve as "psi8" in next insertion 18mar2013
Psi[t].psiExam(); // expose values for change of some; 18mar2013
Psi[t] = new psiNode(seqdob,40,psi2,psi3,psi4,psi5,psi6,psi7,seqenx);
enLexicon[t].enExam();  // expose values even if empty; 18mar2013
enLexicon[t] = new enNode(dobseq,en1,en2,en3,en4,en5,en6,en7,en8);

http://www.scn.org/~mentifex/AiMind.html is now

"Artificial General Intelligence with machine
reasoning by inference", but the mind-modules

http://code.google.com/p/mindforth/wiki/AskUser

http://code.google.com/p/mindforth/wiki/KbRetro

have yet to be ported from Forth into JavaScript.
The current AiMind.html creates only a silent
inference visible as array-elements in Diagnostic
Display Mode when the AI is run in MS Explorer.

If these Mentifex AI Minds and other projects
catch on with some burgeoning pre-Cambrian-esque
explosiveness, behold soon an emergent job market
for AI coders and AI installation technicians.

Mentifex (Arthur)
--
http://www.scn.org/~mentifex/DeKi.txt
http://www.scn.org/~mentifex/Dushka.html
http://www.scn.org/~mentifex/mindforth.txt
http://store.kagi.com/cgi-bin/store.cgi?storeID=AMP_Live

[toc] | [next] | [standalone]


#18948

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2013-03-19 14:43 -0700
Message-ID<cf54b278-900d-4ebe-bc58-b5d8027f7a54@y4g2000yqa.googlegroups.com>
In reply to#18946
Despite the fact you write in a form analogous to post-modernists[1],
I will nevertheless offer the following advice: A stack oriented
language generally consists of functions from Stack -> Stack where a
Stack is implemented as a tuple of (a,Stack). Translating this into
another language which is either not stack oriented, or not one
amenable to the manipulation of such structures will no doubt lead to
a program of greater verbosity. As a result it would be wiser to
change perspective and use a different data structure such as a list,
or higher order combinators. For JavaScript I suggest either extending
an Array-like structure with methods, or implementing a fluent
interface for your DSL before layering the Forth translation on top of
it.


[1] http://old.richarddawkins.net/articles/824


On Mar 19, 12:21 pm, Mentifex <menti...@myuw.net> wrote:
> The German artificial intelligence for Linux
>
> http://cyborg.blogspot.com/2009/11/linux.html
>
> 64-bit supercomputers is currently the most
> advanced Mentifex AI Mind, but it warrants
> porting into a JavaScript tutorial version
> for memetic purposes of AI diaspora and for
> incentivising ports into further languages
> (both programming and natural languages).
>
> Therefore yesterday I was translating the
>
> http://code.google.com/p/mindforth/wiki/InFerence
>
> module for machine reasoning from Forth into
>
> http://cyborg.blogspot.com/2009/08/javascript.html
>
> JavaScript and I ran into problems with how to
> translate the following Forth neural-net AI code:
>
> 1 t +!  \ increment t to store direct object; 30jan2013
> seqtqv @  7 psi{ @  t @  0 psi{ !  \ dir. obj 30jan2013
>  40  t @  1 psi{ !  \ activation of direct object 30jan2013
> seqtqv @  7 psi{ @  t @  8 psi{ !  \ enx 18dec2012; 30jan2013
> dobseq @   t @  0 de{ !   \ so noun can be found; 30jan2013
>
> The code above in Forth and below in JavaScript
> stores the direct object "child" in the inference
> formed when we tell the AI that "Eve is a woman."
> Since the AI knows that "Women have a child",
> the artificial Mind infers the possibility,
> "Eve has a child." Forth fetches the concept of
> "child" from one point in the mindgrid array and
> inserts the stack-riding value into another point.
> To code the same neural-net algorithm in JavaScript,
> it was necessary to create the special variables
> "seqdob" for the sequential direct object and
> "seqenx" for the sequential English transfer.
> Notice how verbose the code is in JavaScript:
>
> t = (t+1);  // increment time to store direct object; 18mar2013
> Psi[seqtqv].psiExam(); // obtain seqdob from Psi array; 18mar2013
> seqdob = psi7;  // to serve as "psi0" in next insertion 18mar2013
> seqenx = psi8;  // to serve as "psi8" in next insertion 18mar2013
> Psi[t].psiExam(); // expose values for change of some; 18mar2013
> Psi[t] = new psiNode(seqdob,40,psi2,psi3,psi4,psi5,psi6,psi7,seqenx);
> enLexicon[t].enExam();  // expose values even if empty; 18mar2013
> enLexicon[t] = new enNode(dobseq,en1,en2,en3,en4,en5,en6,en7,en8);
>
> http://www.scn.org/~mentifex/AiMind.htmlis now
>
> "Artificial General Intelligence with machine
> reasoning by inference", but the mind-modules
>
> http://code.google.com/p/mindforth/wiki/AskUser
>
> http://code.google.com/p/mindforth/wiki/KbRetro
>
> have yet to be ported from Forth into JavaScript.
> The current AiMind.html creates only a silent
> inference visible as array-elements in Diagnostic
> Display Mode when the AI is run in MS Explorer.
>
> If these Mentifex AI Minds and other projects
> catch on with some burgeoning pre-Cambrian-esque
> explosiveness, behold soon an emergent job market
> for AI coders and AI installation technicians.

[toc] | [prev] | [next] | [standalone]


#18952

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-03-20 11:03 +0100
Message-ID<17947332.WRUPsqWfjX@PointedEars.de>
In reply to#18948
Michael Haufe (TNO) wrote:

> Despite the fact you write in a form analogous to post-modernists[1],
> […]

Please do not feed the troll. [1]

Please do not crosspost without Followup-To. [2]

Please do not use Google Groups for posting to Usenet. [3]

Please do not top-post. [4, 5]

F'up2 comp.lang.javascript

________
[1] <http://www.nothingisreal.com/mentifex_faq.html>
[2] <http://en.wikipedia.org/wiki/Crossposting>
[3] <http://al.howardknight.net/msgid.cgi?ID=120829004500>
[4] <http://jibbering.com/faq/#posting>
[5] <http://pointedears.de/faq#posting>
-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#18960

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2013-03-20 13:47 -0700
Message-ID<3ac25b57-8560-46cd-aa94-f7a29249850f@c6g2000yqh.googlegroups.com>
In reply to#18952
On Mar 20, 5:03 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
> Michael Haufe (TNO) wrote:
> > Despite the fact you write in a form analogous to post-modernists[1],
> > […]
>
> Please do not feed the troll. [1]
>
> Please do not crosspost without Followup-To. [2]
>
> Please do not use Google Groups for posting to Usenet. [3]
>
> Please do not top-post. [4, 5]
>
> F'up2 comp.lang.javascript


Thank you, I will consider it.

[toc] | [prev] | [next] | [standalone]


#18961

FromDr J R Stockton <reply1300@merlyn.demon.co.uk.invalid>
Date2013-03-20 20:43 +0000
Message-ID<fxPx3VHG+hSRFw+A@invalid.uk.co.demon.merlyn.invalid>
In reply to#18946
In comp.lang.javascript message <9cb9f93a-0f52-4732-aa93-aec8c28c3a9e@qo
9g2000pbb.googlegroups.com>, Tue, 19 Mar 2013 10:21:48, Mentifex
<mentifex@myuw.net> posted:

>
>http://code.google.com/p/mindforth/wiki/InFerence
>
>module for machine reasoning from Forth into
>
>http://cyborg.blogspot.com/2009/08/javascript.html


If you write, or otherwise obtain, a Forth interpreter written in
JavaScript, then you will immediately be able to run all of the Forth
that anyone generates, for the project or otherwise.

I found it easy enough to write an RPN engine in Pascal (longcalc, via
sig line 3).

-- 
 (c) John Stockton, nr London UK.  ?@merlyn.demon.co.uk  DOS 3.3, 6.20; WinXP.
  Web  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms and links.
   PAS EXE TXT ZIP via  <http://www.merlyn.demon.co.uk/programs/00index.htm>
   My DOS  <http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web