473,804 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mind.py

Now, suppose that you wanted to write an AI in Python that would
implement your mind-model and allow it to grow, mutate, develop.
Here is one possible scenario.

It would not be necessary to do all the work yourself. If we
began coding a baby Mind.py and published the initial code
out on the Web, other Python programmers might start adding
to it and start specializing in the refinement of hotspots.

http://mind.sourceforge.net/aisteps.html begins with a list
of six modules (Security; Sensorium; Emotion; Think; Volition;
Motorium) that could be roughed out as a looping chain as in
http://mind.sourceforge.net/jsaimind.html -- the JavaScript AI.

You or anyone else who disagreed with the choice or naming of
the top-level mind-modules could simply web-publish a Mind.py
with a different arrangement of mind-modules in Python.
Non-global variables could be used, and each coder could
web-publish a Table of Mind.py Variables for reference.

Although it might seem trivial to web-publish only the
initial chain-loop of the cycling mind-modules, one has
to start coding AI somewhere, and there might be novice
Python programmers who would learn Python by coding AI.

[Uh oh; I just got the urge to post this plan on Usenet!]

At a certain critical mass, the Python AI code might escape
the purview of any single code-maintainer and speciate so
widely, so wildly, that Python became the language of choice
for all teaching of AI and all early AI implementations .

I mean, what are the relative Web-saturations of Python and Perl?
Recently on SlashDot or elsewhere I was reading that those who
want a job learn Java, while those who want to code, use Python.
The idea was that Python attracts those who write the best code.

Anyway, once Mind.py code starts appearing on the Web, it may
mutate. If not, "Survival of the fittest" sounds its death-knell.
But results are not instant. Months or years may first go by.

Since I do not know Python, I would keep working on the JavaScript
AI, which I would eventually retro-port into the Mind.Forth AI.

Now in news:comp.lang. python I will post much of the above text.

Sincerely,

Arthur T. Murray
--
http://mind.sourceforge.net/python.html -- Python AI Weblog
Jul 18 '05 #1
11 2570

On Tue, 17 Aug 2004, Arthur T. Murray wrote:
Now, suppose that you wanted to write an AI in Python that would
implement your mind-model and allow it to grow, mutate, develop.
Here is one possible scenario.


.... cross it with Tim Rue's autocoding and human race is obsolete.
Sincerely yours, Roman A.Suzi
--
- Petrozavodsk - Karelia - Russia - mailto:rn*@oneg o.ru -
Jul 18 '05 #2

This is non-threaded Mind in Python. I was having fun with this module
as it already was out of control at this early stage of development:

os.execv(sys.ar gv[0], sys.argv) it appears must have all args as a

second arg, and I supposed that I must exclude sys.argv[0] from it.

All other modules are like this:

-><----------- Security.py

def Security(m):
pass

-><-----------

But they are needed to have something non-trivial.

Rejuvenations are made as complete restarting the process. This is
in case Mind changed some modules by itself ;-) Or even it's main module
aLife.py ;-)

Have fun.
-><------------------------------------------------------------------

#!/usr/bin/python
# -*- mode: python -*-
# $Id:$

"""
aLife() (artificial life) is the Robot AI Mind main loop.
"""

import sys, time, os
from Security import Security
from Sensorium import Sensorium
from Emotion import Emotion
from Think import Think
from Volition import Volition
from Motorium import Motorium
from Voice import Voice

class Mind: # Tabula rasa
pass

rsvp = 1000

def aLife(): # ATM 27oct2002 or your ID & date.
try:
m = Mind() # persistence to be added in future
Security(m) # For human control and operation of the AI.
Sensorium(m) # Audition other human-robot input senses.
Emotion(m) # Quasi-physiological influence upon thought.
Think(m) # Syntax and vocabulary of natural languages.
Volition(m) # Contemplative selection of motor options.
Motorium(m) # Robotic activation of motor initiatives.
except:
sys.exit(0)
rjc = int((sys.argv[1:2] or ['0'])[0])
# If the AI has not met with misadventure,
fyi = "aLife: calling itself t = %s rejuvenations = %i" % (time.strftime( "%Y.%m.%d %H:%H:%S"), rjc)
print fyi # Display the Voice:brain "For Your Information".
Voice(m)
time.sleep(rsvp/1000) # End of quasi-loop time-delay of rsvp-value milliseconds.
sys.argv[1] = str(rjc + 1)
os.execv(sys.ar gv[0], sys.argv) # Call aLife again.
# End of one pass through the aLife Mind that repeats itself.

if __name__ == "__main__":
aLife()

# End of aLife.py
Jul 18 '05 #3

Now it has persistant Memory. Hope it's not a crime ;-)

-><------------------------------------------------------------------

