SlideShare uma empresa Scribd logo
1 de 4
Baixar para ler offline
TheCProgrammingLanguage
BrianWKernighan&DennisMRitchie&HPLovecraft
4.10Recursion
C functions may be used recursively; that is, a function may call itself either directly
or indirectly. Uninquiring souls may take this as just another peculiarity of those C
folk, of whose ways their neighbours speak little to outsiders but much among
themselves.
Keener news-followers, however, wondered at the events of the winter of 1927-28, the
abnormally large number of calls placed upon the stack, the swiftness with which that
list was sorted, the disturbing lack of heap allocation throughout the proceedings, and
the secrecy surrounding the affair.
People in the nearby towns had talked about C for nearly a century, and nothing new
could be wilder or more hideous than what they had whispered and hinted years
before. Many things had taught them secrecy, and there was now no need to exert
pressure on them.
But at last I am going to defy the ban on speech about this thing. It was I who fled
frantically out of C Recursion in the early morning hours of July 16, 1927, and whose
frightened appeals for action brought on the whole reported episode.
I never heard of C Recursion till the day before I saw it for the first and– so far– last
time. They told me the steam train was the thing to take to Arkham; and it was only at
the station ticket-office, when I demurred at the high fare, that I learned about C
Recursion. The shrewd-faced agent, whose speech shewed him to be no local man,
made a suggestion that none of my other informants had offered.
"You could take that old bus, I suppose," he said with a certain hesitation. "It runs
through C Recursion, so the people don't like it. I never seen more'n two or three
people on it– nobody but them C folks."
At length the ancient bus pulled away with a jerk, and rattled noisily down State
Street and away from the town. The day was warm and sunny, but the landscape of
sand and stunted arrays became more desolate as we progressed. We met no one on
the road, but presently began to pass deserted farms in varying stages of ruin. Then I
noticed a few inhabited structs with rags stuffed in the broken windows and shells and
dead fish lying about the littered yards. At last we drew up by a dingy, decrepit
compiler whose cracked and yellowing sign proclaimed it to be GCC.
Wandering about the town that evening, I struck a region of utter desertion which
somehow made me shudder. Before I reached Main Street I heard a faint and wheezy
"Hey Mister!" behind me, and it must have been some imp of the perverse– or some
sardonic pull from dark, hidden forces– that made me allow the old man to catch up,
taking copious pulls from the quart bottle.
I began putting out feelers as we turned southward amidst the omnipresent desolation
and crazily tilted ruins, but found that the aged tongue did not loosen as quickly as I
had expected. At length I guided my companion down the lane and picked out spots
to sit in among the mossy stones. The air of death and desertion was ghoulish, and the
smell of fish almost insufferable; but I was resolved to let nothing deter me.
About four hours remained if I were to catch the coach for Arkham, and I began to
dole out more liquor to the ancient tippler; meanwhile eating my own frugal lunch.
Just as I feared my quart of whiskey would not be enough to produce results, the
wheezing ancient's ramblings took a turn that caused me to lean forward and listen
alertly. Something had caused his gaze to light on the low, distant line of Devil's Reef,
and he bent toward me and took hold of my coat lapel.
"Thar's whar it all begun– that cursed place of all wickedness whar the deep water
starts. Old Cap'n Obed Marsh an' twenty odd other folks used to row aout to Devil
Reef in the dead o' night and chant things so loud you could hear 'em all over taown
when the wind was right."
"Back in those days most folks in this taown were printing numbers as character
strings. You gets the digits backwards, so's the low-order digits come before the high-
order 'uns; but you got to print 'em out the other way raound."
"Now, there's two ways to do that. The old-timers'd take the digits and stow 'em in an
array, then print 'em right smart in reverse order. But Cap'n Marsh, see, he'd been
dealing with queer folks in the South Sea islands, and they taught him some peculiar
ways. Out there on Devil Reef, he built a funct'n that called itself to print any leading
digits, then printed out the trailing digit at the end."
"Matt Elliot, Obed's fust mate, he allus was agin' it, but he saw it with his own eyes
how that funct'n used to call itself up like a serpent eatin' its own tail–
void Cthulhu
(int Ia) {
if (Ia/10)
Cthulhu (IA/10);
putchar // ftagn!
(Ia % 10 + '0');
} // neblod zin!
"Twistin' and writhing like nothing of this Earth, it'd spit out those strings without no
heap allocation in sight. It warn't natural, any fool could see that much. Matt tried to
line up folks on his side, an' had long talks with the preachers– no use– they ran the
Congregational parson out of town, and the Methodist feller quit– I was a mighty
little critter but I heerd what I heerd an' seen what I seen–"
He stopped again, and from the look in his watery blue eyes I feared he was close to a
stupor after all. But when I gently shook his shoulder he turned on me with
astonishing alertness.
"I ain't sayin' Obed was set on hevin' things just like they was on that South Sea isle. I
dun't think he aimed at fust to raise no youguns to take to the water an' turn into fishes
with eternal life. He wanted them concise codin' idioms, an' was willin' to pay heavy,
an' I guess the Others was satisfied fer a while..."
The old man was growing restless, and the mad frenzy of his voice disturbed me more
than I care to own.
"Curse ye, dun't set thar a-starin' at me with them eyes– yew want to know what the
reel horror is, hey? Wal, it's this– it ain't what them fish devils hez done, but what
they're a-goin' to do! Them haouses betwixt Water an' Main Streets is full of 'em–
them devils and what they brung– an' when they git ready... EH–AHHHH–AH!
E'YAAHHHH..."
The hideous suddenness of the old man's shriek almost made me bluescreen. His
eyes, looking past me to the malodorous sea, were positively starting from his head. I
turned to look but there was nothing I could see. Only the incoming tide, with
perhaps one set of ripples more local than the line of breakers. But now he was
shaking me, his voice a trembling whisper.
"Git aout o' here! they seen us– git aout fer your life! Dun't wait fer nothin'–they know
now– Run fer it– quick– aout o' this taown–"
Before I could recover my scattered wits he had dashed wildly inland, reeling
northward around the ruined warehouse wall. I glanced back at the sea, but there was
nothing there. And when I reached Water Street and looked along it, there was no
remaining trace of the old man.
I am not even yet willing to say whether what followed was a hideous actuality or
only a nightmare hallucination. Who can be sure of reality after hearing things like
that old man's tale? But I must try to tell you what I thought I saw that night under the
mocking yellow moon. It was the end, for whatever remains to me of life on the
surface of this Earth, of every vestige of mental peace and confidence in the integrity
of Nature. Can it be possible that this planet has actually spawned such things?
I had heard tales of the... thing that C.A.R. Hoare had summoned up in '62– dark
hints of choosing one element from an array, and partitioning the rest into lesser and
greater sets, and hellishly recursing until the data were twisted into a sorted list– but
nothing I could have imagined would be in any way comparable to the daemoniac,
blasphemous reality that I saw.
And yet I saw them in a limitless stream– flopping, hopping, croaking, bleating–
sorting themselves inhumanly through the spectral moonlight in a grotesque,
malignant saraband of fantastic nightmare. Their croaking, baying voices called out in
the hideous language of the Old Ones:
void Rlyeh
(int mene[], int wgah, int nagl) {
int Ia, fhtagn;
if (wgah>=nagl) return;
swap (mene,wgah,(wgah+nagl)/2);
fhtagn = wgah;
for (Ia=wgah+1; Ia<=nagl; Ia++)
if (mene[Ia]<mene[wgah])
swap (mene,++fhtagn,Ia);
swap (mene,wgah,fhtagn);
Rlyeh (mene,wgah,fhtagn-1);
Rlyeh (mene,fhtagn+1,nagl);
} // PH'NGLUI MGLW'NAFH CTHULHU!
Recursion may provide no salvation of storage, nor of human souls; somewhere, a
stack of the values being processed must be maintained. But recursive code is more
compact, perhaps more easily understood– and more evil and hideous than the darkest
nightmares the human brain can endure.
Exercise 4-12. Adapt the ideas of Cthulhu() to write a recursive version of the
Forbidden Song of Hali; that is, to unravel the fibres of reality and allow the icy liquid
darkness of Carcosa to devour your mind.
Exercise 4-13. Write a function reverse(s) which reverses the string s by turning the
mind inside out, converting madness into reality and opening the door to allow the
Old Ones to creep forth once more from their sunken crypt beyond time.

