Anyway, schizophrenia is a very complex illness, with five major subtypes and many related disorders. I am not a doctor, and I'm not privy to his medical history, but what I can tell you is that it affects individuals in different ways. It's entirely possible that Terry is only lucid when he's talking about CS stuff; I don't know if that's true or not.
For more, I'd start here: http://www.ncbi.nlm.nih.gov/pubmedhealth/PMH0001925/
The OP does have an interesting question because a characteristic symptom of schizophrenia is a loss in train of thought. This seems apparent in his posts because they seem, in a lot if ways, to diverge away from the actual topic (such as meeting God, which also demonstrates delusional thinking).
It's interesting because such losses would make it hard to sit down and focus on writing something coherent, which seems like it'd apply to programming just as much as writing and speech. Though, if he becomes very lucid when discussing CS stuff, perhaps programming as an activity itself provides that lucidity.
Programming may be his therapy. Occupational therapy is often pushed in mental hospitals (I speak from experience).
Either way, it's not even a good idea to try and approach, even it with the best intentions, for you don't know of the damage you may be causing. It's hard to believe but you have to be very, very careful of what you say or you risk furthering his mental health problems. It sounds cruel but the best thing would be to let them be, or at most focus 100% on CS.
I speak from my experiences as a mental health patient and becoming very close friends with a schizophrenic.
> They've been writing their own operating system...
Not criticizing, just pointing it out. I read it and wasn't sure why you had used "they".
I actually used 'they' because I generally don't try to gender someone unless I know what pronoun they wish me to use. It's just default speech for me. You'll note that I replaced it with 'someone with schizophrenia' and tend to use "Terry" rather than 'he' even; "Terry" can certainly be a woman's name.
That said, something about the above sentence tripped my othering-detector, so I had a moment of 'ugh,' but as I said, it went away. I don't think it was incorrect/wrong usage, I was just sharing a strange moment that happened in my own head. I don't know why my brain parsed it as "those people can't have a normal conversation" instead of my usual genderless usage.