Author Topic: Features Wishlist  (Read 704475 times)

0 Members and 3 Guests are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Features Wishlist
« Reply #3360 on: August 07, 2014, 04:01:12 pm »
Varargs-like doesn't exist in Axe ? What about all the text commands ?

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #3361 on: August 07, 2014, 04:05:32 pm »
Varargs-like doesn't exist in Axe ? What about all the text commands ?

Not really varargs. Something like Disp A,B,C is parsed like Disp A : Disp B : Disp C. A proper varargs function collects all arguments and then executes one function, to which all arguments are exposed at once.

Offline Zemmargorp

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +7/-2
  • Either programming or thinking of it.
    • View Profile
Re: Features Wishlist
« Reply #3362 on: August 09, 2014, 12:53:20 pm »
I've finished my Menu( axiom  :thumbsup:
Download it here !



But if any assembly wizards want to provide the majority of a solution, whether it's as hard as I think it is or if it's really simple, I'll happily include it! That is, if I can fit it. :P

It was not so hard, but currently the Axiom only allows to create menus like those in TI-Basic, not like the OS's ones (this will be much harder). Now, it would be great to add this feature in Axe !
I'm french, that's the reason why my English can be a bit approximate.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Features Wishlist
« Reply #3363 on: August 09, 2014, 12:58:05 pm »
Great :D
I am not sure I'll use it in any of my releases, but this could still be very helpful in unfinished projects to have functionnal code faster (and then only have beautiful interfaces).
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 Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #3364 on: August 09, 2014, 01:50:14 pm »
Thanks for helping to demonstrate for me how this stuff works. I'll try to implement those kind of simple menus into native Axe. I haven't been able to think of an easy/elegant way to allow for inclusion of the mode menu style selections or window menu style numerical inputs, so those may be left out.

Offline Zemmargorp

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +7/-2
  • Either programming or thinking of it.
    • View Profile
Re: Features Wishlist
« Reply #3365 on: August 09, 2014, 03:04:34 pm »
Great :D
I am not sure I'll use it in any of my releases, but this could still be very helpful in unfinished projects to have functionnal code faster (and then only have beautiful interfaces).
*Yes ! My very first +1 ! I love you !*
Thanks ! Personally, I think I'll use it in some projects which have a TI-design...
I'm happy to have finished this Axiom ! Finished debugging !
I'm french, that's the reason why my English can be a bit approximate.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #3366 on: August 14, 2014, 02:13:46 am »
This is awesome Zemmargorp, but as a future advice I would recommend avoiding reposting the same message multiple times in different topic, as this could be considered spam. The two other messages (in the axiom thread and your new topic should be enough)

Offline Zemmargorp

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +7/-2
  • Either programming or thinking of it.
    • View Profile
