Debian Codegraph @

rpython/doc/glossary.rst

raw
1 .. _glossary:
2
3 Glossary
4 ========
5
6 .. if you add new entries, keep the alphabetical sorting and formatting!
7
8 .. glossary::
9
10 annotator
11 The component of the :term:`RPython toolchain` that performs a form
12 of :term:`type inference` on the flow graph. See :ref:`annotator`
13 in the documentation.
14
15 backend
16 Code generator that converts an :doc:`rpython` program to a :ref:`target
17 language <try-out-the-translator>` using the :term:`RPython toolchain`.
18
19 compile-time
20 In the context of the :term:`JIT`, compile time is when the JIT is
21 generating machine code "just in time".
22
23 external function
24 Functions that we don't want to implement in Python for various
25 reasons (e.g. they need to make calls into the OS) and whose
26 implementation will be provided by the backend.
27
28 garbage collection framework
29 Code that makes it possible to write :doc:`RPython's garbage collectors <garbage_collection>`
30 in Python itself.
31
32 guard
33 a small test that checks if assumptions the JIT makes during tracing are still true
34
35 JIT
36 :doc:`just in time compiler <jit/index>`.
37
38 llinterpreter
39 Piece of code that is able to interpret flow graphs. This is very
40 useful for testing purposes, especially if you work on the :term:`RPython`
41 Typer.
42
43 lltypesystem
44 A :ref:`C-like type model <low-level-types>` that contains
45 structs and pointers. A :term:`backend` that uses this type system is also
46 called a low-level backend. The C backend uses this
47 typesystem.
48
49 low-level helper
50 A function that the :term:`RTyper` can use a call to as part of implementing
51 some operation in terms of the target :term:`type system`.
52
53 ootypesystem
54 An object oriented type model <oo-type>
55 containing classes and instances. A :term:`backend` that uses this type system
56 is also called a high-level backend. The JVM and CLI backends (now removed)
57 used this typesystem.
58
59 prebuilt constant
60 In :term:`RPython` module globals are considered constants. Moreover,
61 global (i.e. prebuilt) lists and dictionaries are supposed to be
62 immutable ("prebuilt constant" is sometimes abbreviated to "pbc").
63
64 promotion
65 :term:`JIT` terminology. *promotion* is a way of "using" a :term:`run-time`
66 value at :term:`compile-time`, essentially by deferring compilation
67 until the run-time value is known. See if :doc:`the jit docs <jit/index>` help.
68
69 RPython
70 :doc:`rpython`, a limited subset of the Python_ language.
71 The limitations make :term:`type inference` possible.
72 It is also the language that the PyPy interpreter itself is written
73 in.
74
75 RPython toolchain
76 :ref:`annotator`, :doc:`rtyper`, and various :term:`backend`\ s.
77
78 rtyper
79 Based on the type annotations, :doc:`rtyper` turns the flow
80 graph into one that fits the model of the target platform/:term:`backend`
81 using either the :term:`lltypesystem` or the :term:`ootypesystem`.
82
83 run-time
84 In the context of the :term:`JIT`, run time is when the code the JIT has
85 generated is executing.
86
87 specialization
88 A way of controlling how a specific function is handled by the
89 :term:`annotator`. One specialization is to treat calls to a function
90 with different argument types as if they were calls to different
91 functions with identical source.
92
93 transformation
94 Code that modifies flowgraphs to weave in translation aspects
95
96 translation-time
97 In the context of the :term:`JIT`, translation time is when the PyPy
98 source is being analyzed and the JIT itself is being created.
99
100 translator
101 :ref:`Tool <try-out-the-translator>` based on the PyPy interpreter which can translate
102 sufficiently static Python programs into low-level code.
103
104 type system
105 The RTyper can target either the :term:`lltypesystem` or the :term:`ootypesystem`.
106
107 type inference
108 Deduces either partially or fully the type of expressions as
109 described in this `type inference article on Wikipedia`_.
110 The :term:`RPython toolchain`'s flavour of type inference is described
111 in :ref:`annotator` section.
112
113 .. _type inference article on Wikipedia: http://en.wikipedia.org/wiki/Type_inference
114 .. _Python: http://www.python.org