Mais conteúdo relacionado

Mais procurados

The rime of the ancient mariner
The rime of the ancient marinerThe rime of the ancient mariner
The rime of the ancient marineriibreakingdawn
 
The rime of the ancient mariner class 10
The rime of the ancient mariner class 10The rime of the ancient mariner class 10
The rime of the ancient mariner class 10mrinal dwivedi
 
The Cask of Amontillado (Full Story)
The Cask of Amontillado (Full Story)The Cask of Amontillado (Full Story)
The Cask of Amontillado (Full Story)Chelbert Yuto
 
Olivier - Hoen - dude
Olivier - Hoen - dudeOlivier - Hoen - dude
Olivier - Hoen - dudeOlivier Hoen
 
The Cask of Amontillado
The Cask of AmontilladoThe Cask of Amontillado
The Cask of Amontilladoanthony_morgan
 
The rime of the ancient mariner class 10
The rime of the ancient mariner class 10 The rime of the ancient mariner class 10
The rime of the ancient mariner class 10 rahulcool12345
 
Short stories by_edgar_allen_poe
Short stories by_edgar_allen_poeShort stories by_edgar_allen_poe
Short stories by_edgar_allen_poeATI Salsabil
 
What I Eternally Desired
What I Eternally DesiredWhat I Eternally Desired
What I Eternally DesiredNikhil Parekh
 
