Abstract. Rheological properties of dense flows of hard particles are singular as one approaches the jamming threshold where flow ceases, both for granular flows dominated by inertia, and for over-damped suspensions. Concomitantly, the lengthscale characterizing velocity correlations appears to diverge at jamming. Here we review a theoretical framework that gives a scaling description of stationary flows of frictionless particles. Our analysis applies both to suspensions and inertial flows of hard particles. We report numerical results in support of the theory, and show the phase diagram that results when friction is added, delineating the regime of validity of the frictionless theory.