Programming and digitalization of the physical world