Evaluation
The process by which a programming language determines the value and effects of an expression or other executable construct.
Modern C, Third Edition
An evaluation is the execution of a C expression or other construct to determine its value and associated effects.
- How it is used
- Frames program behavior as changes to abstract state and provides ordering tools for reasoning about concurrent execution.
- How deep it goes
- Defines effects and relates evaluations through sequencing, synchronization, and atomic modification order without detailing hardware execution.
- Examples
- Uses `(void)0`, atomic increments and assignments, and a two-thread modification-order diagram.
- What you can do after
- Evaluate effects and reason about correctness or performance using sequencing, synchronization, and atomic modification order.
Type-Driven Development with Idris
The process of computing the value of an expression by executing its semantics.
- How it is used
- Separates pure computation from runtime interaction and lets type checking compare expressions after reduction.
- How deep it goes
- Works through type-level reductions and explains where pattern matching cannot proceed with an unknown argument.
- Examples
- Compares Vect 4 with Vect (2 + 2), and contrasts 1 + k with k + 1.
- What you can do after
- Understand how Idris reduces type expressions and when an equality proof is needed to reconcile their forms.
Read how Type-Driven Development with Idris explains evaluation →
Also covered in
- How Computers Make Books
- 100 C++ Mistakes and How to Avoid Them
- Building User-Friendly DSLs
- Modern C
What to know first
- programming languageA programming language is a formal language with defined syntax and semantics for expressing computations and instructions that a computer can execute, interpret, or translate.
Related concepts
- code executioncontrasts with · Code execution is the process by which a computing system runs program instructions to produce results or effects.
- side effectproduces · A side effect is an observable change or interaction caused by a computation beyond producing its direct result, such as modifying state or interacting with the external environment.
- totality checkinguses · Totality checking determines whether a program definition is total.
- valueproduces · A value is a quantity, datum, or measure of significance attributed to or represented by an entity, property, expression, or outcome.
Questions about evaluation
What is evaluation?
The process by which a programming language determines the value and effects of an expression or other executable construct.
Which Manning books explain evaluation?
Modern C, Third Edition and Type-Driven Development with Idris.
What should I know before learning evaluation?
Manning books that teach evaluation usually introduce programming language first.
What is the difference between evaluation and code execution?
The process by which a programming language determines the value and effects of an expression or other executable construct. Code execution is the process by which a computing system runs program instructions to produce results or effects.
What kinds of evaluation are there?
Kinds of evaluation include argument evaluation.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

