January 31, 2008 at 9:19 pm
I just finished writing a calculator for Mobile Safari. Yup, I wrote a calculator. Why? Well, I wasn't happy with the calculator on the iPhone, and I wasn't happy with any of the other calculator web apps, so I made my own.
If you can get over the fact that this is one of the most boring kinds of apps that exist, it's actually kind of cool. This calculator lets you enter expressions like (3+6)*2 directly, and store the results of calculations in variables (anything from A-Z) for later reuse. It also comes with a decent compliment of functions (sqrt, abs, round, floor, ceil, sin, cos, tan, acos, asin, atan, torad, todeg, log, and ln) that you can place freely in expressions.
Finally, yes, this is all written in Javascript. I wrote a parser and expression tree-walker in Javascript. That's, like, two-thirds of a compiler in pure Javascript.
I need to get a life.
The project that I showed a teaser of a few days ago is going crazy fast. It took just a day to get the entire graphics pipeline written, and I spent today optimizing the graphics pipeline and implementing keyboard support and loading from disk. Next is audio, though, and things will almost certainly slow down drastically for that. I really should stop talking about it, 'cause it's a ways off from release (nothing 'till after the iPhone SDK, most likely).
February 1, 2008 at 4:26 am
What, no graphing? :D