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.[1][2]
^
Eric Raymond rejects "a couple of onomatopoeic myths circulating about the origin of this term" and cites the inventors of the thunk recalling that the term "was coined after they realized (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 [...] 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'. See: Raymond, Eric S. (1996). Raymond, Eric S. (ed.). The New Hacker's Dictionary. MIT Press. p. 445. ISBN 9780262680929. Retrieved 2015-05-25.
^See Ingerman (1961): "The translator knows what kind of thunk to create by considering the formation of the actual parameter and the previously scanned declarations.… [W]hen a procedure declaration is being compiled, the translator, again by observing syntax, knows what kind of address to expect from a thunk."
Look up thunk in Wiktionary, the free dictionary. In computer programming, a thunk is a subroutine used to inject a calculation into another subroutine...
and the father of Eep, Thunk, and Sandy. Emma Stone as Eep Crood, a teenage cavegirl who is Grug's and Ugga's first daughter, Thunk and Sandy's older sister...
the nephew of Adam Yates (John Cusack) in Hot Tub Time Machine. He voiced Thunk in the 2013 animated film, The Croods. In 2010, he had a cameo in a Kid...
and Eleven (1993). Midway through the recording of Eleven's third album, Thunk (1995), Irons departed to drum with Pearl Jam, and Matt Cameron of Soundgarden...
2022. Retrieved April 26, 2022. "Thieving 'Grinch' as a Musical? Who'da Thunk It?". Los Angeles Times. November 24, 1998. Archived from the original on...
atomics, queries for launch parameters, on-device kernel launch, etc. The thunk is responsible for all the thinking and queuing that goes into the stack...
"All Together". They followed this with regular releases Eleven in 1993, Thunk! in 1995, Avantgardedog in 2000, and Howling Book in 2003. Johannes was...
Teardown 1.1 2022 Tuxedo Labs Tuxedo Labs As of March 2023 Balatro 1 2024 LocalThunk Playstack As of March 2024. Brotato 1 2023 Blobfish Blobfish As of March...
pairs her with an oddball student named Lerk while Grug tries to homeschool Thunk to make him a hunter. 3a 3a "Wet Hot Ahhh! Valley Summer" Stephanie Arnett...
runtime limitations). They are called thunking and shimming. The WOW subsystem of the operating system thunks legacy 16-bit APIs to their newer 32-bit...
Gloria is taught golf from Mitchell in order to connect with Jay. 157 13 "Thunk in the Trunk" Phil Traill Elaine Ko February 17, 2016 (2016-02-17) 7ARG12...
as Ugga, Pat, Clip, Pup Howler Stephanie Lemelin as Eep A.J. LoCascio as Thunk, Baitsy, Steve Grey Griffin as Sandy, Lerk Laraine Newman as Gran, One-Eyed...
drumming contributions by Cameron include four tracks on Eleven's 1995 album, Thunk, the track "Disappearing One" on former bandmate Chris Cornell's 1999 solo...
the song is "a fun novelty". Larry Flick from Billboard wrote, "Who'da thunk this Beatles evergreen would become viable fodder for a reggae reconstruction...
that takes place during this automatic degauss is the cause of an audible "thunk", a loud hum or some clicking noises, which can be heard (and felt) when...