For the first time in this war, the Gatling gun was used by Butler in repelling one of Beauregard's midnight attacks. Dispatches state that it was very destructive, and rebel prisoners were very curious to know whether it was loaded all night and fired all day. ... Gatling, like Mann, has found it very difficult to get fair trials of his gun, and to have it introduced by the War Department, for the Government leaves all such things to the Ordnance Office, and that office is under the control of old fogies, who work by red tape, and who are slow to perceive the value of ordnance improvements, and still slower to introduce them into practice. ["Scientific American," June 18, 1864]
The name must orig. have applied to a strip of cloth wrapped about the hand to protect it from sword-blows, a frequent practice in the Icelandic sagas. [Buck]Italian guanto, Spanish guante are likewise ultimately from Germanic. The spelling with -u- was established from 1500s.
But in oure bed he was so fressh and gay
Whan that he wolde han my bele chose.
Slang meaning "homosexual" (adj.) begins to appear in psychological writing late 1940s, evidently picked up from gay slang and not always easily distinguished from the older sense:
After discharge A.Z. lived for some time at home. He was not happy at the farm and went to a Western city where he associated with a homosexual crowd, being "gay," and wearing female clothes and makeup. He always wished others would make advances to him. ["Rorschach Research Exchange and Journal of Projective Techniques," 1947, p.240]
The association with (male) homosexuality likely got a boost from the term gay cat, used as far back as 1893 in American English for "young hobo," one who is new on the road, also one who sometimes does jobs.
"A Gay Cat," said he, "is a loafing laborer, who works maybe a week, gets his wages and vagabonds about hunting for another 'pick and shovel' job. Do you want to know where they got their monica (nickname) 'Gay Cat'? See, Kid, cats sneak about and scratch immediately after chumming with you and then get gay (fresh). That's why we call them 'Gay Cats'." [Leon Ray Livingston ("America's Most Celebrated Tramp"), "Life and Adventures of A-no. 1," 1910]
Quoting a tramp named Frenchy, who might not have known the origin. Gay cats were severely and cruelly abused by "real" tramps and bums, who considered them "an inferior order of beings who begs of and otherwise preys upon the bum -- as it were a jackal following up the king of beasts" [Prof. John J. McCook, "Tramps," in "The Public Treatment of Pauperism," 1893], but some accounts report certain older tramps would dominate a gay cat and employ him as a sort of slave. In "Sociology and Social Research" (1932-33) a paragraph on the "gay cat" phenomenon notes, "Homosexual practices are more common than rare in this group," and gey cat "homosexual boy" is attested in N. Erskine's 1933 dictionary of "Underworld & Prison Slang" (gey is a Scottish variant of gay).
"Gay" (or "gai") is now widely used in French, Dutch, Danish, Japanese, Swedish, and Catalan with the same sense as the English. It is coming into use in Germany and among the English-speaking upper classes of many cosmopolitan areas in other countries. [John Boswell, "Christianity, Social Tolerance, and Homosexuality," 1980]
Gay as a noun meaning "a (usually male) homosexual" is attested from 1971; in Middle English it meant "excellent person, noble lady, gallant knight," also "something gay or bright; an ornament or badge" (c.1400).