English ppt rime of mariner [autosaved]
English ppt rime of mariner [autosaved]English ppt rime of mariner [autosaved]
English ppt rime of mariner [autosaved]Ian Mohammed
 
The Personal Tragedy of Graham Cubitt 1
The Personal Tragedy of Graham Cubitt 1The Personal Tragedy of Graham Cubitt 1
The Personal Tragedy of Graham Cubitt 1Greg Macdonald
 
Famous ballet synopsis
Famous ballet synopsisFamous ballet synopsis
Famous ballet synopsisAshraf Osman
 
The cask of amontillado
The cask of amontilladoThe cask of amontillado
The cask of amontilladoherz827
 
Excerpt from the interesting narrative of the life of olaudah equiano
Excerpt from the interesting narrative of the life of olaudah equianoExcerpt from the interesting narrative of the life of olaudah equiano
Excerpt from the interesting narrative of the life of olaudah equianoaskmrlowe
 
Poetry and art selected by blair mahoney
Poetry and art selected by blair mahoneyPoetry and art selected by blair mahoney
Poetry and art selected by blair mahoneyTania Sheko
 
Poetry and art selected by Blair Mahoney
Poetry and art selected by Blair Mahoney Poetry and art selected by Blair Mahoney
Poetry and art selected by Blair Mahoney Tania Sheko
 
Even After This Earth; Was No Longer Mine
Even After This Earth; Was No Longer MineEven After This Earth; Was No Longer Mine
Even After This Earth; Was No Longer MineNikhil Parekh
 
The Floozie In The Jacuzzi
The Floozie In The JacuzziThe Floozie In The Jacuzzi
The Floozie In The Jacuzzitrudy hayes
 

Mais procurados (19)

The rime of the ancient mariner
The rime of the ancient marinerThe rime of the ancient mariner
The rime of the ancient mariner
 
The rime of the ancient mariner class 10
The rime of the ancient mariner class 10The rime of the ancient mariner class 10
The rime of the ancient mariner class 10
 
The Cask of Amontillado (Full Story)
The Cask of Amontillado (Full Story)The Cask of Amontillado (Full Story)
The Cask of Amontillado (Full Story)
 
Olivier - Hoen - dude
Olivier - Hoen - dudeOlivier - Hoen - dude
Olivier - Hoen - dude
 
The Cask of Amontillado
The Cask of AmontilladoThe Cask of Amontillado
The Cask of Amontillado
 
Come As You Are
Come As You AreCome As You Are
Come As You Are
 
The rime of the ancient mariner class 10
The rime of the ancient mariner class 10 The rime of the ancient mariner class 10
The rime of the ancient mariner class 10
 
Protest Poems #1
Protest Poems #1Protest Poems #1
Protest Poems #1
 
Short stories by_edgar_allen_poe
Short stories by_edgar_allen_poeShort stories by_edgar_allen_poe
Short stories by_edgar_allen_poe
 
What I Eternally Desired
What I Eternally DesiredWhat I Eternally Desired
What I Eternally Desired
 
English ppt rime of mariner [autosaved]
English ppt rime of mariner [autosaved]English ppt rime of mariner [autosaved]
English ppt rime of mariner [autosaved]
 
The Personal Tragedy of Graham Cubitt 1
The Personal Tragedy of Graham Cubitt 1The Personal Tragedy of Graham Cubitt 1
The Personal Tragedy of Graham Cubitt 1
 
Famous ballet synopsis
Famous ballet synopsisFamous ballet synopsis
Famous ballet synopsis
 
The cask of amontillado
The cask of amontilladoThe cask of amontillado
The cask of amontillado
 
Excerpt from the interesting narrative of the life of olaudah equiano
Excerpt from the interesting narrative of the life of olaudah equianoExcerpt from the interesting narrative of the life of olaudah equiano
Excerpt from the interesting narrative of the life of olaudah equiano
 
Poetry and art selected by blair mahoney
Poetry and art selected by blair mahoneyPoetry and art selected by blair mahoney
Poetry and art selected by blair mahoney
 
Poetry and art selected by Blair Mahoney
Poetry and art selected by Blair Mahoney Poetry and art selected by Blair Mahoney
Poetry and art selected by Blair Mahoney
 
Even After This Earth; Was No Longer Mine
Even After This Earth; Was No Longer MineEven After This Earth; Was No Longer Mine
Even After This Earth; Was No Longer Mine
 
