Standard electronics has its pace restrict within the vary of some GHz and carries excessive losses as a consequence of thermal heating. Photonic applied sciences, which use photons as an alternative of electrons, may probably overcome these boundaries, as processing charges can attain and surpass the THz vary at decrease losses. Nonetheless, realizing compact photonic built-in circuits that may compete with trendy microchips poses the problem of working on the nanometre scale, that’s, at sub-wavelength volumes for optical and telecommunication frequencies. Resembling the transistor in electronics, all-optical modulators are on the coronary heart of any data processing photonic machine. Such nanoscale constructing blocks require ultrafast light-by-light management, which could be achieved via nonlinear optical results. Writing in Nature Nanotechnology, Di Francescantonio et al.1 now report a dielectric metasurface — an ultrathin two-dimensional array of dielectric nanostructures — able to mixing two pulsed pump beams to nonlinearly upconvert near-infrared mild into seen mild. They present controllable switching of the route of emission between totally different diffraction orders of the metasurface, which acts as a kind of reconfigurable nonlinear diffraction grating. The routing tuning knobs are the sunshine polarization states and the relative time delay of the excitation pulses, which the researchers alter with 150 as precision. Strikingly, altering the relative arrival time of the beams on the metasurface by simply 1 fs can shift the emission from one diffraction order to a different with a modulation effectivity of as much as 90%.