Many problems in scientific computing require the solution of partial differential equations in complex geometry. There is a corresponding need for robust algorithms that are automatically adaptive and able to control precision. We will present recent developments in potential theory which give rise to fast, black-box, tools for problems in electrostatics, heat transfer, wave propagation and fluid dynamics.