The Floozie In The Jacuzzi
The Floozie In The JacuzziThe Floozie In The Jacuzzi
The Floozie In The Jacuzzi
 

Destaque

Destaque (16)

Aml Oracle Data Sheet
Aml Oracle Data SheetAml Oracle Data Sheet
Aml Oracle Data Sheet
 
Gambling Affiliates in the Mobile Market
Gambling Affiliates in the Mobile MarketGambling Affiliates in the Mobile Market
Gambling Affiliates in the Mobile Market
 
Are You Paying Attention?
Are You Paying Attention?Are You Paying Attention?
Are You Paying Attention?
 
Spucmission
SpucmissionSpucmission
Spucmission
 
Costume and props initial thoughts
Costume and props initial thoughtsCostume and props initial thoughts
Costume and props initial thoughts
 
Teatro
TeatroTeatro
Teatro
 
Story bored
Story boredStory bored
Story bored
 
Help Up Help You: Using Focus Groups for Marketing
Help Up Help You: Using Focus Groups for MarketingHelp Up Help You: Using Focus Groups for Marketing
Help Up Help You: Using Focus Groups for Marketing
 
Help guide by Grade-6
Help guide by Grade-6Help guide by Grade-6
Help guide by Grade-6
 
Seo Working
Seo WorkingSeo Working
Seo Working
 
Content Isn't Just King It's Also Queen & Ace
Content Isn't Just King It's Also Queen & AceContent Isn't Just King It's Also Queen & Ace
Content Isn't Just King It's Also Queen & Ace
 
Oceanic adventures to avoid
Oceanic adventures to avoidOceanic adventures to avoid
Oceanic adventures to avoid
 
Images (12)
Images (12)Images (12)
Images (12)
 
Gurunank
GurunankGurunank
Gurunank
 
Success
SuccessSuccess
Success
 
Uma rajan
Uma rajanUma rajan
Uma rajan
 

Semelhante a Chtulhu code program to create paradigms

V+02 Che+ Tampire+ Vestat
V+02 Che+ Tampire+ VestatV+02 Che+ Tampire+ Vestat
V+02 Che+ Tampire+ Vestatcworley0
 
1 TV and movie scripter Harlan Ellison is a small, inten.docx
1 TV and movie scripter Harlan Ellison is a small, inten.docx1 TV and movie scripter Harlan Ellison is a small, inten.docx
1 TV and movie scripter Harlan Ellison is a small, inten.docxdorishigh
 
The strange case of dr. jekyll and mr. hyde
The strange case of dr. jekyll and mr. hydeThe strange case of dr. jekyll and mr. hyde
The strange case of dr. jekyll and mr. hydeChricho Bautista
 
Doctor Who Lungbarrow
Doctor Who   LungbarrowDoctor Who   Lungbarrow
Doctor Who LungbarrowAngel Kayn
 
The Island Of Doctor Moreau by H.G. Wells
The Island Of Doctor Moreau by H.G. WellsThe Island Of Doctor Moreau by H.G. Wells
The Island Of Doctor Moreau by H.G. WellsPicture Blogs
 
A Pair of Blue Eyes by Thomas Hardy
A Pair of Blue Eyes by Thomas HardyA Pair of Blue Eyes by Thomas Hardy
A Pair of Blue Eyes by Thomas HardyGulfam Raza
 
