Photonic Signal Processing for Logic and Computation