Text this: Electronic-photonic arithmetic logic unit for high-speed computing