Author Topic: Features Wishlist  (Read 699062 times)

0 Members and 1 Guest are viewing this topic.

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Features Wishlist
« Reply #1725 on: December 28, 2010, 11:47:48 pm »
@Quigbo -- Perhaps you could use the 'OpenLib' and 'ExecLib' as tokens?

@Everybody else -- I've heard of the 'continue' from my brief forays into Python, but I'm not entirely certain what that could be used for.  Explanation please?
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Features Wishlist
« Reply #1726 on: December 29, 2010, 12:08:26 pm »
But OpenLib and ExecLib are 84+ only tokens....


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

SirCmpwn

  • Guest
Re: Features Wishlist
« Reply #1727 on: December 29, 2010, 01:01:55 pm »
Continue skips the rest of the loop and starts another iteration.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #1728 on: December 29, 2010, 01:24:26 pm »
That would be pretty easy to implement methinks, its just a jump to the start of the loop again.

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: Features Wishlist
« Reply #1729 on: December 29, 2010, 02:18:03 pm »
For the goto-if and goto-!if I think I will auto-optimize the existing commands instead of creating entirely new syntax.  It would actually be easier I think to read and write and no one would have to change their syntax.  Same thing with sub().
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Features Wishlist
« Reply #1730 on: December 29, 2010, 02:33:58 pm »
Multi-Line comments...
Probably someone already suggested this feature, but this thread is 114 pages long :S
I haven't seen requests for multi-line comments yet, actually.
Hmm...
Quoted from page 1 of the Axe Parser topic:
Comments!!!  Yay!  That's great.  Can you have comment blocks?  (Like ' ' to ' ' mabey?)
So, yeah, this has been requested before, in Axe 0.0.1 (when ' was a comment). :P  I'm glad that we can finally have them. :)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #1731 on: December 31, 2010, 01:54:09 am »
Lol way back when Axe was a baby ^^ And those auto optimizations sound actually pretty neat :D

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: Features Wishlist
« Reply #1732 on: December 31, 2010, 10:38:59 am »
For the goto-if and goto-!if I think I will auto-optimize the existing commands instead of creating entirely new syntax.  It would actually be easier I think to read and write and no one would have to change their syntax.  Same thing with sub().

So
Code: (Axe) [Select]
:If CONDITION
:Goto LBL
:End
will get optimized? That would work, and some programs would suddenly drop in size, too :D Could Axe do the same with Return?




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: Features Wishlist
« Reply #1733 on: December 31, 2010, 05:19:50 pm »
Return already has a ReturnIf and Return!If version.  But I guess I could still optimize it anyway in case someone forgets.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #1734 on: December 31, 2010, 05:20:38 pm »
Speaking of optimizing control structures, any chance for Do...While loops?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Features Wishlist
« Reply #1735 on: December 31, 2010, 05:22:09 pm »
Speaking of optimizing control structures, any chance for Do...While loops?

I'd like Switch cases more than Do...While loops, but I don't really know how the second works.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Features Wishlist
« Reply #1736 on: December 31, 2010, 05:28:04 pm »
Speaking of optimizing control structures, any chance for Do...While loops?

isn't a Do While loop equivalent to a Repeat loop? except that repeat is until the condition is true rather than while it's true..
« Last Edit: December 31, 2010, 05:28:29 pm by nemo »


Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #1737 on: December 31, 2010, 05:34:04 pm »
Speaking of optimizing control structures, any chance for Do...While loops?

I'd like Switch cases more than Do...While loops, but I don't really know how the second works.


Do...While loops are a lot like While...End loops, except that the check to advance to another iteration of the loop is at the end instead of the beginning. This turns out to be more optimized. Whereas a While...End loop has two jumps, one to exit the loop if the condition is false and one to jump back to the beginning, a Do...While combines the two into one jump that jumps back to the beginning if the condition is true.

I don't know how good that explanation was, but perhaps this pseudocode will help clarify it. Numbers in brackets indicate the number of bytes the real code takes:

While...End loop                                                                          Do...While loop                                                                              
Code: [Select]
;While
[x] Loop condition
[2] Check if loop condition is true or false
[3] Exit the loop if false

;Loop contents

;End
[3] Jump back to the beginning of the loop


       
Code: [Select]
;Do
;[0] Start of the loop, takes no actual code



;Loop contents

;While
[x] Loop condition
[2] Check if loop condition is true or false
[3] Jump back to the beginning of the loop if true
« Last Edit: December 31, 2010, 05:39:54 pm by Runer112 »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #1738 on: January 04, 2011, 01:49:53 am »
I've been thinking about this, and how much slower would clipped lines be?

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: Features Wishlist
« Reply #1739 on: January 04, 2011, 02:11:10 am »
@Runner, I was thinking of having "While 1" and "Repeat 0" to auto optimize to no code at all so that would take care of the Do part.  The end condition might work if I add new "EndIf" and "End!If" instructions (which only work on while/repeat loops).  It would be pretty cool too because it would mean you can have pre-check and post-check for the same loop!  Something I haven't seen yet in other languages...

@Builderboy: Very difficult.  The new algorithm has no knowledge of X and Y while drawing the line so it doesn't know when its going off-screen.  If I let it keep drawing, it continues writing to more of the screen ram causing a loop around effect and a possible crash if it goes too far off screen past the end of the L6 buffer.  Likely the next version will just draw nothing if you go off-screen as that would give a size and speed optimization and is more likely what you would want in that case.
___Axe_Parser___
Today the calculator, tomorrow the world!