翻訳と辞書 |
thunk /thuhnk/ 1. "A piece of coding which provides an address", according to P. Z. Ingerman, who invented thunks in 1961 as a way of binding {actual parameters} to their formal definitions in ALGOL 60 procedure calls. If a procedure is called with an expression in the place of a {formal parameter}, the compiler generates a thunk which computes the expression and leaves the address of the result in some standard location. 2. The term was later generalised to mean an expression, frozen together with its environment (variable values), for later evaluation if and when needed (similar to a "closure"). The process of unfreezing these thunks is called "forcing". 3. A stubroutine, in an {overlay} programming environment, that loads and jumps to the correct overlay. Compare trampoline. There are a couple of onomatopoeic myths circulating about the origin of this term. The most common is that it is the sound made by data hitting the stack; another holds that
スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース |
Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.
|
|