Bridging nuclear and gravitational physics: the dense matter equation of state