by adrusi · 11y ago · 0 comments
For those not familiar with the calculator, it ships with an OS that provides a shell where the user can input mathematical expressions, as well as a graphing interface. It also provides a program editor where the user can write what are essentially shell scripts for the main interface in TI-BASIC, or run machine code written in hex if the program starts with the AsmPrgm token. It also lets you transfer files from a PC using a usb port on the calculator. You could download and install "Apps" for the calculator. When I was 12-14 I mostly wrote small programs, like Pong and a quadratic factorization utility, in TI-BASIC, and played games that I downloaded in class.
After a while I tired of TI-BASIC because it was slow, and that limited the possibilities. I downloaded Axe, an App that modifies the code in RAM of Kernel's TI-BASIC editor to allow for programs written in a different language, which was basically assembly + a lot of macros and a standard library useful for writing games, or like C without a type system. This code was compiled to machine code on the calculator, and therefore the code ran at a reasonable speed (keep in mind it's still just a 15MHz cpu from the 70s).
With Axe I made some more interesting programs. Unlike with TI-BASIC, where learning the language was easy since the calculators main interface was basically a REPL for the programming language, Axe was hard to learn. I needed to look at external documentation to know what I was dong in Axe, but even though I had a smartphone at this point, I couldn't use it in class, so I printed out the manual to reference it in class. I wrote a bunch of programs in Axe, like a cellular automata simulator, a game of life program, a 4-level grayscale sprite editor (which worked by flickering the pixels of the 1-bit display which had a slow enough response time to create a static gray color if alternated quickly enough). I also learned z80 assembly and used an on-calc assembler and editor called mimas, but editing assembly on-calc was too bothersome with a 64x96 display, so I mostly stuck with Axe.
Eventually I stopped being the nerdy kid who played with his calculator all day, but I had fallen in love with the platform, so even though I wasn't writing code in class, I wrote code for the calculator at home, sometimes on my PC and sometimes on the calculator just because I liked that experience more.
I'll be sad to see these ancient calculators finally phased out of the math curriculum in the US, so that kids no longer get access to that last stronghold of 80s computing. Raspberry Pi is cool, but it's still so much more modern than the calculators, which hurts its coolness factor for me, but more importantly, kids won't have access to it unless their parents want them to get into computing. Soon I see kids only having hardware that seems impenetrably locked down, which is a real shame.
For all of the benefits of the internet, I see this as a tragic side effect. Rather than just trying something and seeing if it works, the first instinct is to Google it to see if anyone else has done something similar. Even if you manage to start on something, eventually you'll be exposed to someone who's done it so much better and more thoroughly than you and get discouraged and give up.
Of course, plenty of innovation still happens and people can find inspiration in superior implementations, but the loss feels similar to the loss of biodiversity, or language diversity resulting from globalization -- that is, isolated populations create vastly different solutions to the same set of problems in ways that aren't possible without those barriers.
I do agree that this does mess with tinkering with the fundamentals and stuff. But here's my thesis: when you work with a technology for a long time, after a while you will naturally be curios about how the lower level stuff is working. I think this is why a lot of application developers still find systems programming exciting. And also why the hacker news audience is also keenly interested in stuff besides the very narrow focus of cs/ee.
It's really both. The trouble is you want e.g. a protocol to secure your communications, and designing one yourself while making it secure is a huge ordeal, whereas you could just use TLS for free even though it's full of warts. So everybody uses TLS. Which then snowballs into everyone using OpenSSL for TLS even though it's ancient and full of cruft.
The problem is you do want everyone using the well-reviewed long-tested thing, but then that thing becomes a decaying designed-by-committee monstrosity which nobody can fix because it would break compatibility. See also HTML, HTTP, DNSSEC, javascript, etc.
The downside of "lazy learning" is you can't know what tools you'll need in the future. I was able to win at one of my favorite work projects because I'd played with signal processing and machine learning for fun.
Had I not, I would've concluded I couldn't beat the terrible solution we had—I wouldn't have had the tools to know better.
And of course, your reinvented wheel might turn out to be an actual improvement!
Of course, I can never know everything. I do both: I learn things as needed to get something done, and I learn things just because they fascinate me and might prove useful later. That latter part—gaining knowledge for the sake of knowledge—has been an amazing benefit, specifically by giving me a better map of what's possible, and how the seemingly impossible might be done.
IOW, I consider lazy learning necessary, because no one can know everything, but not something I'd encourage for its own sake, because sometimes you have to know something before you can know when it'll be useful. I absolutely encourage playing around just to learn more about your craft—you'll learn things that will prove useful later.
Also, TI-BASIC made it so easy to display graphics, just by using the 'output' function or plotting to the graph. I think a huge turn off to beginner programmers is the amount of material you have to learn before you can do simple stuff like that (I remember looking for a "draw pixel" function in Java, only to learn to my dismay that I had to choose a GUI toolkit and create a window first). The ease of using the TI API made it addictive, and it lured me into programming for hours at a time in school.
I'm not too sad to see old calculators go -- I'm just hoping we'll get something like python notebooks on smart phones used in the classroom. Might have some problems with the networking... maybe there's a marked for an android pad that doesn't have any wireless hw?
In Norway those Casio calculators were also approved for use at the college level -- but they were stupidly banned, because you could flash the rom, and store all sorts of useful things on them. Really stupid IMNHO, because if you can solve the (college level/sen. high school level) exam with the help of some utility or other -- or just a large book -- the exam is probably structured very poorly.
There was an initiative to move to "open book exams" -- where you were allowed to basically bring any books/notes you wanted. I think it was great -- the questions were a little harder -- and you still had to know the subject matter or you'd run out of time before completing -- but I think it encouraged better tests than when you could essentially administer a glorified spelling test for any subject.
I also, as you can guess, first got into programming on my trusty TI-83+ when I started high school. Without really knowing the TI-BASIC language and lacking the link cable, I remember some time when I was in the library typing a Mandelbrot set program line for line from the computer, trying to figure out where all those random tokens were located. Once I finally got that working, I was hooked and started making all sort of different programs.
Some of the early programs I remember creating were mostly math programs and algorithms I learned from classes. But very soon I started getting into gaming. I had always wanted to make really cool games, but I always ended up limited by the capabilities of the calculator, and ended up mostly producing puzzle games; Minesweeper, Sudoku, Skyscrapers, etc. I also managed to make a text adventure and an 'AI' chat bot.
I wondered how people were able to make some of the more advanced games and eventually stumbled upon assembly. It took me a really long time to grasp all the concepts and it was very frustrating. Every instruction has a bunch of side effects, you have to remember what every register is holding at every point in time, and you have to memorize all the mnemonics. I was also annoyed that I couldn't program it on the go (Mimas didn't exist at the time) but that certainly didn't stop me! With nothing better to do during that bus ride to and from school, I actually printed out all the op-codes, ram locations, bcalls, ascii tables, token tables, and would literally type in the hexadecimal into the calculator to program! It was insane and really dangerous, constantly deleting the memory every time I typed a wrong character or forgot about the endianess. I eventually just gave up on that and stuck with programming assembly games on the computer in my free time.
By the time I learned enough assembly to produce my first full game, a PacMan clone, it was around the end of high school and it was then that I decided that I really wanted to make it easier for people like myself to be able to make actually good games on the go. It wasn't until a year later that I started creating Axe Parser for that purpose. Although I didn't have any formal experience with compilers, languages, or other relevant theory I started anyway, just doing what I figured would work best. It actually managed to succeed and after only a month of work, I was able to program a full game in about an hour! It was exactly what I wished had existed when I was in school, and it's super exciting to see there are students out there now that actually have this power and are making awesome stuff! Its even more thrilling when it influences people to get into coding more seriously. Warms my heart every time I see things like this :)
As for me now, I haven't touched z80 programming for a few years now. I'm working at an amazing start-up where I get to combine programming and mathematics to do some really interesting things.
Good job!
I have heard of games (like Doom) on the TI calculators, that also had sound effects. The program was sending pulses to the linkport, and the user needed a 3.5 mm to 2.5 mm adapter to connect a headphone plug into it, but then you got sound.
The problem there of course is that you're dealing with a 1MHz CPU, and 64K memory, and for real-time sampling you need to make tradeoffs between sacrificing sample rate for cycles to somewhat compress the data vs. running out of RAM in seconds.
For playback, it's equally primitive: With some settings, flipping the volume to max and down creates a sufficient click that doing that for 1, and keeping it off for 0 gives you recognisable sampled music output.
It's really quite amazing how low bitrate you can get to and still have recognisable music.
If you do pre-processing you can get quite tolerable, substantially longer samples (if you do lots of pre-processing you can end up with this: https://www.youtube.com/watch?v=D6MSbdUMFZ4 )
He was a really talented programmer but eventually became really weird and drove everybody away, so I have no idea what he's doing now.
We had the TI-85 in our year. I wrote a chat program which used the link cable. With an "enhanced and extended" link cable, it was possible to chat with a classmate sitting several meters away. Teachers knew nothing, as it was a calculator and just a calculator for them.
1998 - chat on a handheld device without data or SMS costs :)
It was the time I first learned https://en.wikipedia.org/wiki/Tetris_effect is a thing. :D
One of my favorite things about it was that it had an internal speaker. You could specify the frequency and duration of notes. I was in concert band at the time and was into "The Planets" suite by Holst. I ended up writing two programs that played the main tracks for Jupiter. I had another friend who had the calculator so I gave him one part and retained one for myself. We started both programs at the same time and listened to beautiful tinny classical music.
It was stupid easy to output sound on that thing. Like someone else mentioned it was also very easy to output to the screen. I know applications are much more complicated than they were back then but I do feel bad for kids that they might not have a sandbox environment to try to push the boundaries for their knowledge. This kind of stuff got me hooked on coding.
Frustrated the teachers to no end as well, I'd never do my homework but get A's on all of my tests/quizzes. I guess I was too busy learning the material to cheat, instead of doing the homework...
I eventually got caught when I started giving the programs to popular kids so they would include me in stuff, luckily I had written a failsafe that deleted the cheats, but left some games I had (even at 14 I knew how confusing false positives can be). I got in trouble for playing games, the popular kids got in trouble for cheating. I wasn't included in much for a while after that...
I got hooked on programming by the HP65, an early and very expensive programmable calculator (with magnetic data storage!) that a family friend let me play with for an afternoon. Eventually I got my own Sinclair calculator (36 instruction memory!) and programmed it obsessively. If that thing ran at 1MHz I'd be very, very surprised.
Incidentally, around 1983-85 there was a brief explosion of electronic typewriters with small (usually 2-4-line) LCD displays and oversized calculators with qwerty keyboards, a decent amount of memory (16 kB say), and some form of BASIC. They looked interesting, but I don't think I know anyone who bought one (and my friends and I were all programming geeks).
In the mid-80s I did have access to several models of those pocket Japanese computers that ran BASIC, including the CASIO FX-750P. I was definitely a loner in this regard. I just got lucky -- my father was in Japan doing film work and probably spent his entire paycheck several times at the electronics malls. He bought these because he wanted to write software to help camera operators with setting up their shots, anywhere in the world.
http://casio.ledudu.com/images/pockets/casio%5Cboites/zoom/f...
I had dabbled in Apple IIs at school but this was my go-to machine at home. I could not do very much with a 1-line LED display but I wrote some simple games and animations.
Every kid learning engineering would benefit from working an old-school piece of equipment, even if simulated.