opTI-Basic

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

Post Reply
Brazucs
New Member
Posts: 72
Joined: Wed 05 Oct, 2005 6:06 pm
Contact:

opTI-Basic

Post by Brazucs »

Out of the remnants of TI-BBCode Converter, I'm now developing:

opTI-Basic
ASCII Translator and TI-BASIC Code Optimizer


So far, I only have 18 optimization catagories.
If anyone has any more, please post them here!
Clicky for the ones I already have/am working on.
Last edited by Brazucs on Sat 19 Nov, 2005 10:48 pm, edited 1 time in total.
Image

Image
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

This sounds cool, but is there going to be advanced optimazations?
Brazucs
New Member
Posts: 72
Joined: Wed 05 Oct, 2005 6:06 pm
Contact:

Post by Brazucs »

Not that many, since everyone codes a little differently.
That's just meant to get the basic stuff down. Mainly for noobs, etc...

The optimization part of it is really the "secondary" thing. The coolest aspect of it is the ASCII translator, IMHO.
Image

Image
Brazucs
New Member
Posts: 72
Joined: Wed 05 Oct, 2005 6:06 pm
Contact:

Post by Brazucs »

I've been taking a bunch of programs from ticalc, running them through optiBasic, and checking to make sure the functionality's still good. Here's what I got:

optiBasic v0.25α
Program Name: AB-Dome (Battle Dome) V. 0.798
Size Before: 9402
Size After: 9108
Bytes Saved: 294

Program Name: Bob Sled v1.4
Size Before: 4594
Size After: 4510
Bytes Saved: 84

Program Name: Blokzle! v3.0
Size Before: 1906+417
Size After: 1850+397
Bytes Saved: 76

Program Name: The best geometry program for TI83+! v.3.1.0
Size Before: 1403
Size After: 1377
Bytes Saved: 26

Program Name: xLIB xLIB Revolution v. 1.3 (and its level editor)
Size Before: 2968+1029
Size After: 2957+1025
Bytes Saved: 19 (awesome coding, Kevin...)

...and optiB is still in its infancy!!
Image

Image
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

Cooooool can we run the BASIC contest programs through this?
Image
Kozak
Maxcoderz Staff
Posts: 791
Joined: Fri 17 Dec, 2004 5:33 pm
Location: On the dark side of the moon.
Contact:

Post by Kozak »

What kind of optimizations do you check for?
"They say that sea was created by a man named Maarten Zwartbol, a long time ago...." - Duck, an old Corbin version
KevinJB
Calc Wizard
Posts: 501
Joined: Sat 28 May, 2005 5:34 am
Location: Chesapeake, Virginia
Contact:

Post by KevinJB »

I believe that it's most likely just easy stuff like
If XXX=0 /->/ If not(XXX
0->A:XXX /->/ Delvar AXXX

etc, but I dunno and I don't underestimate Brazucs :wink:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
KevinJB | RevSoft
Brazucs
New Member
Posts: 72
Joined: Wed 05 Oct, 2005 6:06 pm
Contact:

Post by Brazucs »

What? I'll never tell you what the optimizations are!!!

Lol, jk :lol:
Click. I've done all the ones with checkmarks, but I just found another page full of optimizations, so they should be added soon.

Right now, I'm working on syntax coloring. Click
Test code:
:"2X Fasttunnel 1.0
7P
DelVar SClrHome
Output(2,1,">>>>>>>2X<<<<<<<
Output(3,1,"<<<FastTunnel>>>
Repeat Ans=21 or Ans=105
Output(7,1,">----START-----<>-----EXIT-----<
Output(P,2,"
P+(Ans=34 and P=7)-(Ans=25 and P=8P
Output(P,2,"--------------
getKey
End
ClrHome
If P=8
Return
For(A,1,7
Disp
End
1P
{0,0,0,2.11L1
2.13B
Repeat (iPart(B)=iPart(L1(P)-1)) or (iPart(B)=4+iPart(L1(P))+(fPart(B)=fPart(L1(P)-1)) or (fPart(B)=.04+fPart(L1(P
Disp
Output(5,iPart(B),"V
Output(5,100fPart(B),"V
Output(8,1,"================
L1(P
+3-4(P>1
Ans+
randInt(-(iPart(Ans)>1),iPart(Ans)<5)+.01randInt(-(fPart(Ans)>.09),fPart(Ans)<.13L1(P
Output(8,iPart(Ans),"
Output(8,100fPart(Ans),"
P
+1-4(P=4P
getKey
Output(5,iPart(B),"
Output(5,100fPart(B),"
B+.01((Ans=15 and
fPart(B)<.16)-(Ans=14 and fPart(B)>.01))+(Ans=12 and iPart(B)<16)-(Ans=11 and 1<iPart(BB
S
+1S
End
Output(8,1,"SCORE:
Output(8,7,Ans
If Ans>H
Then
SH
Output(7,4,"NEW HIGH!
End
Output(5,iPart(B),"*
Output(5,100fPart(B),"*
Pause
ClrHome

Optimized by opTI-Basic
Image

Image
Post Reply