• Features Wishlist 5 1
Currently:  

Author Topic: Features Wishlist  (Read 614520 times)

0 Members and 2 Guests are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Features Wishlist
« Reply #105 on: February 11, 2010, 12:53:09 am »
I like that!
I like the multiblock if statements, and then this works good for single statements.
Can't wait for more updates!
/e

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 #106 on: February 11, 2010, 01:04:17 am »
Oh yeah! The Ternary operator! ^^ I remember that from Java and its lots of fun, especialy because its like an if statement that can be used in expressions :D

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 #107 on: February 11, 2010, 04:05:17 pm »
Oh and I'd like some feedback on this: Should I continue to exclusively use multiblock "If" statements?  Or should I do what BASIC does and allow single or multiblock?  The disadvantage is that then you would have to add the token "Then" after every multiblock statement.  The compiled program will be the same either way, but what is more convenient, never needing the "Then", or sometimes not needing the "End"?
I'd keep it how it is now.  I don't like using all the ":Then"s that must be used in Ti Basic.

I've never heard of the Ternary operator.  It looks really cool, though. ;D
Side note: This is my 800th post. =)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #108 on: February 12, 2010, 05:03:16 am »
Btw in TI-BASIC it's

If <Condition>
Then
<code>
Else
<code>
End

not

If <Condition>
<code>
Else
<code>
End

And you can also do

If <Condition>
Then
<code>
End

However I am lost now. I am a bit confused by that feature request, because it contains a lot of terms I never heard before, programming-wise. Are people implying that the ability to use multiple lines of codes inside If blocks will not be possible in Axe or the opposite?

it would suck to have to do like on the TI-81:

If A=1
<first code to run if condition is true>
If A=1
<2nd code to run if condition is true>
If A=1
<3rd code to run if condition is true>
If A=1
<4th code to run if condition is true>

or the opposite, having to do

If A=1
Then
D->B
End

instead of

If A=1
D->B
« Last Edit: February 12, 2010, 05:06:07 am by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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 #109 on: February 12, 2010, 06:18:15 am »
Single line expressions can be executed by using the ternary.  In your example, you could either do it with blocks like this:

If A=1
D->B
End

or, because its a single expression, do this:

A=1?(D->B)

which is more compact than the regular TI basic.  I don't think I will use the "Then" token at all, maybe I'll re-code it do something else in the future.

« Last Edit: February 12, 2010, 06:18:37 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #110 on: February 12, 2010, 09:07:00 am »
aah ok thanks for clarifying.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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 #111 on: February 12, 2010, 04:49:03 pm »
Sounds great!  I'm liking the more that I see of the ternary operator. ;D

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 #112 on: February 13, 2010, 01:36:27 am »
Indeed.   Mmmmm another question, are Boolean expressions going to be evaluated with short circuit evaluation?  For example withe if(A and B) if A is false, the program doesn't event bother to test B, and with if(A or B) if A is true you wouldn't need to evaluate B either.  I know java has this implemented, and was wondering how it is set up now.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Features Wishlist
« Reply #113 on: February 14, 2010, 12:53:14 pm »
Hmm, I was wondering, could Celtic III style program control be added? So like, calling another program, getting a list of programs, creating a program, deleting a program, etc.
Also are you planning in adding string operators? Like sub() inString() and such?
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #114 on: February 14, 2010, 03:00:27 pm »
not sure, I think he only planned most pure-basic commands
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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 #115 on: February 14, 2010, 03:22:01 pm »
Hmm, I was wondering, could Celtic III style program control be added? So like, calling another program, getting a list of programs, creating a program, deleting a program, etc.
Also are you planning in adding string operators? Like sub() inString() and such?

Its too soon to tell.  I'm not sure if I will have commands for program manipulation, but there will definitely be a way to create, save, and load application variables.

String handling is going to be very different since all strings are constant length.  It is very easy to get a substring if it ends at the normal ending, you can just do Disp Str1+A.  For anything else, you can write your own subroutine to copy part of the string to a buffer and then display the buffer instead of the string.  I can probably automate this but I would use a different command instead of sub().  Its still faster than the TI-BASIC sub() command.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Features Wishlist
« Reply #116 on: February 14, 2010, 04:41:06 pm »
ah ok, hmm, interesting... Automated would be nice... Of course that isn't a priority right now.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #117 on: February 14, 2010, 11:36:14 pm »
can strings be used in a way that they can be tilemaps like some people do in TI-BASIC? See Illusiat 13 for an example. Illusiat 13 maps are  128 chars long each, btw, which fills the entire home screen
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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 #118 on: February 15, 2010, 12:22:29 am »
Data is data.  String = Picture = List = Hex.  It also equals executable code, but that part is my job  ;)

You can use strings however you like.  You would probably use decimal numbers or hex code for a tile map, but if its more convenient, then yes you can use a string as well.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #119 on: February 15, 2010, 12:37:32 am »
Ah ok. What I like with strings is if we use ASCII maps (or dual layer like in Serenity/Elmgon, assuming we use Storepic/Recallpic too), is that each map rows are drawn almost instantly. Maybe with Axe, doing so with sprites won't make much of a speed difference anymore, though, since TI's text display routines are slow by nature compared to a third-party sprite routines :P
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)