A Chip That Thinks With Light, And Stays Cool While Doing It