- Auto Optimization Program
- 01 Sep 2010 06:29:16 pm
- Last edited by builderboy2005 on 03 Sep 2010 01:45:34 am; edited 3 times in total
So i was inspired by SourceCoders' Basic Optimizer function, and i thought about making one on the calculator, so you could optimize your Basic Programs without having to transfer them to the computer for any utility. I quickly wrote up some code in Axe, and the optimizations have started! Currently it has support for:
Ending Parenthasis
Ending Brackets
Ending Braces
Ending Quotes
Devlar
Powers of 10
Squared or cubed
Negative cancelations
And there is plans and psedocode for
Implied multiplication
=0 into Not(
Expression rearranging to maximize parenthesis deletion
any other ideas of simple find and replace optimizations that i could put into the optimizer? Obviously i cant do some of the complicated stuff, but there are some good simple replacements that can make a big difference. And note that it ignores Strings completely Strings Should not be changed ^^. And there also might be an option on whether to erase empty lines or not. Some people like to keep them for readability during development, and then maybe want to take them out later.
Ending Parenthasis
Ending Brackets
Ending Braces
Ending Quotes
Devlar
Powers of 10
Squared or cubed
Negative cancelations
And there is plans and psedocode for
Implied multiplication
=0 into Not(
Expression rearranging to maximize parenthesis deletion
any other ideas of simple find and replace optimizations that i could put into the optimizer? Obviously i cant do some of the complicated stuff, but there are some good simple replacements that can make a big difference. And note that it ignores Strings completely Strings Should not be changed ^^. And there also might be an option on whether to erase empty lines or not. Some people like to keep them for readability during development, and then maybe want to take them out later.