Large-Scale Photonics Integration: Data Communications To Optical Beamforming