Pondering... Multi-dimensional programming

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Pondering... Multi-dimensional programming

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yep.. do it allll the time. :)
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

I use Perl to create PHP scripts. :twisted:
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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??
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There are a lot of terms: polymorphic is a pretty typical, self-modifying is another.. depending on the circles you travel in...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

But what does it do? What can you do with it? and most importantly does it allow time travel or AI?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Mind Blowing.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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...;)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

I have such thing implemented in my Database Manipulation Software 8) 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 8)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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)
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post 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
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post 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.
Post Reply