Grok // is a neologism coined by American writer Robert A. Heinlein for his 1961 science fiction novel Stranger in a Strange Land. While the Oxford English Dictionary summarizes the meaning of grok as "to understand intuitively or by empathy, to establish rapport with" and "to empathize or communicate sympathetically (with); also, to experience enjoyment", Heinlein's concept is far more nuanced, with critic Istvan Csicsery-Ronay Jr. observing that "the book's major theme can be seen as an extended definition of the term." The concept of grok garnered significant critical scrutiny in the years after the book's initial publication. The term and aspects of the underlying concept have become part of communities such as computer science.
Descriptions in Stranger in a Strange Land
Critic David E. Wright Sr. points out that in the 1991 "uncut" edition of Stranger, the word grok "was used first without any explicit definition on page 22" and continued to be used without being explicitly defined until page 253 (emphasis in original). He notes that this first intensional definition is simply "to drink", but that this is only a metaphor "much as English 'I see' often means the same as 'I understand'". Critics have bridged this absence of explicit definition by citing passages from Stranger that illustrate the term. A selection of these passages follows:
Grok means "to understand", of course, but Dr. Mahmoud, who might be termed the leading Terran expert on Martians, explains that it also means, "to drink" and "a hundred other English words, words which we think of as antithetical concepts. 'Grok' means all of these. It means 'fear', it means 'love', it means 'hate' – proper hate, for by the Martian 'map' you cannot hate anything unless you grok it, understand it so thoroughly that you merge with it and it merges with you – then you can hate it. By hating yourself. But this implies that you love it, too, and cherish it and would not have it otherwise. Then you can hate – and (I think) Martian hate is an emotion so black that the nearest human equivalent could only be called mild distaste.
Grok means "identically equal". The human cliché "This hurts me worse than it does you" has a distinctly Martian flavor. The Martian seems to know instinctively what we learned painfully from modern physics, that observer acts with observed through the process of observation. Grok means to understand so thoroughly that the observer becomes a part of the observed – to merge, blend, intermarry, lose identity in group experience. It means almost everything that we mean by religion, philosophy, and science and it means as little to us as color does to a blind man.
The Martian Race had encountered the people of the fifth planet, grokked them completely, and had taken action; asteroid ruins were all that remained, save that the Martians continued to praise and cherish the people they had destroyed.
All that groks is God.
Robert A. Heinlein originally coined the term grok in his 1961 novel Stranger in a Strange Land as a Martian word that could not be defined in Earthling terms, but can be associated with various literal meanings such as "water", "to drink", "life", or "to live", and had a much more profound figurative meaning that is hard for terrestrial culture to understand because of its assumption of a singular reality.
According to the book, drinking water is a central focus on Mars, where it is scarce. Martians use the merging of their bodies with water as a simple example or symbol of how two entities can combine to create a new reality greater than the sum of its parts. The water becomes part of the drinker, and the drinker part of the water. Both grok each other. Things that once had separate realities become entangled in the same experiences, goals, history, and purpose. Within the book, the statement of divine immanence verbalized among the main characters, "thou art God", is logically derived from the concept inherent in the term grok.
Heinlein describes Martian words as "guttural" and "jarring". Martian speech is described as sounding "like a bullfrog fighting a cat". Accordingly, grok is generally pronounced as a guttural gr terminated by a sharp k with very little or no vowel sound (a narrow IPA transcription might be [ɡɹ̩kʰ]). William Tenn suggests Heinlein in creating the word might have been influenced by Tenn's very similar concept of griggo, earlier introduced in Tenn's story "Venus and the Seven Sexes" (published in 1949). In his later afterword to the story, Tenn says Heinlein considered such influence "very possible".
Adoption and modern usage
In computer programmer culture
Uses of the word in the decades after the 1960s are more concentrated in computer culture, such as a 1984 appearance in InfoWorld: "There isn't any software! Only different internal states of hardware. It's all hardware! It's a shame programmers don't grok that better."
The Jargon File, which describes itself as a "Hacker's Dictionary" and has been published under that name three times, puts grok in a programming context:
When you claim to "grok" some knowledge or technique, you are asserting that you have not merely learned it in a detached instrumental way but that it has become part of you, part of your identity. For example, to say that you "know" Lisp is simply to assert that you can code in it if necessary – but to say you "grok" Lisp is to claim that you have deeply entered the world-view and spirit of the language, with the implication that it has transformed your view of programming. Contrast zen, which is a similar supernatural understanding experienced as a single brief flash.
The entry existed in the very earliest forms of the Jargon File, dating from the early 1980s. A typical tech usage from the Linux Bible, 2005 characterizes the Unix software development philosophy as "one that can make your life a lot simpler once you grok the idea".
The book Perl Best Practices defines grok as understanding a portion of computer code in a profound way. It goes on to suggest that to re-grok code is to reload the intricacies of that portion of code into one's memory after some time has passed and all the details of it are no longer remembered. In that sense, to grok means to load everything into memory for immediate use. It is analogous to the way a processor caches memory for short term use, but the only implication by this reference was that it was something a human (or perhaps a Martian) would do.
The book Cyberia covers its use in this subculture extensively:
This is all latter day usage, the original derivation was from an early text processing utility from so long ago that no one remembers but, grok was the output when it understood the file. K&R would remember.
One of the most powerful parsing filters used in ElasticSearch software's logstash component is named grok.
A reference book by Carey Bunks on the use of the GNU Image Manipulation Program is titled Grokking the GIMP
A common tool used for cloud development is a tool called ngrok, which stands for 'network grok.' It is a utility that creates a secure tunnel on a local machine along with a public URL for accessing that local machine. 
- Tom Wolfe, in his book The Electric Kool-Aid Acid Test (1968), describes a character's thoughts during an acid trip: "He looks down, two bare legs, a torso rising up at him and like he is just noticing them for the first time ... he has never seen any of this flesh before, this stranger. He groks over that ..."
- In his counterculture Volkswagen repair manual, How to Keep Your Volkswagen Alive: A Manual of Step-by-Step Procedures for the Compleat Idiot (1969), dropout aerospace engineer John Muir instructs prospective used VW buyers to "grok the car" before buying.
- The word was used numerous times by Robert Anton Wilson in his works The Illuminatus! Trilogy and Schrödinger's Cat Trilogy.
- The long-running science program The Groks Science Radio Show centers on the idea of "grokking" science.
- The word was used numerous times in the American television show Adventure Time.
- The word was used by Tricia Sullivan in the book Dreaming in Smoke: "He sounded so condescending that she wanted to say, yeah, I do; I totally grok it."
- (in German) Anschauung – related "sense-perception" concept in Kantian philosophy
- Appropriation (sociology) – Assimilation of concepts into a governing framework
- Being-in-the-world – a term in the existentialist philosophy of Martin Heidegger, aimed at deconstructing the subject–object distinction
- Introjection vs assimilation in Fritz and Laura Perls' gestalt therapy – analogous to memorizing vs grokking
- Knowledge by acquaintance and knowledge by description – a distinction in philosophy between familiarity with a person, place, or thing and knowledge of facts
- Logos – a term in Western philosophy that has been used to describe various forms of knowledge and reasoning
- Phenomenology (psychology) – the study of subjective experience
- Qi – Vital force in traditional Chinese philosophy
- "grok". Oxford English Dictionary. 1989.
- Csicsery-Ronay Jr., Istvan (2008). The Seven Beauties of Science Fiction. Wesleyan University Press. p. 67. ISBN 978-0-8195-6889-2.
- Wright Sr., David E. (April 2008). "Do Words Have Inherent Meaning?". ETC: A Review of General Semantics. Vol. 65, no. 2. Institute of General Semantics 42578827. pp. 177–190. JSTOR 42578827.
- McGiveron, Rafeeq O. (2001). "From Free Love to the Free-Fire Zone: Heinlein's Mars, 1939–1987". Extrapolation. Vol. 42, no. 2. Kent State UP.
- Singer, Joseph William (November 1984). "The Player and the Cards: Nihilism and Legal Theory". The Yale Law Journal. Vol. 94, no. 1. pp. 1–70.
- Berger, Albert I. (March 1988). "Theories of History and Social Order in "Astounding Science Fiction"". Science Fiction Studies. 15 (1): 12–35.
- "curl groks URLs". cURL. Retrieved 9 September 2013.
- Ryan Gallagher; Glenn Greenwald (12 March 2014). "How the NSA Plans to Infect 'Millions' of Computers with Malware". The Intercept. Retrieved 23 May 2016.
- Tom Wolfe (1968). The Electric Kool-Aid Acid Test. p. 96.
- John Muir; Tosh Gregg (1971). How to Keep Your Volkswagen Alive. John Muir Publications. p. 16. ISBN 978-0-912528-33-5.
- Sullivan, Tricia (2018). Dreaming in Smoke. Great Britain: Gollancz. p. 59. ISBN 9781473224742.
- "Grok". The Jargon File (version 4.4.7). Retrieved 9 September 2013.
- SF citations for grok gathered for the Oxford English Dictionary by Jesse Sheidlower
- Lee, Charles (February 2002). "Grok and the Vanguard of Science". Groks Science Radio Show and Podcast. Retrieved 2 August 2022.
- "grok". Merriam-Webster Dictionary. Merriam-Webster, Incorporated. Retrieved 2 August 2022.
- "grok". The Free Dictionary. Farlex, Incorporated. Retrieved 2 August 2022.
- WikiQuote on Stranger in a Strange Land includes many uses of grok