Continuous or pulsed fiber lasers