Re: Features Wishlist
« Reply #3367 on: August 14, 2014, 12:48:01 pm »
Thanks for helping to demonstrate for me how this stuff works. I'll try to implement those kind of simple menus into native Axe. I haven't been able to think of an easy/elegant way to allow for inclusion of the mode menu style selections or window menu style numerical inputs, so those may be left out.
I had an idea of syntax to implement it in Axe Parser. But you can decide to implement it like in TI-Basic (I'll give you the source code), and change it later (in Axe 2.0 ?). Additionally, numerical inputs returns floating point numbers... (it might be possible to change the parsing method, but... it would be some work too).


This is awesome Zemmargorp, but as a future advice I would recommend avoiding reposting the same message multiple times in different topic, as this could be considered spam. The two other messages (in the axiom thread and your new topic should be enough)

Thank you ! I know three messages is a lot, but as I posted earlier information about this axiom in this topic, I wanted to write I finished it, in case somebody here saw the other messages and wondered if the project was made or not. But you're right : the way I posted it looks a bit like an ad !
I'm french, that's the reason why my English can be a bit approximate.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Features Wishlist
« Reply #3368 on: August 20, 2014, 05:15:49 am »
Could there be a way to say "ignore the following token" ? That would be especially useful to ignore "newlines".
Here's a case where I'd see that being very useful (consider that the "ignore" is implemented with the ' token).

Code: [Select]
L5'
→°Var2B+2'
→°Var1B+1'
→°Var4B+4'
→°Var3B+3'

This would actually be equivalent to that
Code: [Select]
L5→°Var2B+2→°Var1B+1→°Var4B+4→°Var3B+3

Or to that
Code: [Select]
L5+00→°Var2B
L5+02→°Var1B
L5+03→°Var4B
L5+07→°Var3B

Why would that be useful ? Well here, I declared a 2-byte variable named Var2B, a 1-byte variable named Var1B, etc.
Writing all in one line is ridiculously unreadable.
Writing as in the last code block is more readable, but very annoying if finally you decide to change the order of your variables (for some obscure reason) or their location because you'd have to change all the left members so that the new declaration still fits the variable sizes.
Writing as in the first code block is very convenient because the size of every variable is written on the same line as the varialbe itself so moving the declarations is really easy.
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 Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #3369 on: August 20, 2014, 11:17:12 am »
A token to ignore the next token doesn't sound like a good idea from a language design standpoint. However, an escape sequence token does. But I have one issue with this: what token do I use? Axe has already used up all the viable symbol tokens that I can think of.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Features Wishlist
« Reply #3370 on: August 20, 2014, 12:02:28 pm »
Is the "3" token used ? Or the "n" one ?
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 Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #3371 on: August 20, 2014, 12:11:15 pm »
They're not used, but I can't say I particularly like them as escape tokens because they're not really symbols. Unfortunately, there aren't many other choices, apart from some clever idea to do it some other way.


EDIT: One "clever idea" I thought of was changing the primary method of displaying a new line on the homescreen to Disp n and claiming i for this. Disp i can be kept as allowed syntax for backwards compatibility, but I like the switch overall. n makes much more sense as a newline character, as the letter is used in many other instances to denote a newline. And although it's still a letter and not a symbol, I'm more comfortable making i the escape token, because it's normal meaning is sort of like a modifier. I'm still not overly keen on this idea, though, as it still isn't an actual symbol and would muddy things up a bit if a future version of Axe called for complex numbers, which isn't that unfathomable if floats were added.
« Last Edit: August 20, 2014, 12:24:39 pm by Runer112 »

Offline Zemmargorp

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +7/-2
  • Either programming or thinking of it.
    • View Profile
Re: Features Wishlist
« Reply #3372 on: August 20, 2014, 01:02:20 pm »

EDIT: One "clever idea" I thought of was changing the primary method of displaying a new line on the homescreen to Disp n and claiming i for this.
Why not, but the i token is easier to reach than the n token, and newlines will be more used than the escape token. Except if you choose that Disp i will always be a valid syntax and won't be deprecated, but this is a bit weird. I thought using n as the escape token was a good idea... Otherwise, it's still possible to find another token like ! which is only used in conditionals, and which could be used (outside conditionals) as the escape token.
I'm french, that's the reason why my English can be a bit approximate.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Features Wishlist
« Reply #3373 on: August 20, 2014, 01:12:36 pm »
Well I never use Disp so I never use i, so I don't really care if it is renamed n :P
Plus the fact you said n is more logical for a newline.

I also like Zemmargorp's idea about the "!", which not only lets Disp untouched but also lets you an open door for your complexes :)
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 Zemmargorp

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +7/-2
  • Either programming or thinking of it.
    • View Profile
Re: Features Wishlist
« Reply #3374 on: August 20, 2014, 01:30:54 pm »
Well I never use Disp so I never use i, so I don't really care if it is renamed n :P
Plus the fact you said n is more logical for a newline.

I also like Zemmargorp's idea about the "!", which not only lets Disp untouched but also lets you an open door for your complexes :)

You never use Disp ?  :o

Yes, n is more logical for a newline, but would i be more logical for a token not to be interpreted by the parser ? And people are used to i to insert a new line, to introduce a new line, to *lack of ideas*...  ;D

Using ! as the escape token would also let a new token free : n. We don't really care about the complex numbers yet, as we don't even have access to reals, and when they will be included (if they will be one day) there will probably be major syntax/token changes.
I'm french, that's the reason why my English can be a bit approximate.