RPL (programming language): Difference between revisions

Content deleted Content added
improved refs
refs
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. {{anchor|newRPL|DB48X}}There are also a number of community projects to recreate and extend RPL on newer calculators, like [[newRPL]]<ref name="Lapilli_2014_1"/><ref name="Lapilli_2021"/> or [[DB48X]],<ref name="deDinechin_2022"/><ref name="deDinechin_2023"/> which may add features or improve performance.<ref name="Lapilli_2014Lapilli_2014_2"/>
 
==Variants==
Line 188:
<ref name="Wessman_2016">{{cite web |title=What to do with stack overflow OBJ->/LIST->? |author-first=Timothy "Tim" James |author-last=Wessman |date=2016-06-21 |orig-date=2016-06-20 |work=MoHPC - The Museum of HP Calculators |url=https://www.hpmuseum.org/forum/printthread.php?tid=6436 |access-date=2023-09-24 |url-status=live |archive-url=https://web.archive.org/web/20230924101041/https://www.hpmuseum.org/forum/printthread.php?tid=6436 |archive-date=2023-09-24}}</ref>
<ref name="deDinechin_2022">{{cite web |title=DB48X on DM42 - RPL runtime for the DM42 calculator, in the spirit of HP48/49/50 |author-first=Christophe |author-last=de Dinechin |author-link=Christophe de Dinechin |work=DB48X |date=2022 |url=https://github.com/c3d/DB48X-on-DM42 |access-date=2023-10-23 |url-status=live |archive-url=https://web.archive.org/web/20231103035417/https://github.com/c3d/DB48X-on-DM42 |archive-date=2023-11-03}}</ref>
*<ref {{anchor|DB48X}}name="deDinechin_2023">{{cite web |title=Reviving Reverse Polish Lisp - Building an open-source HP48-like calculator |author-first=Christophe |author-last=de Dinechin |author-link=Christophe de Dinechin |date=2023-02-03<!-- /04 --> |work=[[FOSDEM]] |url=https://archive.fosdem.org/2023/schedule/event/reversepolishlisp/ |access-date=2023-10-03 |url-status=live |archive-url=https://web.archive.org/web/20231003174447/https://archive.fosdem.org/2023/schedule/event/reversepolishlisp/ |archive-date=2023-10-03}} (NB. An improved derivative of RPL called DB48X for the [[SwissMicros]] [[DM42]] and [[DM32]].)</ref>
*<ref {{anchor|newRPL}}name="Lapilli_2014_1">{{cite web |title=newRPL |author-first=Claudio Daniel |author-last=Lapilli |date=2014-01-03 |url=http://hpgcc3.org/projects/newrpl |access-date=2015-09-12}} [https://newrpl.wiki.hpgcc3.org/doku.php?id=start] (an open source RPL derivative for the [[HP 50g]] and [[HP 49g+]], the [[HP 40gs]], [[HP 39gs]] and [[hp 39g+]]<!-- http://www.hpmuseum.org/forum/thread-8290.html --> as well as the [[HP Prime]])</ref>
<ref name="Lapilli_2014Lapilli_2014_2">{{cite web |title=N-Queens on 50g (RPL language) |author-first=Claudio Daniel |author-last=Lapilli |work=MoHPC - The Museum of HP Calculators |date=2014-10-31 |url=https://www.hpmuseum.org/forum/thread-2368-post-20947.html?highlight=newRPL#pid20947 |access-date=2023-10-23 |url-status=live |archive-url=https://web.archive.org/web/20231103034655/https://www.hpmuseum.org/forum/thread-2368-post-20947.html?highlight=newRPL#pid20947 |archive-date=2023-11-03}}</ref>
<ref name="Lapilli_2021">{{cite web |title=newRPL Documentation Project |author-first=Claudio Daniel |author-last=Lapilli |work=newRPL |date=2021-07-23 |orig-date=2014 |url=https://newrpl.wiki.hpgcc3.org/doku.php |access-date=2023-10-23 |url-status=live |archive-url=https://web.archive.org/web/20231103034753/https://newrpl.wiki.hpgcc3.org/doku.php |archive-date=2023-11-03}}</ref>
<ref name="Lapilli_2014">{{cite web |title=N-Queens on 50g (RPL language) |author-first=Claudio Daniel |author-last=Lapilli |work=MoHPC - The Museum of HP Calculators |date=2014-10-31 |url=https://www.hpmuseum.org/forum/thread-2368-post-20947.html?highlight=newRPL#pid20947 |access-date=2023-10-23 |url-status=live |archive-url=https://web.archive.org/web/20231103034655/https://www.hpmuseum.org/forum/thread-2368-post-20947.html?highlight=newRPL#pid20947 |archive-date=2023-11-03}}</ref>
}}
 
Line 205 ⟶ 207:
* {{cite web |title=RPL |author-first=David G. |author-last=Hicks |date=2013 |orig-date=1995 |publisher=The Museum of HP Calculators (MoHPC) |url=http://www.hpmuseum.org/rpl.htm |access-date=2015-09-12 |url-status=live |archive-url=https://web.archive.org/web/20230930193241/https://www.hpmuseum.org/rpl.htm |archive-date=2023-09-30}}
* {{anchor|RPL/2}}{{cite web |title=RPL/2 - a new Reverse Polish Lisp |author-first=Joël |author-last=Bertrand |date=2015 |orig-date=2009 |url=http://www.rpl2.net |access-date=2015-09-12}} (a GPL licensed RPL clone)
* {{anchor|newRPL}}{{cite web |title=newRPL |author-first=Claudio Daniel |author-last=Lapilli |date=2014-01-03 |url=http://hpgcc3.org/projects/newrpl |access-date=2015-09-12}} [https://newrpl.wiki.hpgcc3.org/doku.php?id=start] (an open source RPL derivative for the [[HP 50g]] and [[HP 49g+]], the [[HP 40gs]], [[HP 39gs]] and [[hp 39g+]]<!-- http://www.hpmuseum.org/forum/thread-8290.html --> as well as the [[HP Prime]])
* {{anchor|rpn}}{{cite web |title=rpn - opensource implementation of RPL |author-first=Louis |author-last=Rubet |website=[[GitHub]] |date=2017-07-01 |url=https://github.com/louisrubet/rpn |access-date=2015-09-12}} (Open source implementation of RPL with arbitrary precision)
* {{anchor|MyRPL}}{{cite web |title=MyRPL - Union between HP41 and HP48 languages |author-first=Alvaro Gerardo |author-last=Suárez |date=2018-05-01 |url=https://sim41.webcindario.com |access-date=2018-05-04 |url-status=live |archive-url=https://web.archive.org/web/20231003185922/https://sim41.webcindario.com/ |archive-date=2023-10-03}} (Mixed RPL (HP48) and FOCAL (HP41) language)
* {{anchor|DB48X}}{{cite web |title=Reviving Reverse Polish Lisp - Building an open-source HP48-like calculator |author-first=Christophe |author-last=de Dinechin |author-link=Christophe de Dinechin |date=2023-02-03<!-- /04 --> |work=[[FOSDEM]] |url=https://archive.fosdem.org/2023/schedule/event/reversepolishlisp/ |access-date=2023-10-03 |url-status=live |archive-url=https://web.archive.org/web/20231003174447/https://archive.fosdem.org/2023/schedule/event/reversepolishlisp/ |archive-date=2023-10-03}} (NB. An improved derivative of RPL called DB48X for the [[SwissMicros]] [[DM42]] and [[DM32]].)
 
{{DEFAULTSORT:Rpl (Programming Language)}}