Ultrafast nonlinear optics on a chip: Application to signal processing