News for hackers. Stuff that matters.
Re:What is a coder's worst nightmare? (2014) by dalke on Saturday November 21, 2015 @04:33AM (#10606309)
That seems more like a fictionalization of "Reflections on Trusting Trust" than a true story.
Re:What is a coder's worst nightmare? (2014) by joelbugarini on Saturday November 21, 2015 @10:54PM (#10609015)
Mick (OP) responds to this assumption in the Quora comments:

I just read that. This guy certainly wasn't Ken Thompson. But this happened to me in 1991, seven years after the date of publication you posted, and the "login" portion did the exact same thing Ken was describing as far as the secret password. This was probably Thompson's genius idea implemented by the grad student. The mechanism was very different though in the compiler, but the outcome was still a poisoned compiler.

I had heard of self-modifying compiler before, too or I probably wouldn't have thought to look there myself. I'm not surprised to see Thompson behind the original idea.

Re:What is a coder's worst nightmare? (2014) by anon4 on Sunday November 22, 2015 @05:46AM (#10609713)
I don't doubt the story's plausibility, but I'm left wondering how the student could have replaced the compiler with his own. Usually you need root in order to mess around with the system like that.
Re:What is a coder's worst nightmare? (2014) by keithpeter on Sunday November 22, 2015 @05:15AM (#10609668)
I thought of the 'trusting trust' paper just as I reached the paragraph about the compiler.

As an ex-PHB rather than a programmer, I think perhaps that Dr Phelps could have had taken a bit more interest in the project &c. Perhaps had a look at the code now and again as simply asked "why does this look so unlike other people's code?". Might have sent a shot across the bows of the bad apple.

Re:What is a coder's worst nightmare? (2014) by Drdrdrq on Sunday November 22, 2015 @08:43AM (#10610019)
This. I wonder what made the graduate so angry to go to such extreme lengths to protect his code. And why nobody noticed it - did they even have the right to fix the code?
Re:What is a coder's worst nightmare? (2014) by vidarh on Saturday November 21, 2015 @09:18PM (#10608804)
Either that, or said student had read Reflections on Trusting Trust. It was published in 1984. The 3B2's and Tymnet were current around then, and the authors bio indicates he's been programming long enough for the timeline to fit too. It's not that unlikely that someone, somewhere read the paper and decided to have some fun at some point.

The thing that makes me tend to agree with you is that he hasn't mentioned any "finally, years later, I found out where that guy got his idea" moment in it.

Re:What is a coder's worst nightmare? (2014) by skybrian on Saturday November 21, 2015 @10:39PM (#10608983)
He did sorta mention it, but not by name:

"I suddenly realize it's in the compiler. It was the compiler. And every time you compile the original code and run it puts in the subliminal message code into the source code. I'd heard of this before."

Re:What is a coder's worst nightmare? (2014) by vidarh on Sunday November 22, 2015 @03:08AM (#10609424)
Ah, yes, I missed that... Thanks.
Re:What is a coder's worst nightmare? (2014) by pdpi on Saturday November 21, 2015 @10:52PM (#10609012)
There is an "I'd heard of this before" in there that I do attribute to the paper.
Re:What is a coder's worst nightmare? (2014) by brudgers on Saturday November 21, 2015 @10:50AM (#10607043)
Re:What is a coder's worst nightmare? (2014) by cshimmin on Saturday November 21, 2015 @08:37PM (#10608724)
Or for those who like explanations from secondary sources: http://c2.com/cgi/wiki?TheKenThompsonHack
Re:What is a coder's worst nightmare? (2014) by jtheory on Sunday November 22, 2015 @09:06AM (#10610077)
I assumed for the first half it was going to turn out to be a psych experiment (and there were several other compsci students getting similar "contracts") -- especially as the hurdles he was jumping were clearly intentionally set up.
Re:What is a coder's worst nightmare? (2014) by auntienomen on Saturday November 21, 2015 @09:08PM (#10608786)
Or, perhaps, the grad student antagonist got the idea from the essay.