RPL (programming language): Difference between revisions

Content deleted Content added
CE
CE
Line 27:
RPL is a [[structured programming]] language based on RPN, but equally capable of processing [[infix notation|algebraic]] expressions and formulae, implemented as a [[threaded code|threaded interpreter]].<ref name="RPL3"/> RPL has many similarities to [[Forth (programming language)|Forth]], both languages being [[stack-oriented programming language|stack]]-based, as well as the list-based [[LISP]]. Contrary to previous HP RPN calculators, which had a fixed [[4-level RPN|four-level stack]], the [[dynamic RPN stack|dynamic stack]] used by RPL is only limited by available [[random-access memory|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.<ref name="Wessman_2016"/>
 
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]].<ref name="RPLMAN"/> The first calculator utilizing it internally was the HP-18C and the first calculator making it available to users was the HP-28C, both from 1986.<ref name="Wickes_1987"/><ref name="RPLMAN"/> The last pocket calculator supporting RPL, the HP 50g, was discontinued in 2015.<ref name="Kuperus_2015_1"/><ref name="Kuperus_2015_2"/><ref name="Wessman_2015"/> However,<!-- an [[Mobile app|app]] is available for [[Android (operating system)|Android]], go49gp[https://play.google.com/store/apps/details?id=o2s.emul.hp49gp&hl=en_US], which emulates the HP 49g+/50g and will run RPL programs. --> 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. There are also a number of community projects to recreate and extend RPL on newer calculators, like [[newRPL]] or [[DB48X]].
 
==Variants==
Line 181:
<ref name="RPL3">{{cite web |title=What is RPL? |author-first=Joseph K. |author-last=Horn |url=http://www.hpcalc.org/hp48/docs/programming/rpl3.txt |access-date=2017-09-17 |url-status=live |archive-url=https://web.archive.org/web/20170917221524/http://www.hpcalc.org/hp48/docs/programming/rpl3.txt |archive-date=2017-09-17}}</ref>
<ref name="RPLMAN">{{cite web |title=RPLMan from Goodies Disk 4 |author=Hewlett-Packard |author-link=Hewlett-Packard |format=RPLMAN.ZIP |url=http://www.hpcalc.org/details.php?id=1743<!-- http://www.hpcalc.org/hp48/docs/programming/rplman.zip--> |access-date=2015-09-12}}</ref>
*<ref name="Wickes_1987">{{cite journal |title=The HP-28C: An Insider's Perspective |author-first=William C. |author-last=Wickes |journal=HPX Exchange |volume=1 |number=1 |date=January–February 1987 |pages= |url=}} [https://web.archive.org/web/20231006184209/https://www.hpmuseum.org/forum/thread-1140.html]</ref>
<ref name="Wickes_1991">{{cite web |title=RPL stands for Reverse Polish Lisp |author-first=William C. |author-last=Wickes |publisher=www.hpcalc.org |date=1991-03-11 |url=http://www.hpcalc.org/hp48/docs/programming/rpl.txt |access-date=2015-09-12 |quote=RPL stands for Reverse Polish Lisp. In the early days of RPL development, we got tired of calling the unnamed system "the new system", and one of the development team came up with "RPL", both as a play on "RPN" which has been the loved/hated hallmark of HP calcs forever, and as an accurate indication of the derivation of the language from [[Forth (programming language)|Forth]] and [[Lisp (programming language)|Lisp]].<br />RPL was never particularly intended to be a public term; at the time of the [[HP Journal]] article (August 1987) on the [[HP-28 series|HP 28C]] there was an attempt to create a less whimsical name--hence "ROM-based procedural language", which preserved the initials but had a more dignified sound. The development team never calls it anything but (the initials) RPL. You can choose either of the two full-word versions that you prefer. Or how about "Rich People's Language?" Bill Wickes, HP Corvallis.}}</ref>
<ref name="Kuperus_2015_1">{{cite web |title=HP 50g: End of an era |author-first=Klaas |author-last=Kuperus |publisher=Moravia |date=2015-03-04 |url=http://forum.hp-prime.de/discussion/787/hp-50g-end-of-an-era |url-status=dead |archive-url=https://web.archive.org/web/20150402112232/http://forum.hp-prime.de/discussion/787/hp-50g-end-of-an-era |archive-date=2015-04-02}}</ref>
Line 195 ⟶ 196:
* {{cite book |title=Programming in System RPL |author-first1=Eduardo de Mattos |author-last1=Kalinowski |author-first2=Carsten |author-last2=Dominik |date=2002-04-24 |edition=2 |orig-date=1998-07-12 |url=http://isa.umh.es/calc/progsysrpl.pdf |access-date=2016-08-16 |url-status=live |archive-url=https://web.archive.org/web/20160114100225/http://isa.umh.es/calc/progsysrpl.pdf |archive-date=2016-01-14}} (Older version: [http://www.hpcalc.org/details.php?id=1758<!-- 2000-03-29 -->])
* {{cite book |title=An Introduction to HP&nbsp;48 System RPL and Assembly Language Programming |author-first=James |author-last=Donnelly |editor-first=Eric |editor-last=Rechlin |date=2009-03-01 |url=http://www.hpcalc.org/details.php?id=7114 |access-date=2015-09-07}}
* {{cite journal |title=The HP-28C: An Insider's Perspective |author-first=William C. |author-last=Wickes |journal=HPX Exchange |volume=1 |number=1 |date=January–February 1987 |pages= |url=}} [https://web.archive.org/web/20231006184209/https://www.hpmuseum.org/forum/thread-1140.html]
 
==External links==