A C Compiler For The HP49g+
Cheese Source writes "As previously mentioned on Slashdot, HP's latest and greatest calculator is the HP49g+. While it sports a very powerful (for a calculator) ARM9 cpu, it is only 3 times the speed of the 49g, running at 4MHz. This is because it has to emulate an older processor. Of course, some calculator geeks are now writing adapting a free, open-source C compiler for it. Based on GCC, you can now make programs that run natively on the CPU between 12 and 203MHz. 1000 factorial is calculated and displayed in the blink of an eye (the built in command takes 30 seconds). It will also allow for some great games."
instead of playing games on your calculators do something productive like troll slashdot!
There is no god
If only my university course didn't enforce non-programmable calculators :(
running at 4MHz. This is because it has to emulate an older processor
So what they're saying is, rather than porting their calculator software to a new platform, they found it easier to write an emulator that pretends to be the old processor? Sounds like a pretty crappy design decision to me.
Also, if customers are writing their own programs with a C compiler to get speed, why not just use something like the Zaurus running Linux, and one of the many, full featured, science/math software suites for Linux?
What kind of moronic algorithm is being used there?
http://www.luschny.de/math/factorial/FastFactoriaCalculators that feature games and compile C programs, sounds to me like another example of bundling lots of unrelated features into the same hardware.
Wonder what kind of key'age you can get on one of these "top of the line" calculators...
Winged Power Photography
GCC has been available for a long time for the 68000 based TI calculators with TIGCC. Is this about a port of GCC that runs on the calculator?
I wonder what they had to change in GCC for this project. ARM chips are fairly well supported already.
I poked around briefly in their CVS repo, but didn't see anything obvious that looked like a set of patches to gcc backend source.
You cannot apply a technological solution to a sociological problem. (Edwards' Law)
Can anyone confirm that this calculator has the trademark keys - the 49 didn't - and I noticed they switched back to plastic. My 48 is dying and I have pretty much decided to get a tungsten T3 running power48 to replace it, but this would be far superior.
..don't panic
Should only be about 3 years before Gentoo finishes compiling. Woohoo!
for those interested in the the 49g+ in all it's gory technical details.
peterrenshaw ~ Another Scrappy Startup
I suspect it was one of the two:
- Simple economics, if it's cheaper to use the faster processor and emulate the other one, it doesn't matter. Recoding for native operation may not have been possible. This is related to my second point:
- All glitches and problems with the existing design are well documented and hammered out. It may not have been feasible as I suspect there is a lot of verification that happens on these guys before they ship. If the calculator has been painstakenly debugged on one processor, it may very well be easier to insure 100% emulation than re-test all the functions.
..don't panic
...some real news for nerds!
DROS - Open-Source Robot Software
Good to see that some programmers are interested in hacking a powerful calculator. They should be able to port great games, despite the rather low screen resolution.
I was already aware of that project, as an user of the TIGCC board (an environment development including heavily patched GCC for TI-68k calculators), which someone else already told about in those comments.
How could you be so short sighted and/or STUPID to not realize that the keys are possibly the best trademark of those old HP calculators? I don't know what the logic was there. I had hoped they brought them back.
:(
My reasoning behind the tungsten emulation was that no keys > crappy keys.
Maybe I'll engineer a little keypad for the Palm for numeric entry you can put side by side, like the old HP business calcs.
..don't panic
as calculators get more and more powerful and capable, the fun things one can do to them increased. I made something for the ti-83+ that replaces every token (eg. "sin(", "1" and "Q") with "codysux," and I'm currently finishing up a self-propagating virus. I'm sure this just opens up many new possibilities for people to mess with the hardware.
Comment removed based on user account deletion
So how long until a NetHack port is complete? Come on, we all know what's important.
I don't want knowledge. I want certainty. - Law, David Bowie
...or when did HP switch away from that?
Now with a C compiler available, how about building an Ethernet interface and porting the Contiki OS to iy? A Contiki port would bring TCP/IP networking, multitasking and a bunch of other cool stuff to the HP. Contiki has already been ported to a lot of weird stuff, like the GBA and the C64, so it would probably work well on the HP.
A long time ago i bought an HP41C (not "V"!) and it was (still is...) a very good, small & rugged machine. No nonsense. Back then HP were making the very best calculators in the world.
Nowadays, a certain Miss has decided to decimate the "Calculators" division of HP and it shows. THe present calculators at HP have the same look and (cheesy) feel as the TI calculators. They are bulky and large, they sport cheesy buttons and it is actually hard to find a model that supports the sooo efficient & fast RPN notation. In short: they suck. I feel like we will never ever again see really well built & designed calculators now. Too bad.
Interestingly enough, the only calculator left in their product line that still has the feeling & quality of true HP calculators is the "Financial" HP12C... It seems Economists have it all... !
Maybe we should petition for Agilent to start designing calculators? One can always dream...
Salve,
;(
I would call convergence when I use my mobile and a SSH connection via GPRS to use my Maple version of my home PC on the road. OK, your right the HP calculators do have a better keyboard and the display shows better plots, but why not use a HP calculator with SSH conection via mobile to the home PC? I would call it "mobile shell" that offeres much more than using maple *g*. There is a free J2ME SSH1 Client:
http://phoenix.inf.upol.cz/~polakr/
BTW: Any chance to get a HP48GX programming manual, today? I borrowed it one guy - but he never brought it back
Someone port Libtomcrypt to it!
It compiles in ARM CPU's already, I believe.
Crypto on your calculator!
My email addy? should be easy enough.
Note that Nickle will quite happily compute 10,000! (exactly) in a fraction of a second on a similar machine, through the miracle of Karatsuba multiplies. It also supports arbitrary-precision rationals and definable-precision floats (default 256b mantissa) with arbitrary exponent, and features a calculator-like interactive mode. I don't use much of anything else for numeric calculations anymore. (Of course, I co-wrote it.)
... think this calculator would, if nothing else be an amazing way to earn geek street cred? I mean, if programming (1 geek point) computer games (2 points) on an overclocked (3 points) calculator (4 points) using an open source (5 points) compiler isn't the pinnacle of all that is geek I don't know what is.
while the post can first be read by the editors with grammatical corrections the flow of the story could hopefully be found.
Seriously, Michael give me your snail mail address and I will send you the MLA guide. We will have you making sentences in NO time.
The only fan mail I ever received was for an "adventure game" I wrote for the HP-41CV.
Guy wrote me a 9 page letter explaining to me how I wrote my own program.
Clear, Dark Skies
Pot, meet kettle. I presume your subject line should be interpreted as "Hello, grammar"?
For true geekiness, you need to be able run a webserver on it.
See my journal, I write things there
A quick check of comp.sys.hp48 will show hundreds of posts complaining about key bounce and other issues.
I'm fairly disappointed with my 49G+, I'm looking forward to this machine, which was designed by some of the old HP48 engineers, I believe.
Clear, Dark Skies
mod up please.
"And we have seen and do testify that the Father sent the Son to be the Savior of the World"
1 John 4:14
Its not the economists, it is the investment bankers and the analysts. Take away their HP12Cs and what would they turn to for the time/money calculations? This is a very good way of committing financial suicide.
See my journal, I write things there
What happens to the battery life when you run the ARM at higher clock?
I hold it, that a little rebellion, now and then, is a good thing. -- Thomas Jefferson
"1000 factorial is calculated and displayed in the blink of an eye (the built in command takes 30 seconds)."
So how big a display has this thing got if it can display 1000! Not sure how big it would be, my guess is somewhere between a googol and a googolplex.
Pot, meet kettle. I presume your subject line should be interpreted as "Hello, grammar"?
:-)
Yes, I should definitely spell a subject like Grammar correctly if I am chastising someones lack of familiarity with it, I could not have done that intentionally.
Yes, we are both black
Could someone please enlighten my poor brain and suggest some practical use for the exact value of 10000!, and why I might require its computation in a fraction of a second? I'm afraid I don't think too good.
The older version of the site showed that it's a clamshell case - the bottom half flips down to reveal a large calculator style keyboard.
:-P
They used to have pics of their prototype spread out over the bench, with all the chips in view and the keys on the keyboard all hand-labelled.
I guess they've gotten funding since then.
Clear, Dark Skies
Why go with ethernet when you could have a SD 802.11b / 256M card? The question is can SDIO cards work on the 49+?
"I hate to advocate drugs, alcohol, violence or insanity but they've always worked for me" - HST
Long time ago I decided to find out what was the most efficient way to keep my TI60 busy. Turned out it needed over three minutes (blank screen) to calculate the number of combinations of 999 elements in groups of 999 (or whatever was the highest number you could enter), the answer of which was 1, by the way...
Z
Comment removed based on user account deletion
if( Command = "1000!" )
print( 4.0238 x 10^2564 )
end
It is highly optimized code, that is why it computes the number so fast.
... but does the fact that talking about a calculator and feeling the need to link to a definition of the concept of a factorial shed a not-so-positive light on the average intelligence of the person reading this article?
I just noticed this calculator is not that cheap. Can someone please explain to me why one would want to buy it instead of a PDA?
thanks.
because I knew hp-gcc existed.
I'm liking this calculator.
I've owned a TI-86 for a few years, so I know a bit about higher-end calcs.
The keyts are nice and firm, with a "pop" type feeling when I push them.
I can switch between RPN and normal entering mode.
The menus are a bit unintuitive.
I even have the IR port on it, plus what looks to be a memory slot.
I like it. My TI is nice, mind you.
But this is much slicker.
And, I can now do some good old C programming with it. ^_^
/b
|f(x)dx = F(b) - F(a)
... is nigh.
See, the only thing that's been preventing the gameboy from being a kickass calculator is the relatively awful control system. However, the upcoming DS has two screens, one of them a touchscreen; you can't get a better small-platform simulation setup than that, IMO, since you can change the key layout per task, and if nessecary trade the keys temporarily for a whole second screen.
It's like a palm pilot calculator, except that it still has a screen while the keys are up, eliminating the most sucking thing about palm pilot calculators.
Seperately, you never need to bother with a connection cable, because it does 802.11, and the screen is quite nice - backlit 256x192 fullcolor with hardware-assisted 3D with antialiasing. The graphing potential of such hardware is massive. You can use sprites for things like cursors and flow analysis.
Oh, right: and the underlying CPU blows the doors off of a 4mHz ARM9. It's got a 66mHz ARM9 *and* a 33mHz arm7. 8 meg of ram for large matrix calculations. The ability to network.
Oh, and games on a gameboy are better than games on any TI.
The end is nigh. HEED MY WARNING. Calculator advocates, repent - unification is at hand, commodity hardware defeats characteristic purpose hardware, generalization is cheaper than specific hardware, the ASIC falls at the sword of the CPU.
Linux boxes for VCRs, Linux boxes for game systems, Linux boxes for kitchen appliances, but when it matters, turn to Nintendo for your calculator.
And in case you were wondering, yes, I'm the gameboy stonecypher, and yes, my calculator, based largely on gnuplot and yacas, is about three quarters done. I may not know shit about math, but my Nintendo sure does.
+1, Insightful to anyone who compares YACAS and whatever other computer algebra systems there are to HP's bujillion calculators I can't be bothered to research.
StoneCypher is Full of BS
Glad you still had the link - it's not visible on HPCalc's main page any more.
Clear, Dark Skies
MANY of you may have never used the hp48gx but this calculator owned all others out on the market (ti 80 or something) it came out a in the early 90s and had way more features. This included an ir port (turn on the tv in class), internal clock, memory card slots, speaker (yes could play midi type music), and built in rom chip with equations and constants. However it was rpn, reverse polish notation, and a steep learning curve for the average guy because the builtin software was slow and clumsy. What made this calculator great was all the engineering programming for it. The functionality on the hp48gx is much greated than even the ti 89. you can do laplace transforms, integrate, change from floating point to fractions, solve equations for variables, and cheat is lots of other ways. that's why it owns it also included a soft zipper case, was well constructed, only used 3 triple a batteries, and good buttons (clicky). I haven't tried the 49 but i hear they hired some of the programmers that worked on the 48 programs to write the stuff for the 49. Sorry to hear they took out the ir port and made the buttoms plasticy, but hopefully the software is good now. =]
See, the only thing that's been preventing the gameboy from being a kickass calculator is the relatively awful control system. However, the upcoming DS has two screens, one of them a touchscreen
From speculation I've read on gbadev.org, the only thing keeping the upcoming Nintendo DS handheld gaming system from being your programmable graphing calculator is the encryption on the cartridge port, making it impossible to get a homebrew program onto the system. In addition, ignorant instructors are more likely to confiscate a Nintendo graphing calculator than a TI or HP graphing calculator.