Revisiting Neural Scaling Laws in Language and Vision