My monumentally EPIC idea.
Posted: Tue Aug 25, 2009 5:03 pm
Okay. So I was sitting there and BAM! This amazing idea popped into my head. I immediately began writing it down and this is what I came up with:
A scripting platform for the iPhone/ iPod Touch.
I have no idea if this has been created or is in development, but I think it could change everything. So this "iCode" platform, or rather a series of tools, would be basically an iPhone application, a desktop editor(I'm fairly proficient in Visual Basic, and have no experience with Mac programming, and have absolutely no access to a Linux computer), and a website, that is written(hopefully) in PHP, which I guess I could say I'm proficient in. It would have a database of user's scripts that people could share, rate, comment, download, and all that jazz. You could also share scripts directly if you are on the same network as someone. These scripts could be anything from games(OpenGL enhanced, none of that Quartz/ CoreGraphics stuff), to utilities, and even, if I ever get around to it, people could create their own User interfaces using actual UI objects.
This is just an idea, and most likely won't get anywhere, but if it did, I think it could change everything. I don't want to use an already built scripting language such as Lua, because I think it would be too heavy for a mobile platform( I am 90% sure I am wrong), and I think it would be a good learning experience to write my own text parser that parses the scripts and acts dynamically during run-time of the script.
Basic functions would be stuff like:
orientation("Right" or "Left" or "Portrait") -- for changing (0,0) to be in the bottom left corner depending on the iPhone's orientation.
pixelOn(X, Y, R, G, B) -- Turn a pixel on at a certain point.
pixelOff(X, Y) -- Short for pixelOn(X,Y, 0,0,0) for black
apply_image(X, Y, image) -- apply an image, obviously
load_image(imageCode, imageSlot) -- I think i would use numbers for the image names like OpenGL does. look down underneath this block for more info on imageCode.
getAllTouches() -- get the current touch locations
getAccelData() -- gets the current accelerometer X, Y, Z values to detect movement and stuff.
setAccelSpeed() -- this would set how many times a second the accelerometer refresh would be.
setFPS(number)
and so on.
I would probably have my website as a host for all the images. You would use a form on my website to upload an image, and it would give you a code for the image.
This is waaaay beyond my programming skills, and any help would be appreciated. Right now, I'm just trying to understand basic compiler theory. I know it wouldnt be a "compiler" but the same aspect of pasrsing the text for code would be similar. I think the basic idea would be to use strtok(CodeString, ";") to seperate the lines.
My made-up scripting language would be called "ibly". :D
Thank you for reading and enduring my rant. :D
A scripting platform for the iPhone/ iPod Touch.
I have no idea if this has been created or is in development, but I think it could change everything. So this "iCode" platform, or rather a series of tools, would be basically an iPhone application, a desktop editor(I'm fairly proficient in Visual Basic, and have no experience with Mac programming, and have absolutely no access to a Linux computer), and a website, that is written(hopefully) in PHP, which I guess I could say I'm proficient in. It would have a database of user's scripts that people could share, rate, comment, download, and all that jazz. You could also share scripts directly if you are on the same network as someone. These scripts could be anything from games(OpenGL enhanced, none of that Quartz/ CoreGraphics stuff), to utilities, and even, if I ever get around to it, people could create their own User interfaces using actual UI objects.
This is just an idea, and most likely won't get anywhere, but if it did, I think it could change everything. I don't want to use an already built scripting language such as Lua, because I think it would be too heavy for a mobile platform( I am 90% sure I am wrong), and I think it would be a good learning experience to write my own text parser that parses the scripts and acts dynamically during run-time of the script.
Basic functions would be stuff like:
orientation("Right" or "Left" or "Portrait") -- for changing (0,0) to be in the bottom left corner depending on the iPhone's orientation.
pixelOn(X, Y, R, G, B) -- Turn a pixel on at a certain point.
pixelOff(X, Y) -- Short for pixelOn(X,Y, 0,0,0) for black
apply_image(X, Y, image) -- apply an image, obviously
load_image(imageCode, imageSlot) -- I think i would use numbers for the image names like OpenGL does. look down underneath this block for more info on imageCode.
getAllTouches() -- get the current touch locations
getAccelData() -- gets the current accelerometer X, Y, Z values to detect movement and stuff.
setAccelSpeed() -- this would set how many times a second the accelerometer refresh would be.
setFPS(number)
and so on.
I would probably have my website as a host for all the images. You would use a form on my website to upload an image, and it would give you a code for the image.
This is waaaay beyond my programming skills, and any help would be appreciated. Right now, I'm just trying to understand basic compiler theory. I know it wouldnt be a "compiler" but the same aspect of pasrsing the text for code would be similar. I think the basic idea would be to use strtok(CodeString, ";") to seperate the lines.
My made-up scripting language would be called "ibly". :D
Thank you for reading and enduring my rant. :D