Optical Communications For Long-Haul, Short-Reach, And Chip-Scale Distances Enabled By Digital Signal Processing