(en.wikipedia.org) Thunk - Wikipedia

ROAM_REFS: https://en.wikipedia.org/wiki/Thunk

In computer programming, a thunk is a subroutine used to inject a calculation into another subroutine. Thunks are primarily used to delay a calculation until its result is needed, or to insert operations at the beginning or end of the other subroutine. They have many other applications in compiler code generation and modular programming.

The term originated as a whimsical irregular form of the verb think. It refers to the original use of thunks in ALGOL 60 compilers, which required special analysis (thought) to determine what type of routine to generate.

Local Graph

org-roam 8d97c9f0-dbd7-479c-aa43-625a81d41f68 (en.wikipedia.org) Continuation-passi... 3ec9ac9a-4d9a-4959-9c56-1c36d154180d (en.wikipedia.org) Thunk - Wikipedia 8d97c9f0-dbd7-479c-aa43-625a81d41f68->3ec9ac9a-4d9a-4959-9c56-1c36d154180d //en.wikipedia.org/wiki/Computer_programming https://en.wikipedia.org/wiki/Computer_programming 3ec9ac9a-4d9a-4959-9c56-1c36d154180d->//en.wikipedia.org/wiki/Computer_programming //en.wikipedia.org/wiki/Subroutine https://en.wikipedia.org/wiki/Subroutine 3ec9ac9a-4d9a-4959-9c56-1c36d154180d->//en.wikipedia.org/wiki/Subroutine //en.wikipedia.org/wiki/Code_generation_(compiler) https://en.wikipedia.org/wiki/Code_generation_(compiler) 3ec9ac9a-4d9a-4959-9c56-1c36d154180d->//en.wikipedia.org/wiki/Code_generation_(compiler) //en.wikipedia.org/wiki/Modular_programming https://en.wikipedia.org/wiki/Modular_programming 3ec9ac9a-4d9a-4959-9c56-1c36d154180d->//en.wikipedia.org/wiki/Modular_programming //en.wikipedia.org/wiki/English_irregular_verbs https://en.wikipedia.org/wiki/English_irregular_verbs 3ec9ac9a-4d9a-4959-9c56-1c36d154180d->//en.wikipedia.org/wiki/English_irregular_verbs //en.wikipedia.org/wiki/ALGOL_60 https://en.wikipedia.org/wiki/ALGOL_60 3ec9ac9a-4d9a-4959-9c56-1c36d154180d->//en.wikipedia.org/wiki/ALGOL_60