|
Latest Headlines
Online Users
There are a total of 26 users online: 3 members, 18 guests and 5 bots. Members: IRC, qazz42, shmibs. Bots: Googlebot (1), Yahoo! Slurp (2), Baidu (1), Spinn3r (1).
RSS Feeds
![[RSS]](/forum/templates/Cemetech6/images/rss.png) News Headlines
![[RSS]](/forum/templates/Cemetech6/images/rss.png) Latest Posts
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
Kllrnohj

PH34R |\/|3

Joined: 24 May 2005 Posts: 7169
|
Posted: 01 Dec 2009 08:44:54 pm Post subject: |
|
|
| calc84maniac wrote: | | That, and TI almost never writes optimized code. |
Not necessarily. Remember, most people are trying to force/trick TI-BASIC into doing things it really wasn't designed for. It wasn't built for games and the like, after all. Keep in mind that all TI-BASIC numbers are floating point (and 9-ish bytes at that, iirc), and fp math is *slllooooowwww*. Not to mention you are working with a CPU that doesn't even handle basic things like multiplication, which only complicates the matter.
That said, I wouldn't exactly call TI's code highly optimized either, but do keep in mind what their goals and requirements for their code are. _________________ There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup) |
|
| Back to top |
|
|
DJ Omnimaga

Power User

Joined: 18 Mar 2005 Posts: 494 Location: Quebec (Canada)
|
Posted: 02 Dec 2009 03:15:13 am Post subject: |
|
|
Altough the TI-83 Plus manual (at least, the one from 1999-2002) states to use GetKey in stuff like video games. So maybe they still somewhat had calculator games in mind when they created TI-BASIC for most calculators _________________
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 32347 Location: Earth, Sol, Milky Way
|
Posted: 02 Dec 2009 11:51:55 am Post subject: |
|
|
| xlibman wrote: | | Altough the TI-83 Plus manual (at least, the one from 1999-2002) states to use GetKey in stuff like video games. So maybe they still somewhat had calculator games in mind when they created TI-BASIC for most calculators | Kevin is absolutely right, here's the quote from the guidebook:
| Code: | getKey
getKey returns a number corresponding to the last key pressed,
according to the key code diagram below. If no key has been pressed,
getKey returns 0. Use getKey inside loops to transfer control, for
example, when creating video games. |
_________________
 |
|
| Back to top |
|
|
Kllrnohj

PH34R |\/|3

Joined: 24 May 2005 Posts: 7169
|
Posted: 02 Dec 2009 08:27:51 pm Post subject: |
|
|
| xlibman wrote: | | Altough the TI-83 Plus manual (at least, the one from 1999-2002) states to use GetKey in stuff like video games. So maybe they still somewhat had calculator games in mind when they created TI-BASIC for most calculators |
There is, however, a difference between what the language was *designed* to do and what it *can* do. There is also a huge difference between what it is good at and what it isn't. I'm quite positive that TI-BASIC wasn't built for video games. It may have been in the back of their minds, sort of like an engineering throwing it on there because they could, but it wasn't the focus. _________________ There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup)
Last edited by Kllrnohj on 02 Dec 2009 11:52:40 pm; edited 1 time in total |
|
| Back to top |
|
|
Ultimate Dev'r

RIP DIO

Joined: 16 Mar 2005 Posts: 7024
|
Posted: 02 Dec 2009 11:28:48 pm Post subject: |
|
|
| Kllrnohj wrote: | | engineering throwing it on their |
lulz _________________
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 32347 Location: Earth, Sol, Milky Way
|
Posted: 02 Dec 2009 11:44:10 pm Post subject: |
|
|
| Kllrnohj wrote: | | xlibman wrote: | | Altough the TI-83 Plus manual (at least, the one from 1999-2002) states to use GetKey in stuff like video games. So maybe they still somewhat had calculator games in mind when they created TI-BASIC for most calculators |
There is, however, a difference between what the language was *designed* to do and what it *can* do. There is also a huge difference between what it is good at and what it isn't. I'm quite positive that TI-BASIC wasn't built for video games. It may have been in the back of their minds, sort of like an engineering throwing it on their because they could, but it wasn't the focus. | Absolutely, and that's why we have to come up with such awkward (or in Weregoose's case, elegant) hacks to get around the language's shortcomings. And Ultimate Dev'r, Kllrnohj did indeed make a classic internet blunder. _________________
 |
|
| Back to top |
|
|
Kllrnohj

PH34R |\/|3

Joined: 24 May 2005 Posts: 7169
|
Posted: 02 Dec 2009 11:53:31 pm Post subject: |
|
|
| Ultimate Dev'r wrote: | | Kllrnohj wrote: | | engineering throwing it on their |
lulz |
Yeah...
Hey, it was a long day and I had some booze before I posted that, can you blame me? _________________ There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup) |
|
| Back to top |
|
|
Ultimate Dev'r

RIP DIO

Joined: 16 Mar 2005 Posts: 7024
|
Posted: 03 Dec 2009 12:43:00 am Post subject: |
|
|
| Kllrnohj wrote: | | Ultimate Dev'r wrote: | | Kllrnohj wrote: | | engineering throwing it on their |
lulz |
Yeah...
Hey, it was a long day and I had some booze before I posted that, can you blame me? |
yes, yes I can AND I HAVE *affirmative smirk* _________________
 |
|
| Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2010 Cemetech & Kerm Martian :: Page Execution Time: 0.148165 seconds.
|