I meant developing OSs from scratch rather than just contributing to existing ones. And before you can do that you have to learn how to program, which is what the OP was asking about.
The OP's ambitions may be lofty, but let's not knock them down before he has even started. Start with the attitude that a task is just too difficult and you'll never even start on it. Every journey starts with a single step.
The truth is that, especially with the information available nowadays, these things are far easier than they may appear (although that doesn't mean that they are not extremely difficult). Forgive me if I misunderstood your meaning, but the description of such ambitions as "futile" seemed unequivocal to me.