Author Topic: Features Wishlist  (Read 703073 times)

0 Members and 3 Guests are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Features Wishlist
« Reply #705 on: June 12, 2010, 02:51:58 pm »
Good sir, I don't believe all of those commands in above program work.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #706 on: June 12, 2010, 03:25:07 pm »
I didn't look at the program, but those commands listed above have a problem that might annoy some: not all numbers are generated with equal frequency. (Actually, they are if high-low+1 is an integer power of 2, but that isn't often the case)
Why? Let's use 4-bit random numbers, and generate a number between 0 and 2, with something like rand^3 (the Axe is rand^16^3, but whatever)
0: 0, 1: 1, 2: 2, 3: 0,
4: 1, 5: 2, 6: 0, 7: 1,
8: 2, 9: 0, A: 1, B: 2,
C: 0, D: 1, E: 2, F: 0
chances: 0: 6/16, 1: 5/16, 2: 5/16
Note that the maximum effect is at most one more occurrence, though that might be important to you. (If it isn't then the code others gave will work)
Besides trying multiple times (like an optimized version of what DJ had at first), I'm not sure of a way to keep it even... So I hope it isn't too big a bother (it is only slight) Anyone know of a good way to even the probabilities?
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Features Wishlist
« Reply #707 on: June 12, 2010, 03:30:06 pm »
Well, for 16-bit, you would have:
chances: 0: 21846/65536, 1: 21845/65536, 2: 21845/65536.

There is not enough of a difference to matter, and there isn't really a way to do it better (except by increasing the number of bits, and even then it wouldn't be perfect), because the processor is working in binary.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #708 on: June 12, 2010, 03:32:49 pm »
Yeah, it shouldn't bother anybody, but just in case :P
Actually, now that I think about it, there really isn't a "perfect" way to do it with a binary computer... Silly me...
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #709 on: June 12, 2010, 03:51:01 pm »
Good sir, I don't believe all of those commands in above program work.

See:

It might be nice if somebody made a converter (even if just a BASIC program) where you select the starting and ending range for your randomizing then converts it to Axe format, because I find rand kinda hard to work with, since it uses such high values. A converter (that produces the appropriate needed code) would help a lot

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 #710 on: June 12, 2010, 11:29:36 pm »
mhmm thanks for that converter program This is what I mean earlier ^^


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 #711 on: June 13, 2010, 01:25:53 pm »
By the way, are horizontal and vertical lines a feature that will come out in the next version or upcoming ones?

http://ourl.ca/4161/94886

I wonder what syntax it would use

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 #712 on: June 13, 2010, 02:55:20 pm »
Lol being that Horizontal and Vertical have already been taken.... Seems we have run into a predicament :P

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 #713 on: June 13, 2010, 02:59:52 pm »
Yeah. Also In the future I assume he'll use Line()r for drawing lines on the backbuffer.

Maybe he could make the parser detect when X coordinates and/or Y coordinates are always identical (for example Line(A,15,A,85)) during parsing), or use Hline( or Vline (H and V being alpha letters of course)

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 #714 on: June 13, 2010, 03:02:52 pm »
Yeah both of those would be great i think.  Although im not sure how well the HLine() VLine() would work in his current parser, it might be completely token based right now, and hard to change o.O

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #715 on: June 13, 2010, 03:40:27 pm »
Why couldn't Horizontal and Vertical have multiple uses? With a '+' or a '-', they'd rotate scroll the screen (as they currently do). If they have a number/variable/expression after them, they draw the corresponding horizontal/vertical line. Or, as you said, would that not be possible in a token-based system?
Edit: They scroll the screen, not rotate it. My bad.
« Last Edit: June 14, 2010, 01:54:46 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

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 #716 on: June 13, 2010, 11:00:58 pm »
Mhmm actually they don't rotate the screen, they scroll it. We could do Horizontal (X1,X2,Y) and Vertical (X,Y1,Y2). My only worry is that it could eventually get confusing if a token is used for multiple purposes.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #717 on: June 14, 2010, 01:54:01 pm »
Oops, yeah, I meant scroll... I'll edit that.
True, overloading a token with multiple commands can and will make things more difficult if overdone. A little wouldn't though, right? :P
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

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 #718 on: June 14, 2010, 02:02:47 pm »
Nope, but let's not overload them, else it will get confusing for sure. As for now, none of the commands are used for multiple things, I think. There is getkey but both usages are for similar purposes. THis is why I thought using Line( with a slightly different syntax might be best
« Last Edit: June 14, 2010, 02:03:15 pm by DJ Omnimaga »

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 #719 on: June 14, 2010, 05:44:38 pm »
I think that all lines should use the same syntax, but Quigibo would detect in the the parser which routine is best to use and put that in the program. :D