Programmable nonlinearities — including control over the response order up to high orders — can now be realized on-chip at ultralow power via field programmability. This advance paves the way for more scalable and energy-efficient photonic computing in applications such as machine learning, optical signal processing and communications, analogue computing and quantum photonics.