? Objective SB ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Objective SB

Submitted
Updated
Author
DFrost
Public Key
XK7EEW3E
Min. Compat.
All
Version
1.2
Size
9340 bytes
Rating
0 votes
Description This project is full of everything you need to manipulate and create objects.for an object with a length of 1000 it takes <700 microseconds to get any element from any index and parse it(in the case that I tested it, it was random). so what this does to achieve this speed is literally sort the object, and use binary search. I still need to develop this further before I release. (tested on N3DS) The good thing about this is worst case is log(length) and best case the same. The higher the length, the more effective it is. If you multiply the length by ten, the amount of iterations goes up by one Instructions it's a library. Execute EXAMPLE and look at the code. I have documented on almost every line. also, update OUT!

Things in NEW update

  1. Speed Optimizations, nearly instant at 0 - 1 ms to find an element, thanks to 12Me21 for binary search because I am a moron that can't make a good algorithm. Still can be optimized by removing unnecessary lines. 16200 calls/sec on N3DS and on a 1000 element list
  2. new command ADD adds to the object. Automatically sorts array for convenience and speed later on. This is the slowest because of the sort.
  3. added functionality to objects.✓
  4. added references to variables✓
  5. added object literal function✓
  6. added array literal function(string & number arrays)✓

things to add:

  1. more speed optimizations
  2. command named "_" so you can do this: ?_("this.x") 'instead of this: ?field(this,"x")
When you create functions for objects, they are named the class. The command FUNC is used for executing/creating these.
Notes a very fast object library with object literal and array literal functions. It's hilarious the new 1.2 version is SO SMALL but 16x faster lol 1.1 was 17257 bytes, but 1.2 is only 9340 bytes and has more features.
Categories
Keywords
  • object
  • oriented
  • Objective-SB
6 Comment(s) MasterR3C0RD MasterR3C0RD Helper Received for being very helpful around SmileBASIC Source Achievements Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself PRINT FEILD(...)'20 >mispelling "FIELD" Very nice MZ952 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies A nanosecond is one billionth of a second. A millisecond is one thousandth of a second. atm959 atm959 Avatar Taboo I didn't change my avatar for 180 days Website Second Year My account is over 2 years old Website Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Neat! DFrost DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength this is already halfway done! just need 3 hours of development. DFrost DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength oof i can't spell Y_ack Y_ack feild -> field