Computational astrophysics on a special-purpose machine