Idea – Generating Operating Systems?

Even if an operating system like Linux holds many lines of code. I wonder as time goes on. If this process of creating a system could be made more efficient? What if this could be made into a supported tutorial? So you have a site were interested people could generate their own operating systems. What I’m saying is that I think every new generation need to figure out things themselves, make their own music or something like that. Maybe they can make a smart operating system using machine learning. On the Raspberry Pi being a platform dedicated to education I think we can have such projects.