#!/usr/bin/python
# -*- mode: python -*-
# $Id: aLife.py,v 1.1 2004/08/17 15:58:04 rnd Exp $

"""
aLife() (artificial life) is the Robot AI Mind main loop.
"""

import sys, time, os, shelve
from Security import Security
from Sensorium import Sensorium
from Emotion import Emotion
from Think import Think
from Volition import Volition
from Motorium import Motorium
from Voice import Voice

class Mind:
pass

def TabulaRasa():
ms = shelve.open("mi nd", "c")
ms['mind'] = Mind()
ms.close()

def RestoreMemory() :
return shelve.open("mi nd", "c")['mind']

def SaveMemory(m):
stored = shelve.open("mi nd", "c")
stored['mind'] = m
stored.close()

rsvp = 1000

def aLife(): # ATM 27oct2002 or your ID & date.
try:
m = RestoreMemory()
Security(m) # For human control and operation of the AI.
Sensorium(m) # Audition other human-robot input senses.
Emotion(m) # Quasi-physiological influence upon thought.
Think(m) # Syntax and vocabulary of natural languages.
Volition(m) # Contemplative selection of motor options.
Motorium(m) # Robotic activation of motor initiatives.
except:
raise
sys.exit(0)
rjc = int((sys.argv[1:2] or ['0'])[0])
# If the AI has not met with misadventure,
fyi = "aLife: calling itself t = %s rejuvenations = %i" % (time.strftime( "%Y.%m.%d %H:%H:%S"), rjc)
print fyi # Display the Voice:brain "For Your Information".
Voice(m)
time.sleep(rsvp/1000) # End of quasi-loop time-delay of rsvp-value milliseconds.
sys.argv[1] = str(rjc + 1)
SaveMemory(m)
os.execv(sys.ar gv[0], sys.argv) # Call aLife again.
# End of one pass through the aLife Mind that repeats itself.

if __name__ == "__main__":
if sys.argv[1] == '0':
print "aLife: mind is born"
TabulaRasa()
aLife()

# End of aLife.py
Jul 18 '05 #4
Roman Suzi wrote:
rsvp = 1000
.... time.sleep(rsvp/1000) # End of quasi-loop time-delay of rsvp-value milliseconds.


Latent bug... someone will decide during maintenance to
change that "rsvp" delay to, perhaps, a smaller value,
resulting in no delay at all...

-Peter
Jul 18 '05 #5
On Tue, 17 Aug 2004, Peter Hansen wrote:
Roman Suzi wrote:
rsvp = 1000
...
time.sleep(rsvp/1000) # End of quasi-loop time-delay of rsvp-value milliseconds.


Latent bug... someone will decide during maintenance to
change that "rsvp" delay to, perhaps, a smaller value,
resulting in no delay at all...


Thank you! Corrected.

New version (refactured) is available:

http://python.onego.ru/mind/__init__.py
http://python.onego.ru/mind/aLife.py
http://python.onego.ru/mind/Security.py
....

