Mind.py

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arthur T. Murray

    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
  • Roman Suzi

    #2
    Re: Mind.py


    On Tue, 17 Aug 2004, Arthur T. Murray wrote:
    [color=blue]
    > 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.[/color]

    .... cross it with Tim Rue's autocoding and human race is obsolete.


    Sincerely yours, Roman A.Suzi
    --
    - Petrozavodsk - Karelia - Russia - mailto:rnd@oneg o.ru -


    Comment

    • Roman Suzi

      #3
      Re: Mind.py


      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

      Comment

      • Roman Suzi

        #4
        Re: Mind.py


        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

        Comment

        • Peter Hansen

          #5
          Re: Mind.py

          Roman Suzi wrote:
          [color=blue]
          > rsvp = 1000
          >[/color]
          ....[color=blue]
          > time.sleep(rsvp/1000) # End of quasi-loop time-delay of rsvp-value milliseconds.[/color]

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

          -Peter

          Comment

          • Roman Suzi

            #6
            Re: Mind.py

            On Tue, 17 Aug 2004, Peter Hansen wrote:
            [color=blue]
            >Roman Suzi wrote:
            >[color=green]
            >> rsvp = 1000
            >>[/color]
            >...[color=green]
            >> time.sleep(rsvp/1000) # End of quasi-loop time-delay of rsvp-value milliseconds.[/color]
            >
            >Latent bug... someone will decide during maintenance to
            >change that "rsvp" delay to, perhaps, a smaller value,
            >resulting in no delay at all...[/color]

            Thank you! Corrected.

            New version (refactured) is available:




            ....

            (no index yet :-(


            [color=blue]
            >-Peter[/color]

            Sincerely yours, Roman Suzi
            --
            rnd@onego.ru =\= My AI powered by GNU/Linux RedHat 7.3

            Comment

            • Erik Max Francis

              #7
              Re: Mind.py

              "Arthur T. Murray" wrote:
              [color=blue]
              > 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.[/color]



              --
              __ Erik Max Francis && max@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

              Comment

              • Arthur T. Murray

                #8
                Re: Mind.py

                Roman Suzi <rnd@onego.ru > wrote on Tue, 17 Aug 2004:[color=blue]
                > [...]
                > 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
                > [...][/color]

                http://yaroslav.hopto.org/pubwiki/index.php/ai-python OT APTYPA!

                Comment

                • threeseas

                  #9
                  Re: Mind.py

                  Erik Max Francis wrote:[color=blue]
                  > "Arthur T. Murray" wrote:
                  >
                  >[color=green]
                  >>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.[/color]
                  >
                  >
                  > http://www.nothingisreal.com/mentifex
                  >[/color]

                  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.

                  Comment

                  • Erik Max Francis

                    #10
                    Re: Mind.py

                    threeseas wrote:
                    [color=blue]
                    > Erik Max Francis wrote:
                    >[color=green]
                    > > "Arthur T. Murray" wrote:
                    > >[color=darkred]
                    > > > 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.[/color]
                    > >
                    > > http://www.nothingisreal.com/mentifex[/color]
                    >
                    > its a good thing we all use our minds alike, huh?
                    >
                    > Oh wait, so why doesn't Arthur slander or libel himself?[/color]

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

                    --
                    __ Erik Max Francis && max@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

                    Comment

                    • Nick Chackowsky

                      #11
                      Re: Mind.py

                      Erik Max Francis wrote:[color=blue]
                      > threeseas wrote:
                      >
                      >[color=green]
                      >>Erik Max Francis wrote:
                      >>
                      >>[color=darkred]
                      >>>"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[/color]
                      >>
                      >>its a good thing we all use our minds alike, huh?
                      >>
                      >>Oh wait, so why doesn't Arthur slander or libel himself?[/color]
                      >
                      >
                      > It's like an epic battle between Racter and Eliza!
                      >[/color]
                      I was *wondering* why this sounded so familiar!

                      Comment

                      • threeseas

                        #12
                        Re: Mind.py

                        Nick Chackowsky wrote:[color=blue]
                        > Erik Max Francis wrote:
                        >[color=green]
                        >> threeseas wrote:
                        >>
                        >>[color=darkred]
                        >>> 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?[/color]
                        >>
                        >>
                        >>
                        >> It's like an epic battle between Racter and Eliza!
                        >>[/color]
                        > I was *wondering* why this sounded so familiar![/color]

                        This you? http://www.ratemyteachers.ca/ShowRatings.jsp?tid=47471

                        and lets not forget what Erik spend his time on..

                        Crank Dot Net: cranks, crackpots, kooks, & loons on the net


                        .... shrug ... maybe that should be epic battle between Erik and Nick...

                        this is a python programming language newsgroup.

                        Comment

                        Working...