RPL



Designed by: Hewlett-Packard


RPL[3] is a handheld calculator operating system and application programming language used on Hewlett-Packard’s scientific graphing RPN (Reverse Polish Notation) calculators of the HP 28, 48, 49 and 50 series, but it is also usable on non-RPN calculators, such as the 38, 39 and 40 series.

RPL is a structured programming language based on RPN, but equally capable of processing algebraic expressions and formulae, implemented as a threaded interpreter.

RPL has many similarities to Forth, both languages being stack-based, as well as the list-based LISP.

Contrary to previous HP RPN calculators, which had a fixed four-level stack, the dynamic stack used by RPL is only limited by available RAM, with the calculator displaying an error message when running out of memory rather than silently dropping arguments off the stack as in fixed-sized RPN stacks.RPL originated from HP’s Corvallis, Oregon development facility in 1984 as a replacement for the previous practice of implementing the operating systems of calculators in assembly language.

The last pocket calculator supporting RPL, the HP 50g, was discontinued in 2015.

However, multiple emulators that can emulate HP’s RPL calculators exist that run on a range of operating systems, and devices, including iOS and Android smartphones.