thunk 音标拼音: [θ'ʌnk]
替换程序
替换程式
thunk n 1 :
a dull hollow sound ; "
the basketball made a thunk as it hit the rim "
/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 the sound
is that of the data hitting an {accumulator }. Yet another
suggests that it is the sound of the expression being unfrozen
at argument -evaluation time . In fact , according to the
inventors , it was coined after they realised (in the wee hours
after hours of discussion ) that the type of an argument in
{ALGOL 60 } could be figured out in advance with a little
{compile -time } thought , simplifying the evaluation machinery .
In other words , it had "already been thought of "; thus it was
christened a "thunk ", which is "the past tense of "think " at
two in the morning ".
4 . ({Microsoft Windows } programming ) {universal thunk },
{generic thunk }, {flat thunk }.
[{Jargon File }]
(1997 -10 -11 )
安装中文字典英文字典查询工具!
中文字典英文字典工具:
复制到剪贴板
英文字典中文字典相关资料:
verbs - Proper usage of the word thunk - English Language Usage . . . What is the proper usage of the word thunk? According to Merriam-Webster, it is dialect past and past participle of think Can it be used in a formal context? Is "Who would have thunk?" different
Testing dispatched actions in Redux thunk with Jest Testing dispatched actions in Redux thunk with Jest Asked 7 years, 10 months ago Modified 2 years, 10 months ago Viewed 100k times
How to use Redux-Thunk with Redux Toolkits createSlice? You'd still use an async middleware (typically redux-thunk), fetch data, and dispatch actions with the results As of Redux Toolkit 1 3, we do have a helper method called createAsyncThunk that generates the action creators and does request lifecycle action dispatching for you, but it's still the same standard process
What is the difference between Redux Thunk and Redux Saga? Both Redux Thunk and Redux Saga are middleware of Redux What is the difference between two and how to determine when to use Redux Thunk or Redux Saga?
What is dispatch(. . ). unwrap() in redux-toolkit? - Stack Overflow dispatch(addNewPost({ title, content, user: userId })) will resolve to the latest action that has been dispatched by that thunk With unwrap(), it will resolve to the value of the fulfilled action, or throw on a rejected action