Author Topic: A new way to use subroutines : why not in an app ?  (Read 9497 times)

0 Members and 1 Guest are viewing this topic.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: A new way to use subroutines : why not in an app ?
« Reply #15 on: October 31, 2012, 06:37:09 pm »
It works fine, as long as you know what you're doing. That means keeping track of what app page is active and making sure you reset the current app page to the correct value before returning. This applies even if you ran the program from the OS, which still has associated fixed app pages. Also, still no multi-page app support.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: A new way to use subroutines : why not in an app ?
« Reply #16 on: November 01, 2012, 03:37:55 am »
I just thought about something stupid. We could make Axe librairies using this Axiom O.O
We could make apps with a lot of useful routines inside (they could be hybrid Axe/ASM for more speed) and then users could code easier. I think that would be great for newbies since they would learn by coding and would not be afraid by the task of making a tilemapper :D
The only problem would be the side. Will anyone really use 16384 bytes of routines and still have some more code ? o.o°
(except if all newbies start as I did and make Pokemon as their first project :P)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: A new way to use subroutines : why not in an app ?
« Reply #17 on: November 01, 2012, 06:30:31 am »
@DJ_O It's fully useable and doesn't contain any bug if you use it correctly ;) Just respect the format I described in the first post for your apps and it'll be ok.

@Hayleia good idea, it's just that newbies will have a hard time with pages :/
« Last Edit: November 01, 2012, 08:41:12 am by Matrefeytontias »

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: A new way to use subroutines : why not in an app ?
« Reply #18 on: November 04, 2012, 07:53:15 am »
What if you made an app with about 300 routines. These could be tilemapping routines, floating-point math routines, Input routines, Menu( routines, different text routines using different fonts, math parsing (so that users could input equations and stuff), arbitrary precision math, matrix and vector support, and all sorts of other goodies. Then, you can make an axiom with three commands:

OpenLib (This basically finds the app and swaps the page in MemBank1 so that routines can be called directly)
ExitLib   (This will put the appropriate page back in MemBank1 and must be called upon exiting the program)
ExecLib  (This will allow you to execute functions in the app)

This could easily fit into one app page and provide the kind of tools that would make it amazing for math. Heck, you could build a CAS if you were motivated enough :P

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: A new way to use subroutines : why not in an app ?
« Reply #19 on: November 04, 2012, 08:06:46 am »
Hm, yeah, I'll change the already existing funcs into these ones. Good idea ;)

But no, I can't build a CAS even if I'm motivated :P

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: A new way to use subroutines : why not in an app ?
« Reply #20 on: November 05, 2012, 09:42:25 am »
Wow I just understood what this axiom makes possible O.O I really could use this. (which is an understatement)
I'm not a nerd but I pretend: