Nonlinear waves: from beaches to lasers