(no index yet :-(
-Peter


Sincerely yours, Roman Suzi
--
rn*@onego.ru =\= My AI powered by GNU/Linux RedHat 7.3
Jul 18 '05 #6
"Arthur T. Murray" wrote:
Now, suppose that you wanted to write an AI in Python that would
implement your mind-model and allow it to grow, mutate, develop.
Here is one possible scenario.


http://www.nothingisreal.com/mentifex

--
__ Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Can I be your friend / 'Till the end
-- India Arie
Jul 18 '05 #7
Roman Suzi <rn*@onego.ru > wrote on Tue, 17 Aug 2004:
[...]
New version (refactured) is available:

http://python.onego.ru/mind/__init__.py
http://python.onego.ru/mind/aLife.py
http://python.onego.ru/mind/Security.py
[...]


http://yaroslav.hopto.org/pubwiki/index.php/ai-python OT APTYPA!
Jul 18 '05 #8
Erik Max Francis wrote:
"Arthur T. Murray" wrote:

Now, suppose that you wanted to write an AI in Python that would
implement your mind-model and allow it to grow, mutate, develop.
Here is one possible scenario.

http://www.nothingisreal.com/mentifex


its a good thing we all use our minds alike, huh?

Oh wait, so why doesn't Arthur slander or libel himself?

In other words: regardless of whatever I may think of Arthur, he may
actually be applying effort to understand his own unique use of the mind
and then to code a mirror of it.

But this doesn't mean his effort is invalid (even considering the
difficultly cause by being inherently subjective), but only that it is
different than the way you use your mind. Do you fit the norm?

There are plenty of examples in human history where such non-standard
direction and use of the mind brought the whole race improvment in
living standards and enjoyment of life.

L. Da Vinci..... how did he use his mind to do all that he did?

Passon is another quality.

Perhaps the question to ask is: Does the code run?

I think that is about all that is required as qualifying to post in a
usenet comp.lang newsgroup.

As to negative responses to his posting to usenet.... it only shows that
there are more who prefer to act like some animal, a dog perhaps, trying
to bury their favorite bone.

The point is:

its only a matter of time before people on teh internet become
experienced enough with what to expect that such psuedo FAQs and the
likes are realized for what they are. Attempts to control the thought
process of others whom they probably don't know.

Maybe like how the roman numeral accountants promoted "how can nothing
have value? what such a foolish contridiction" in reference to the zero
place holder. And done so in order to protect their position/status in
society and the rewards of it, if not just their own self programming of
their minds.

Imagine, if you are capable of it, that the human mind is programmable.
What program do you have running?

I can't say I understand what Arthur is on about and I don't believe its
possible to create anything more than the illusion of intelligence in
machine, but he has never done anything to put me on a negative side
against him.

And if I don't want to read his posting, well then nobody is forcing me
to. I know how to exercise "choice"! All those who feel that they must
suppress others via the generation of attacks upon them...... well they
appear less capable of using their minds. What sort of AI reflection of
their own minds would they create?

Or is there no "I"ntellige nce in their obvious "A"rtificialnes s.

This is a python language newsgroup, but clearly there are those who
want it to be more constrained than that. There are those who want it to
become either what they want it to be or a negative septic tank, of
which either way its a "my way of no way" line of crap.
Jul 18 '05 #9
threeseas wrote:
Erik Max Francis wrote:
"Arthur T. Murray" wrote:
Now, suppose that you wanted to write an AI in Python that would
implement your mind-model and allow it to grow, mutate, develop.
Here is one possible scenario.


http://www.nothingisreal.com/mentifex


its a good thing we all use our minds alike, huh?

Oh wait, so why doesn't Arthur slander or libel himself?


It's like an epic battle between Racter and Eliza!

--
__ Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Who shall stand guard to the guards themselves?
-- Juvenal
Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2207
by: Arthur T. Murray | last post by:
"Bill Modlin" <modlin1@metrocast.net> wrote on Fri, 26 Sep 2003: <snip> >>> 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. BM:
0
1293
by: net4professionals | last post by:
marriage in ur mind??? visit http://www.net4matrimonials.com job in ur mind??? visit http://www.net4professionals.com EMPLOYERS CAN POST UPTO 5 JOB FREE
13
1488
by: Adrienne Boswell | last post by:
In the site I am redoing, I am frequently running into this screnario: Tel: (818) 555-1212 Fax: (818) 555-1234 where the tel and fax should be bold to stand out. Currently, I am using span with a class, eg: <span class="fields"> and fields is font- weight:bold. I am wondering whether it would better just to use <b>, as it is for presentation only.
1
1332
by: James Conrad StJohn Foreman | last post by:
Hi, we've recently changed our db2 server from using a single RAID array to a SAN. (machine is running 8.2.4 UDB on SLES 9, 2.6 kernel, 32 bit Intel) If we'd been using a RAID array, then we'd be tuning prefetch size according to the number of discs and the stripe size. From what I understand of the SAN configuration, there's an abstraction layer between the physical storage and what gets presented to the machines
0
1828
by: tommak | last post by:
It's a dream of human beings to build machines that can think and behave like human beings. The most important part of of such a machine is an artificial mind that can emulate the cognitive processing of human mind. This book, "Next Generation Artificial Intelligence, Artificial Mind - Part One - Basic Architecture and Cognitive Structure" introduces a basic artificial mind architecture and computational model for cognitive...
11
2214
by: Wayne | last post by:
I am a one man enterprise and have been asked by a prospective client what happens to their database regarding ongoing changes etc if I get hit by a bus. Obviously my databases are distributed as mde files in an effort to protect my intellectual property. How do I give the client peace of mind, short of giving them a backup mdb file that any programmer could work on to provide required changes etc if I wasn't around? Of course this...
1
1487
by: tommak | last post by:
It's a dream of human beings to build machines that can think and behave like human beings. The most important part of of such a machine is an artificial mind that can emulate the cognitive processing of human mind. This book, "Next Generation Artificial Intelligence, Artificial Mind - Part One - Basic Architecture and Cognitive Structure" introduces a basic artificial mind architecture and computational model for cognitive processing....
3
4183
by: StevieG555 | last post by:
Hi everyone, I am new to Ajax and have been fascinated by the possibilities available with JavaScript and XML. More specifically, I am interested in mind mapping and would like to know how to actually write the code in Ajax to implement a mind mapping application such as MindMeister. I have read through lots of forums, books and articles on Ajax but did not find anything useful so far to help me out. Ideally, I would like to use PHP...
0
9712
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9171
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.