Author Topic: Auto Optimization Program  (Read 49404 times)

0 Members and 3 Guests are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Auto Optimization Program
« Reply #45 on: September 04, 2010, 09:12:06 pm »
Right, which is why it will have to be a tricky program to write.  I shall have to see how well it works out.  Although it is only a 1 byte optimization.... hmm we shall see

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Auto Optimization Program
« Reply #46 on: September 04, 2010, 09:27:44 pm »
Yeah, not only would Celtic3 be a *lot* slower, but it is actualy not any easier to read tokens.  It's very easy to read tokens in axe, since most all tokens are just a single number.  So not only would it be faster in axe, but you also wouldn't need two or more programs to carry around.  

And thanks happybobjr for the signed app, I forgot to sign the app once again XD I made it an app just because it seemed appropriate for this type of program.  And so that it would be completely safe if I messed up when I'm working with the vat :P

as for the Boolean optimizations, it hasn't been implemented yet, but a primitive version is being planned :)

And that's an awesome optimization on Illustat! :D although it might be mostly linebreaks if you use them to organize your code.
Well I may be good at designing games, but I am not that great at optimizing. From early 2005 to 2009, I hardly coded new games, or just coded small stuff. As a result, most tricks I knew were rudimentary. I optimized I13 more than any other game I made, though.

EDIT: If I compare with another program, on Illusiat 6/Nemesiat launch program, which is roughly 5 KB, I got 51 bytes of optimizations :P
« Last Edit: September 04, 2010, 09:32:12 pm by DJ Omnimaga »

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Auto Optimization Program
« Reply #47 on: September 04, 2010, 09:54:36 pm »
This is really cool!  Did you use any assembly code?  Its seems like a very useful project.
« Last Edit: September 04, 2010, 09:54:51 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline matthias1992

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 408
  • Rating: +33/-5
    • View Profile
Re: Auto Optimization Program
« Reply #48 on: September 04, 2010, 10:01:35 pm »
Ti connect gives me a transfer error because of a error in the app's signature.

USB Communication Error: Flash application has a bad signature
{8C08002D}
MASM xxxxxxxxxx aborted | SADce ====:::::: 40% -Halted until further notice| XAOS =====::::: 50% -Units done| SKYBOX2D engine ========== 100% -Pre-alpha done. Need to  document it and extend |

~Those who dream by day are cognizant of much more than those who dream by night only. -Sir Edgar Allen Poe-

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Auto Optimization Program
« Reply #49 on: September 04, 2010, 10:02:38 pm »
This is really cool!  Did you use any assembly code?  Its seems like a very useful project.

Looking at the source code in SourceCoder it doesn't appear so, but I could be wrong. Just skimmed it.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Auto Optimization Program
« Reply #50 on: September 04, 2010, 10:17:25 pm »
Ti connect gives me a transfer error because of a error in the app's signature.

USB Communication Error: Flash application has a bad signature
{8C08002D}

did you try the version posted by happybobjr on an earlier post? He signed that one: http://www.omnimaga.org/index.php?action=dlattach;topic=4300.0;attach=3121

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Auto Optimization Program
« Reply #51 on: September 04, 2010, 10:37:16 pm »
Yeah it's pure axe :) and yeah I forgot to sign it again x.x the one posted by happybobjr should work

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Auto Optimization Program
« Reply #52 on: September 04, 2010, 11:07:23 pm »
I love being able to do something useful :)
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Auto Optimization Program
« Reply #53 on: September 07, 2010, 06:52:57 pm »
From the screenshot, it seems like the progress bar is moving really slowly. Seeing how much faster Axe got (and the pixel-change examples DJ made here), it might be faster if you updated it less often.




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Auto Optimization Program
« Reply #54 on: September 07, 2010, 06:57:24 pm »
It's not the display that is moving slowly. It's because the file DJ ran the app through was so large (over 14KB if I saw correctly). The time it takes to finish all depends on how big the file is.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Auto Optimization Program
« Reply #55 on: September 07, 2010, 07:12:04 pm »
Well its not lightning fast optimizer :P I did increase the interval and it was noticeably faster however, so that is a definite plus :)

EDIT: Ninja'd, and meishe makes a good point :P It took 14 seconds to optimize that file, so it runs at about 1000 tokens per second, which is pretty repecable if i do say so myself :P It will get faster in the next update however, as i am implementing short circuit logic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Auto Optimization Program
« Reply #56 on: September 07, 2010, 07:23:02 pm »
sorry, but how much longer untill the next update?
I am just excited for this as I m for axe.

*  Would it be too hard to ignore the :: at the beginning of a MOs game? I noticed it was fine for ::DESCRIPTION but w/o the description, it removes a :.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Auto Optimization Program
« Reply #57 on: September 07, 2010, 07:24:34 pm »
Ah good idea, i also have to get it to ignore Axe programs (for now! >:D) or else it might 'optimize' them so that they didnt work XD

As for a next update, hopefully sometime this week :) I shouldn't be too busy

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Auto Optimization Program
« Reply #58 on: September 07, 2010, 07:25:52 pm »
Well for an optimizer I think any speed would be acceptable considering how useful they are :) (I just mean if I had a program that was really large and didn't want to go though and find this stuff myself I wouldn't mind waiting a little bit.)

1000 bytes per second? That's not bad at all :) What is short circuit logic?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Auto Optimization Program
« Reply #59 on: September 07, 2010, 07:28:25 pm »
Ah good idea, i also have to get it to ignore Axe programs (for now! >:D) or else it might 'optimize' them so that they didnt work XD

As for a next update, hopefully sometime this week :) I shouldn't be too busy

hummm. i haven't tried to do an axe source code... I was afraid of it doing something wrong. I was getting some errors,  i deleted all doors app variables and reset ram though, and everything was fixed.  (The errors were popping up with doors' basic editor.)

Ninja'd on something... I'll soon see

Edit: Note: Random: Hi:  have you ever noticed we have devil  >:D smilies, yet we don't have any of Christ to ward off the demons...
« Last Edit: September 07, 2010, 07:30:50 pm by happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________