.. _sphx_glr_api_gallery_vm_foundations:
Foundations of stack machines
-----------------------------
Reverse Polish notation, the halting problem and busy beavers, hardware
stacks, structured control flow, and Forth.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/vm/foundations/images/thumb/sphx_glr_plot_01_reverse_polish_thumb.png
:alt:
:doc:`/api/gallery/vm/foundations/plot_01_reverse_polish`
.. raw:: html
Reverse Polish notation: the stack's natural order (Łukasiewicz 1924, Hamblin 1957)
.. raw:: html
.. only:: html
.. image:: /api/gallery/vm/foundations/images/thumb/sphx_glr_plot_02_halting_problem_thumb.png
:alt:
:doc:`/api/gallery/vm/foundations/plot_02_halting_problem`
.. raw:: html
The halting problem: why every call needs a budget (Turing 1936)
.. raw:: html
.. only:: html
.. image:: /api/gallery/vm/foundations/images/thumb/sphx_glr_plot_03_hardware_stack_thumb.png
:alt:
:doc:`/api/gallery/vm/foundations/plot_03_hardware_stack`
.. raw:: html
Stack hardware: a bounded stack (Burroughs B5000, Barton 1961)
.. raw:: html
.. only:: html
.. image:: /api/gallery/vm/foundations/images/thumb/sphx_glr_plot_04_busy_beaver_thumb.png
:alt:
:doc:`/api/gallery/vm/foundations/plot_04_busy_beaver`
.. raw:: html
The busy beaver: the longest a small machine can run (Radó 1962)
.. raw:: html
.. only:: html
.. image:: /api/gallery/vm/foundations/images/thumb/sphx_glr_plot_05_structured_programming_thumb.png
:alt:
:doc:`/api/gallery/vm/foundations/plot_05_structured_programming`
.. raw:: html
Structured programming: sequence, selection, iteration (Böhm and Jacopini 1966)
.. raw:: html
.. only:: html
.. image:: /api/gallery/vm/foundations/images/thumb/sphx_glr_plot_06_forth_thumb.png
:alt:
:doc:`/api/gallery/vm/foundations/plot_06_forth`
.. raw:: html
Forth: programming with stack words (Moore 1970)
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/vm/foundations/plot_01_reverse_polish
/api/gallery/vm/foundations/plot_02_halting_problem
/api/gallery/vm/foundations/plot_03_hardware_stack
/api/gallery/vm/foundations/plot_04_busy_beaver
/api/gallery/vm/foundations/plot_05_structured_programming
/api/gallery/vm/foundations/plot_06_forth