1816, in the figurative sense of "icy reception, studied neglect or indifference," first in Sir Walter Scott, probably originally a literal figure (see cold (adj.)), but commonly used with a punning reference to "cold shoulder of mutton," considered a poor man's dish and thus, perhaps, something one would set out for an unwanted guest with deliberate intention to convey displeasure.
How often have we admired the poor knight, who, to avoid the snares of bribery and dependence, was found making a second dinner from a cold shoulder of mutton, above the most affluent courtier, who had sold himself to others for a splendid pension! ["No Fiction," 1820]
Originally with to show, later to give. As a verb from 1845; related: cold-shouldered. Also compare cold roast, old slang for "something insignificant." Cold pig was a 19c. term for throwing cold water on a sleeping person to wake him or her.
1761, "any disabled person or thing;" especially Stock Exchange slang for "defaulter."
A lame duck is a man who cannot pay his differences, and is said to waddle off. [Thomas Love Peacock, "Gryll Grange," 1861]
Sometimes also in naval use for "an old, slow ship." Modern sense of "public official serving out term after an election" is recorded by 1863, American English. The quote attributed to President Lincoln ("[A] senator or representative out of business is a sort of lame duck. He has to be provided for") is from an anecdote of 1878.
It is well known to everybody who knows anything of its history, that this court [Court of Claims] was made a sort of retreat for lame duck politicians that got wounded and had to retreat before the face of popular condemnation. That is just exactly what it was for, a safe retreat for lame ducks; and it was so filled up; (etc.) [Sen. John P. Hale, New Hampshire, Congressional Globe, Jan. 12, 1863, p.271]
childish deformed language (there are many different versions), by 1889 (hog Latin in same sense is attested by 1807).
The animals play quite an important part in the naming [of children's languages], as the hog, dog, fly, goose, pigeon, pig, all give names, with Mr. Hog leading. Among the names the Latins take the lead, and Hog Latin leads the list, being accredited as naming nearly as many languages as all the other names combined. Besides Hog Latin, there is Dog Latin, Pig Latin, Goose Latin, and Bum Latin. Then there is Greekish and Peddlers' French and Pigeon English. ... Very few can give any reason for the naming of the languages. In fact, no one can fully say where the great majority of names came from, for in most cases in the naming the following pretty well expresses the difficulty: "It was born before I was. I can't tell how young I was when I first heard of it." ["The Secret Language of Children," in The North Western Monthly, October 1897]
For the language itself, compare loucherbem, a 20c. French slang similar to pig Latin, which takes its name from the form of the word boucher in that language (which is said to have originated among the Paris butchers).
parting salutation, 1860, of unknown origin, perhaps from a German idiom (compare German parting salutation adieu so lange, the full sense of which probably is something like "farewell, whilst (we're apart)"); or perhaps from Hebrew shalom (via Yiddish sholom). Some have noted a similarity to Scandinavian leave-taking phrases, such as Norwegian Adjø så lenge, Farvel så lenge, Mor'n så lenge, literally "bye so long, farewell so long, morning so long;" and Swedish Hej så länge "good-bye for now," with så länge "for now" attested since 1850 according to Swedish sources. Most etymology sources seem to lean toward the German origin. So long (adv.) "for such a long time" is from late Old English.
Earlier guesses that it was a sailors' corruption of a South Pacific form of Arabic salaam are not now regarded as convincing. "Dictionary of American Slang" also adds to the list of candidates Irish slán "safe," said to be used as a salutation in parting. The phrase seems to have turned up simultaneously in America, Britain, and perhaps Canada, originally among lower classes. First attested use is in title and text of the last poem in Whitman's "Leaves of Grass" in the 1860 edition.
An unknown sphere, more real than I dream'd, more direct, darts awakening rays about me — So long!
Remember my words — I may again return,
I love you — I depart from materials;
I am as one disembodied, triumphant, dead.
Whitman's friend and fan William Sloane Kennedy wrote in 1923:
The salutation of parting — 'So long!' — was, I believe, until recent years, unintelligible to the majority of persons in America, especially in the interior, and to members of the middle and professional classes. I had never heard of it until I read it in Leaves of Grass, but since then have quite often heard it used by the laboring class and other classes in New England cities. Walt wrote to me, defining 'so long' thus: "A salutation of departure, greatly used among sailors, sports, & prostitutes — the sense of it is 'Till we meet again,' — conveying an inference that somehow they will doubtless so meet, sooner or later." ... It is evidently about equivalent to our 'See you later.' The phrase is reported as used by farm laborers near Banff, Scotland. In Canada it is frequently heard; 'and its use is not entirely confined to the vulgar.' It is in common use among the working classes of Liverpool and among sailors at Newcastle-upon-Tyne, and in Dorsetshire. ... The London Globe suggests that the expression is derived from the Norwegian 'Saa laenge,' a common form of 'farewell,' au revoir. If so, the phrase was picked up from the Norwegians in America, where 'So long' first was heard. The expression is now (1923) often used by the literary and artistic classes.