Page 1 of 2
Pondering... Multi-dimensional programming
Posted: Thu Nov 10, 2005 6:29 pm
by Luke
Couldn't you use php to dynamically create javascript coding? This would be like mulit-dimensional programming. Has anybody ever done this? I wonder if code writing code could lead to artificial intelligence. Has anybody every tried to write code that creates code? Wow... this is blowing my mind.
Posted: Thu Nov 10, 2005 6:30 pm
by feyd
yep.. do it allll the time.

Posted: Thu Nov 10, 2005 6:33 pm
by Buddha443556
I use Perl to create PHP scripts.

Posted: Thu Nov 10, 2005 6:36 pm
by Luke
Holy crap... that amazes me. I'm not sure why, but that's awesome. Is that what it's called? Multi-dimensional programming? I am utterly utterly amazed.
Does this allow time travel? Future telling? Lol what can you do with this??
Posted: Thu Nov 10, 2005 6:38 pm
by feyd
There are a lot of terms: polymorphic is a pretty typical, self-modifying is another.. depending on the circles you travel in...
Posted: Thu Nov 10, 2005 6:40 pm
by feyd
although, polymorphic is often used by OOP under different usage.. But I do remember that's what we called it back in the day (15+ years ago)
Posted: Thu Nov 10, 2005 6:40 pm
by Luke
But what does it do? What can you do with it? and most importantly does it allow time travel or AI?
Posted: Thu Nov 10, 2005 6:49 pm
by feyd
it takes a lot of time to write a good (read long living) self-modifying code page. The problem is, it's very difficult to know where and how it's working, as well as reproduction of bugs or hunting down other problems.. but yes, it can lead to AI like systems, although there are a lot of non-self-modifying systems that perform pretty good AI already.. For more "realistic" AI, people often emply
neural networks.. both are large fields of study and are growing rapidly.
I can see in our future that we'll likely have AI peripheral cards in our computers to make games smarter, more of a challenge to play, or more realistic because there's already too much stuff that needs processing for todays games and todays processors..
Posted: Thu Nov 10, 2005 7:32 pm
by Luke
Mind Blowing.
Posted: Fri Nov 11, 2005 4:07 am
by Maugrim_The_Reaper
I can see in our future that we'll likely have AI peripheral cards in our computers to make games smarter, more of a challenge to play, or more realistic because there's already too much stuff that needs processing for todays games and todays processors..
Only a matter of time - dedicated physics cards are already on the books...

Posted: Fri Nov 11, 2005 4:36 am
by onion2k
I write PHP that generates PHP that the script then runs through eval() occasionally. It's very useful. Dynamically generated Javascript is essential.
Posted: Fri Nov 11, 2005 5:18 am
by n00b Saibot
I have such thing implemented in my Database Manipulation Software

It would write PHP, JS and ASP code for you e.g. to export a certain table you can choose to export as SQL stmts., PHP Script, ASP script, Word Table, Excel Sheet, XML file, Simple Text (CSV)... so basically ya! I have done it before and do it often enough

Posted: Thu Jul 13, 2006 1:17 pm
by Luke
I am finally doing this... Google Maps + PHP... pretty cool. (sorry for the bump, but I am excited and I remembered this thread)
Posted: Thu Jul 13, 2006 1:28 pm
by MrPotatoes
i studied nueral networks in gaming. i wanted to put that into my final project. but oncei figured out that i sucked at AI i didn't even bother with anything of significant value.
depressing really
Posted: Thu Jul 13, 2006 1:33 pm
by daedalus__
I was thinking about using PHP to do the math I wish I could do in CSS when I deal with absolute positioning.