Rust-made RPN-calc for DM42

This is where developers can exchange ideas and ask questions relevant to the DM42 firmware.

Please note that Swiss Micros staff are unable to provide answers here as a general rule. This is intended as a community-driven forum.
Post Reply
Vitasam

Rust-made RPN-calc for DM42

Post by Vitasam »

Hi,
there is an interesting project made with Rust - an RPN-calculator, could be compiled for DM42 hardware:
Large RPN stack. The RPN stack is not limited to a fixed number of registers.
Accurate decimal floating point. Uses 128-bit decimal floating point with 34 digits of decimal precision.
Exact rationals with large integers. Integers and rational numbers are kept in an exact rational representation. Results can be displayed as exact fractions when possible, and the implementation never guesses the closest fraction.
Unit conversions. Supports conversions between common units. Utilizes the rational representation for unit conversions so that converting between them leads to no loss of precision.
RPN stack undo. Operations performed on the RPN stack can be undone with a deep undo buffer.
Works on dedicated calculator hardware. Designed to run on the excellent DM42 from Swiss Micros. This project has been optimized for highly efficient LCD rendering and memory usage to create a very responsive interface. This project is not an emulation and iterative improvement of the HP42 design like the default firmware, but is rather a ground-up modern redesign targeting the DM42 hardware.
Vitasam

Re: Rust-made RPN-calc for DM42

Post by Vitasam »

I was able to build this project under Linux PC (with some Russt dependency fix), the GTK app looks quite interesting:
Attachments
rscalc.png
rscalc.png (78.12 KiB) Viewed 1990 times
Post Reply