runtime

The period while a program is actually running, as opposed to when it is written, compiled or built; also the software that runs it.

In more detail

Some errors are caught before running, such as a syntax error or a type mismatch, while others appear only at runtime, when the faulty line executes. Some decisions are made at runtime from current conditions, such as configuration from the environment or the user switching theme, instead of being fixed at build time. The word also names the software that runs code, such as a language runtime or Node.js.

Examples

Runtime configuration enters at deployment, not in the image.
In CSS: custom properties resolve at runtime in the browser, so they can change after the page loads, while preprocessor variables are fixed at build time.
In the browser: Some decisions can only be made at runtime, because they depend on the data, device or user present at that moment. Things fixed earlier, when code is compiled or built, are said to happen at build time.
Java: "the runtime" means the JRE, the JVM plus the class library.
Python type hints change nothing at runtime.
React error boundaries handle errors that happen at run time while rendering.

Related terms

Taught in

References

Certification courses