Pages: [1] 2   Go Down
Author Topic: If a program could program itself?.... (AI)  (Read 5617 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 29
Posts: 2359
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If a program could program itself?....

eg, you give it an IDE it manipulates it feeds in the data compiles it, if the code does not compile it will try something else except instead of making mistakes it can not only generate code compile it and then execute it to perform new tasks and call new instructions if it could learn to program and learn new ways modifying old code with perfect code, the most efficient way and fastest way of everything down at the very bit limit meaning 255 bytes of memory would be used perfectly never making array mistakes never using too much memory... basically what humans inspire for, imagine a program code a computer program a game or anything better than anything any human can....

would that not put turings ask a question get an answer and believe it? to shame?.... a program like that could rewrite code for aircraft, military, anything with a computer and if it evolved to implant trojans in firmware from...without getting carried away, that's more impressive than anything else to prove AI...
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

They've been trying for ages. It was being talked about back when I was a trainee COBOL programmer twenty-odd years ago, and it's still being talked about now.

I remember reading the headline article in some issue of Personal Computer World, called 'The Last One', which described Fourth Generation Languages, which would be programmed using entirely natural language, and computer programmers would no longer be needed.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Hi cjdelpi,

to get a grasp of how difficult it is write an Arduino program that writes its own source code to Serial.

don't google for it as it can be done,

hint:

void loop() {}

can be empty.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Hertfordshire, U.K.
Offline Offline
Jr. Member
**
Karma: 2
Posts: 84
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I suspect that if such a program could be written, it would be done using 'LISP'.

LISP is (or has been) much used for 'Expert Systems'. I had a look at it years ago, but left it feeling that it could push a person to the edge of insanity - with just one more pair of square brackets needed to push them over the edge!

Jim
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's the real kicker of a question:  If the program could write itself, what would it write itself to do?  What function would it accomplish?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If the program could write itself, what would it write itself to do?
Could we get it to then post the code?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25756
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
with just one more pair of square brackets needed to push them over the edge!
LISP uses round parentheses, hence the acronym Lots of Infuriating Silly Parentheses
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Hertfordshire, U.K.
Offline Offline
Jr. Member
**
Karma: 2
Posts: 84
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
with just one more pair of square brackets needed to push them over the edge!
LISP uses round parentheses, hence the acronym Lots of Infuriating Silly Parentheses

Yeah I forgot. The memory had been mercifully erased from my brain!

Jim
Logged

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
   Way back when I was very excited by genetic programming as written about by this guy in his book genetic programming -

http://www.genetic-programming.com/johnkoza.html

I wrote a simple interpreter for a lisp like language that simulated autonomous agents ran in a simulated environment, the langauge descibed the agents behaviour which survival and breeding opportunities depended on. The population should have evolved one or more effective programs for survival within the environment, it was very exciting at the time. The limitation was the relative simplicity of the environments I was able to create before completing my studies and starting work.

Thoroughly enjoyed Koza's book and all the projects I have done in genetic algorithms and genetic programming, it was a really exciting area in 1992.

Duane B

rcarduino.blogspot.com
Logged


Wellington, New Zealand
Offline Offline
Sr. Member
****
Karma: 1
Posts: 404
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I suspect that if such a program could be written, it would be done using 'LISP'.

LISP is (or has been) much used for 'Expert Systems'. I had a look at it years ago, but left it feeling that it could push a person to the edge of insanity - with just one more pair of square brackets needed to push them over the edge!

Jim

LISP? (No, (I beg (to ((((differ)))))))).  It would be written in Prolog, with Natural Language support and full forward and backward chaining statistical inference engines.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 38
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think a program that makes programs based on users' requests makes sense. Of course we already have this, in a way, with the programming IDE and programming languages in general. So, programs do make programs. They make the ones we tell them to make based on how we tell them to make them.

You couldn't really make a "perfect" programming language unless it was programmed to be able to program... well, everything in every possible way, and someone would have to program it to be able to do that in the first place.

A program that programs itself is a "chicken or the egg" (OK, so the egg came first or there was no such thing as a completely definitive first chicken, but ignoring these minor technicalities...). You could make a program that can make changes to its programming, but how it goes about doing that and what changes it makes are determined by what it's programmed to be able to change and how it is programmed to react to changes in its "environment," or status.

How feasible would it be to create the foundations for and evolve a sentient and intelligent program? (And for that matter, how sentient and intelligent are any of us really?)
« Last Edit: April 11, 2012, 09:49:00 pm by Wrend » Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

if the code does not compile it will try something else except instead of making mistakes it can not only generate code compile it and then execute it to perform new tasks and call new instructions if it could learn to program and learn new ways ...

Here's the problem...

We have all seen the very bizarre things people do to "get it to compile". Unfortunately, without really understanding the problem, the code that now compiles, usually fails spectacularly at runtime.

Would you really be happy flying in a Jumbo Jet, whose inflight navigation system passed the test: "it compiled without errors" ? Or even, whose captain "passed the test by answering all the questions correctly".
Logged

Firenze, Italy
Offline Offline
Full Member
***
Karma: 0
Posts: 104
Dislessia portami via
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Would you really be happy flying in a Jumbo Jet, whose inflight navigation system passed the test: "it compiled without errors" ? Or even, whose captain "passed the test by answering all the questions correctly".


That's the point, you will never have dependability! 

Logged

The brightest flame burns quickest

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

    Did anyone check out the link to genetic programming, it might never fly a jumbo but its a surprisingly effective program generator in some domains.

Duane B

rcarduino.blogspot.com
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The one thing about this that I've always wondered I know certain virus's have the ability to morph into completely new version of a virus to trick antivirus scanners so wouldn't this sort of be considered as AI technology by some form because the programmer is giving the virus the ability to compile itself into something new? I mean types of virus's like this apply self modifying code and alter there own instructions after execution. I know that using virus as a topic for discussion isn't the best example but I've always wondered if a virus can modify itself to morph wouldn't it be possible in normal programming if it was programmed to change its instructions on its own causing it to be self sustaining basically to do a task?
Logged

Pages: [1] 2   Go Up
Jump to: