Skip to content

Commit 50bcd36

Browse files
varkormark-i-m
authored andcommitted
Add "intern" to the glossary
1 parent ee661e8 commit 50bcd36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/appendix/glossary.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ ICE | internal compiler error. When the compiler crashes.
3333
ICH | incremental compilation hash. ICHs are used as fingerprints for things such as HIR and crate metadata, to check if changes have been made. This is useful in incremental compilation to see if part of a crate has changed and should be recompiled.
3434
inference variable | when doing type or region inference, an "inference variable" is a kind of special type/region that represents what you are trying to infer. Think of X in algebra. For example, if we are trying to infer the type of a variable in a program, we create an inference variable to represent that unknown type.
3535
infcx | the inference context (see `librustc/infer`)
36+
intern | interning refers to storing certain frequently-used constant data, such as strings, and then referring to the data by an identifier (e.g. a `Symbol`) rather than the data itself, to reduce memory usage.
3637
IR | Intermediate Representation. A general term in compilers. During compilation, the code is transformed from raw source (ASCII text) to various IRs. In Rust, these are primarily HIR, MIR, and LLVM IR. Each IR is well-suited for some set of computations. For example, MIR is well-suited for the borrow checker, and LLVM IR is well-suited for codegen because LLVM accepts it.
3738
IRLO | `IRLO` or `irlo` is sometimes used as an abbreviation for [internals.rust-lang.org](https://internals.rust-lang.org).
3839
item | a kind of "definition" in the language, such as a static, const, use statement, module, struct, etc. Concretely, this corresponds to the `Item` type.

0 commit comments

Comments
 (0)