The brain-AI convergence: Predictive and generative world models for general-purpose computation