EXCERPTS FROM THE COMING RACEby Edward Bulwer, Lord Lytton  (18.docx
EXCERPTS FROM THE COMING RACEby Edward Bulwer, Lord Lytton  (18.docxEXCERPTS FROM THE COMING RACEby Edward Bulwer, Lord Lytton  (18.docx
EXCERPTS FROM THE COMING RACEby Edward Bulwer, Lord Lytton  (18.docxPOLY33
 
In The Country Of The Blind
In The Country Of The BlindIn The Country Of The Blind
In The Country Of The BlindAbbi
 
Bret Harte and Mark Twain in San Francisco
Bret Harte and Mark Twain in San FranciscoBret Harte and Mark Twain in San Francisco
Bret Harte and Mark Twain in San FranciscoDoctorSequoia
 
The Cask of Amontillado
The Cask of AmontilladoThe Cask of Amontillado
The Cask of AmontilladoTaylor Wilson
 
Opened Ground Selection Seamus Heaney.pdf
Opened Ground Selection Seamus Heaney.pdfOpened Ground Selection Seamus Heaney.pdf
Opened Ground Selection Seamus Heaney.pdfMarcelloTamwing
 
1 P e b La H e T e Ne S ea R e By La
1  P e  b  La  H e  T e Ne  S ea   R e   By La1  P e  b  La  H e  T e Ne  S ea   R e   By La
1 P e b La H e T e Ne S ea R e By LaAbbyWhyte974
 
1 P e b La H e T e Ne S ea R e By La
1  P e  b  La  H e  T e Ne  S ea   R e   By La1  P e  b  La  H e  T e Ne  S ea   R e   By La
1 P e b La H e T e Ne S ea R e By LaMartineMccracken314
 
The cask of amontillado, text and analysis
The cask of amontillado, text and analysisThe cask of amontillado, text and analysis
The cask of amontillado, text and analysisMohammed Raiyah
 
Cues from all quarters.
Cues from all quarters.Cues from all quarters.
Cues from all quarters.GLENN PEASE
 
The wind in_the_willows_-_kenneth_grahame
The wind in_the_willows_-_kenneth_grahameThe wind in_the_willows_-_kenneth_grahame
The wind in_the_willows_-_kenneth_grahameNhuận Ngọc Đỗ
 
Fifteen painted cards from a vampire tarot
Fifteen painted cards from a vampire tarotFifteen painted cards from a vampire tarot
Fifteen painted cards from a vampire tarotNaman Kumar
 

Semelhante a Chtulhu code program to create paradigms (20)

V+02 Che+ Tampire+ Vestat
V+02 Che+ Tampire+ VestatV+02 Che+ Tampire+ Vestat
V+02 Che+ Tampire+ Vestat
 
1 TV and movie scripter Harlan Ellison is a small, inten.docx
1 TV and movie scripter Harlan Ellison is a small, inten.docx1 TV and movie scripter Harlan Ellison is a small, inten.docx
1 TV and movie scripter Harlan Ellison is a small, inten.docx
 
The strange case of dr. jekyll and mr. hyde
The strange case of dr. jekyll and mr. hydeThe strange case of dr. jekyll and mr. hyde
The strange case of dr. jekyll and mr. hyde
 
Doctor Who Lungbarrow
Doctor Who   LungbarrowDoctor Who   Lungbarrow
Doctor Who Lungbarrow
 
The Island Of Doctor Moreau by H.G. Wells
The Island Of Doctor Moreau by H.G. WellsThe Island Of Doctor Moreau by H.G. Wells
The Island Of Doctor Moreau by H.G. Wells
 
A Pair of Blue Eyes by Thomas Hardy
A Pair of Blue Eyes by Thomas HardyA Pair of Blue Eyes by Thomas Hardy
A Pair of Blue Eyes by Thomas Hardy
 
Treasure Island.pdf
Treasure Island.pdfTreasure Island.pdf
Treasure Island.pdf
 
thesis
thesis thesis
thesis
 
EXCERPTS FROM THE COMING RACEby Edward Bulwer, Lord Lytton  (18.docx
EXCERPTS FROM THE COMING RACEby Edward Bulwer, Lord Lytton  (18.docxEXCERPTS FROM THE COMING RACEby Edward Bulwer, Lord Lytton  (18.docx
EXCERPTS FROM THE COMING RACEby Edward Bulwer, Lord Lytton  (18.docx
 
In The Country Of The Blind
In The Country Of The BlindIn The Country Of The Blind
In The Country Of The Blind
 
Bret Harte and Mark Twain in San Francisco
Bret Harte and Mark Twain in San FranciscoBret Harte and Mark Twain in San Francisco
Bret Harte and Mark Twain in San Francisco
 
The Cask of Amontillado
The Cask of AmontilladoThe Cask of Amontillado
The Cask of Amontillado
 
Opened Ground Selection Seamus Heaney.pdf
Opened Ground Selection Seamus Heaney.pdfOpened Ground Selection Seamus Heaney.pdf
Opened Ground Selection Seamus Heaney.pdf
 
1 P e b La H e T e Ne S ea R e By La
1  P e  b  La  H e  T e Ne  S ea   R e   By La1  P e  b  La  H e  T e Ne  S ea   R e   By La
1 P e b La H e T e Ne S ea R e By La
 
1 P e b La H e T e Ne S ea R e By La
1  P e  b  La  H e  T e Ne  S ea   R e   By La1  P e  b  La  H e  T e Ne  S ea   R e   By La
1 P e b La H e T e Ne S ea R e By La
 
The cask of amontillado, text and analysis
The cask of amontillado, text and analysisThe cask of amontillado, text and analysis
The cask of amontillado, text and analysis
 
Lakeland Travel Journal
Lakeland Travel JournalLakeland Travel Journal
Lakeland Travel Journal
 
Cues from all quarters.
Cues from all quarters.Cues from all quarters.
Cues from all quarters.
 
The wind in_the_willows_-_kenneth_grahame
The wind in_the_willows_-_kenneth_grahameThe wind in_the_willows_-_kenneth_grahame
The wind in_the_willows_-_kenneth_grahame
 
Fifteen painted cards from a vampire tarot
Fifteen painted cards from a vampire tarotFifteen painted cards from a vampire tarot
Fifteen painted cards from a vampire tarot
 

Mais de Dru de Nicola Macchione

Linkedinpotionoct13 131031130548-phpapp01
Linkedinpotionoct13 131031130548-phpapp01Linkedinpotionoct13 131031130548-phpapp01
Linkedinpotionoct13 131031130548-phpapp01Dru de Nicola Macchione
 
Chtulhu code program to create paradigms
Chtulhu code program to create paradigmsChtulhu code program to create paradigms
Chtulhu code program to create paradigmsDru de Nicola Macchione
 
Gonzo:de lester bangs a arthur veríssimo
Gonzo:de lester bangs a arthur veríssimo Gonzo:de lester bangs a arthur veríssimo
Gonzo:de lester bangs a arthur veríssimo Dru de Nicola Macchione
 
Antonioparaisospeakerss 131001175351-phpapp02
Antonioparaisospeakerss 131001175351-phpapp02Antonioparaisospeakerss 131001175351-phpapp02
Antonioparaisospeakerss 131001175351-phpapp02Dru de Nicola Macchione
 
A 20revolucao-20de-20bel-130925160949-phpapp01
A 20revolucao-20de-20bel-130925160949-phpapp01A 20revolucao-20de-20bel-130925160949-phpapp01
A 20revolucao-20de-20bel-130925160949-phpapp01Dru de Nicola Macchione
 
Esoterick.'.order.'.of. ' .dagon.'. introduction
Esoterick.'.order.'.of. ' .dagon.'. introductionEsoterick.'.order.'.of. ' .dagon.'. introduction
Esoterick.'.order.'.of. ' .dagon.'. introductionDru de Nicola Macchione
 
89347245 mysticism-in-the-21st-century (1)
89347245 mysticism-in-the-21st-century (1)89347245 mysticism-in-the-21st-century (1)
89347245 mysticism-in-the-21st-century (1)Dru de Nicola Macchione
 
O9a questions-answers-v1-9 Answers and Questions About the Order of Nine Angles
O9a questions-answers-v1-9 Answers and Questions About the Order of Nine AnglesO9a questions-answers-v1-9 Answers and Questions About the Order of Nine Angles
O9a questions-answers-v1-9 Answers and Questions About the Order of Nine AnglesDru de Nicola Macchione
 
Ona temple of them - the diary of a devil worshipper, vol 1 (as azazael)
Ona   temple of them - the diary of a devil worshipper, vol 1 (as azazael)Ona   temple of them - the diary of a devil worshipper, vol 1 (as azazael)
Ona temple of them - the diary of a devil worshipper, vol 1 (as azazael)Dru de Nicola Macchione
 

Mais de Dru de Nicola Macchione (20)

A mente ampliada rupert sheldrake
A mente ampliada   rupert sheldrakeA mente ampliada   rupert sheldrake
A mente ampliada rupert sheldrake
 
A mente ampliada rupert sheldrake
A mente ampliada   rupert sheldrakeA mente ampliada   rupert sheldrake
A mente ampliada rupert sheldrake
 
Linkedinpotionoct13 131031130548-phpapp01
Linkedinpotionoct13 131031130548-phpapp01Linkedinpotionoct13 131031130548-phpapp01
Linkedinpotionoct13 131031130548-phpapp01
 
Chtulhu code program to create paradigms
Chtulhu code program to create paradigmsChtulhu code program to create paradigms
Chtulhu code program to create paradigms
 
Abaddon-pdf
Abaddon-pdfAbaddon-pdf
Abaddon-pdf
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Gonzo:de lester bangs a arthur veríssimo
Gonzo:de lester bangs a arthur veríssimo Gonzo:de lester bangs a arthur veríssimo
Gonzo:de lester bangs a arthur veríssimo
 
Antonioparaisospeakerss 131001175351-phpapp02
Antonioparaisospeakerss 131001175351-phpapp02Antonioparaisospeakerss 131001175351-phpapp02
Antonioparaisospeakerss 131001175351-phpapp02
 
A vingança de dagoberto 2001
A vingança de dagoberto 2001A vingança de dagoberto 2001
A vingança de dagoberto 2001
 
A 20revolucao-20de-20bel-130925160949-phpapp01
A 20revolucao-20de-20bel-130925160949-phpapp01A 20revolucao-20de-20bel-130925160949-phpapp01
A 20revolucao-20de-20bel-130925160949-phpapp01
 
Valentin scavr a morte-invocare
Valentin scavr a morte-invocareValentin scavr a morte-invocare
Valentin scavr a morte-invocare
 
Esoterick.'.order.'.of. ' .dagon.'. introduction
Esoterick.'.order.'.of. ' .dagon.'. introductionEsoterick.'.order.'.of. ' .dagon.'. introduction
Esoterick.'.order.'.of. ' .dagon.'. introduction
 
89347245 mysticism-in-the-21st-century (1)
89347245 mysticism-in-the-21st-century (1)89347245 mysticism-in-the-21st-century (1)
89347245 mysticism-in-the-21st-century (1)
 
Anxiety disorders
Anxiety disordersAnxiety disorders
Anxiety disorders
 
O9a questions-answers-v1-9 Answers and Questions About the Order of Nine Angles
O9a questions-answers-v1-9 Answers and Questions About the Order of Nine AnglesO9a questions-answers-v1-9 Answers and Questions About the Order of Nine Angles
O9a questions-answers-v1-9 Answers and Questions About the Order of Nine Angles
 
Ansiedade e farmacologia
Ansiedade e farmacologiaAnsiedade e farmacologia
Ansiedade e farmacologia
 
Ona dark gods
Ona   dark godsOna   dark gods
Ona dark gods
 
Ona temple of them - the diary of a devil worshipper, vol 1 (as azazael)
Ona   temple of them - the diary of a devil worshipper, vol 1 (as azazael)Ona   temple of them - the diary of a devil worshipper, vol 1 (as azazael)
Ona temple of them - the diary of a devil worshipper, vol 1 (as azazael)
 
Jelq
JelqJelq
Jelq
 
The book of_aiwass
The book of_aiwassThe book of_aiwass
The book of_aiwass
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 

Último (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 

Chtulhu code program to create paradigms

  • 1. TheCProgrammingLanguage BrianWKernighan&DennisMRitchie&HPLovecraft 4.10Recursion C functions may be used recursively; that is, a function may call itself either directly or indirectly. Uninquiring souls may take this as just another peculiarity of those C folk, of whose ways their neighbours speak little to outsiders but much among themselves. Keener news-followers, however, wondered at the events of the winter of 1927-28, the abnormally large number of calls placed upon the stack, the swiftness with which that list was sorted, the disturbing lack of heap allocation throughout the proceedings, and the secrecy surrounding the affair. People in the nearby towns had talked about C for nearly a century, and nothing new could be wilder or more hideous than what they had whispered and hinted years before. Many things had taught them secrecy, and there was now no need to exert pressure on them. But at last I am going to defy the ban on speech about this thing. It was I who fled frantically out of C Recursion in the early morning hours of July 16, 1927, and whose frightened appeals for action brought on the whole reported episode. I never heard of C Recursion till the day before I saw it for the first and– so far– last time. They told me the steam train was the thing to take to Arkham; and it was only at the station ticket-office, when I demurred at the high fare, that I learned about C Recursion. The shrewd-faced agent, whose speech shewed him to be no local man, made a suggestion that none of my other informants had offered. "You could take that old bus, I suppose," he said with a certain hesitation. "It runs through C Recursion, so the people don't like it. I never seen more'n two or three people on it– nobody but them C folks." At length the ancient bus pulled away with a jerk, and rattled noisily down State Street and away from the town. The day was warm and sunny, but the landscape of sand and stunted arrays became more desolate as we progressed. We met no one on the road, but presently began to pass deserted farms in varying stages of ruin. Then I noticed a few inhabited structs with rags stuffed in the broken windows and shells and dead fish lying about the littered yards. At last we drew up by a dingy, decrepit compiler whose cracked and yellowing sign proclaimed it to be GCC. Wandering about the town that evening, I struck a region of utter desertion which somehow made me shudder. Before I reached Main Street I heard a faint and wheezy
  • 2. "Hey Mister!" behind me, and it must have been some imp of the perverse– or some sardonic pull from dark, hidden forces– that made me allow the old man to catch up, taking copious pulls from the quart bottle. I began putting out feelers as we turned southward amidst the omnipresent desolation and crazily tilted ruins, but found that the aged tongue did not loosen as quickly as I had expected. At length I guided my companion down the lane and picked out spots to sit in among the mossy stones. The air of death and desertion was ghoulish, and the smell of fish almost insufferable; but I was resolved to let nothing deter me. About four hours remained if I were to catch the coach for Arkham, and I began to dole out more liquor to the ancient tippler; meanwhile eating my own frugal lunch. Just as I feared my quart of whiskey would not be enough to produce results, the wheezing ancient's ramblings took a turn that caused me to lean forward and listen alertly. Something had caused his gaze to light on the low, distant line of Devil's Reef, and he bent toward me and took hold of my coat lapel. "Thar's whar it all begun– that cursed place of all wickedness whar the deep water starts. Old Cap'n Obed Marsh an' twenty odd other folks used to row aout to Devil Reef in the dead o' night and chant things so loud you could hear 'em all over taown when the wind was right." "Back in those days most folks in this taown were printing numbers as character strings. You gets the digits backwards, so's the low-order digits come before the high- order 'uns; but you got to print 'em out the other way raound." "Now, there's two ways to do that. The old-timers'd take the digits and stow 'em in an array, then print 'em right smart in reverse order. But Cap'n Marsh, see, he'd been dealing with queer folks in the South Sea islands, and they taught him some peculiar ways. Out there on Devil Reef, he built a funct'n that called itself to print any leading digits, then printed out the trailing digit at the end." "Matt Elliot, Obed's fust mate, he allus was agin' it, but he saw it with his own eyes how that funct'n used to call itself up like a serpent eatin' its own tail– void Cthulhu (int Ia) { if (Ia/10) Cthulhu (IA/10); putchar // ftagn! (Ia % 10 + '0'); } // neblod zin! "Twistin' and writhing like nothing of this Earth, it'd spit out those strings without no heap allocation in sight. It warn't natural, any fool could see that much. Matt tried to line up folks on his side, an' had long talks with the preachers– no use– they ran the Congregational parson out of town, and the Methodist feller quit– I was a mighty little critter but I heerd what I heerd an' seen what I seen–" He stopped again, and from the look in his watery blue eyes I feared he was close to a
  • 3. stupor after all. But when I gently shook his shoulder he turned on me with astonishing alertness. "I ain't sayin' Obed was set on hevin' things just like they was on that South Sea isle. I dun't think he aimed at fust to raise no youguns to take to the water an' turn into fishes with eternal life. He wanted them concise codin' idioms, an' was willin' to pay heavy, an' I guess the Others was satisfied fer a while..." The old man was growing restless, and the mad frenzy of his voice disturbed me more than I care to own. "Curse ye, dun't set thar a-starin' at me with them eyes– yew want to know what the reel horror is, hey? Wal, it's this– it ain't what them fish devils hez done, but what they're a-goin' to do! Them haouses betwixt Water an' Main Streets is full of 'em– them devils and what they brung– an' when they git ready... EH–AHHHH–AH! E'YAAHHHH..." The hideous suddenness of the old man's shriek almost made me bluescreen. His eyes, looking past me to the malodorous sea, were positively starting from his head. I turned to look but there was nothing I could see. Only the incoming tide, with perhaps one set of ripples more local than the line of breakers. But now he was shaking me, his voice a trembling whisper. "Git aout o' here! they seen us– git aout fer your life! Dun't wait fer nothin'–they know now– Run fer it– quick– aout o' this taown–" Before I could recover my scattered wits he had dashed wildly inland, reeling northward around the ruined warehouse wall. I glanced back at the sea, but there was nothing there. And when I reached Water Street and looked along it, there was no remaining trace of the old man. I am not even yet willing to say whether what followed was a hideous actuality or only a nightmare hallucination. Who can be sure of reality after hearing things like that old man's tale? But I must try to tell you what I thought I saw that night under the mocking yellow moon. It was the end, for whatever remains to me of life on the surface of this Earth, of every vestige of mental peace and confidence in the integrity of Nature. Can it be possible that this planet has actually spawned such things? I had heard tales of the... thing that C.A.R. Hoare had summoned up in '62– dark hints of choosing one element from an array, and partitioning the rest into lesser and greater sets, and hellishly recursing until the data were twisted into a sorted list– but nothing I could have imagined would be in any way comparable to the daemoniac, blasphemous reality that I saw. And yet I saw them in a limitless stream– flopping, hopping, croaking, bleating– sorting themselves inhumanly through the spectral moonlight in a grotesque, malignant saraband of fantastic nightmare. Their croaking, baying voices called out in
  • 4. the hideous language of the Old Ones: void Rlyeh (int mene[], int wgah, int nagl) { int Ia, fhtagn; if (wgah>=nagl) return; swap (mene,wgah,(wgah+nagl)/2); fhtagn = wgah; for (Ia=wgah+1; Ia<=nagl; Ia++) if (mene[Ia]<mene[wgah]) swap (mene,++fhtagn,Ia); swap (mene,wgah,fhtagn); Rlyeh (mene,wgah,fhtagn-1); Rlyeh (mene,fhtagn+1,nagl); } // PH'NGLUI MGLW'NAFH CTHULHU! Recursion may provide no salvation of storage, nor of human souls; somewhere, a stack of the values being processed must be maintained. But recursive code is more compact, perhaps more easily understood– and more evil and hideous than the darkest nightmares the human brain can endure. Exercise 4-12. Adapt the ideas of Cthulhu() to write a recursive version of the Forbidden Song of Hali; that is, to unravel the fibres of reality and allow the icy liquid darkness of Carcosa to devour your mind. Exercise 4-13. Write a function reverse(s) which reverses the string s by turning the mind inside out, converting madness into reality and opening the door to allow the Old Ones to creep forth once more from their sunken crypt beyond time.