Alan Mathison Turing was a Great Gay in history. He lived from 1912 to 1954, and was a British mathematician, logician, cryptanalyst and computer scientist.
Turing is considered to be the father of modern computer science. In 1999 Time Magazine named Turing as one of the 100 Most Important People of the 20th Century for his role in the creation of the modern computer, stating: "The fact remains that everyone who taps at a keyboard, opening a spreadsheet or a word-processing program, is working on an incarnation of a Turing machine."
During World War 2, Turing invented a number of ways for breaking German ciphers, including an electromechanical machine that could find settings for the Enigma machine. He was a top Nazi codebreaker !!!
He was criminally prosecuted for being gay in 1952. That totally ruined his career (he had started to dabble in revolutionary chemistry, too) . In an insane asylum he was chemically castrated with large doses of female hormones. He died not long after from what was officially declared self-induced cyanide poisoning, although his mother (and some others) considered the circumstances of his death to be suspicious.