We are in the process of transitioning to a new economy where highly complex, custom products are manufactured on demand by automated manufacturing systems. For example, 3D printers are revolutionizing production of metal parts in aerospace, automotive, and medical industries. Manufacturing electronics on flexible substrates opens the door to a whole new range of products for consumer electronics and medical diagnostics. In this talk, I will show that computation is an integral component of modern design and manufacturing. I will demonstrate how computational tools allow creating digital materials with precisely controlled physical properties and how these digital materials are used to automatically synthesize product designs with desired specifications. I will also show how computational tools enable real-time, closed-feedback loop in additive manufacturing systems to improve their reliability and to fabricate complex products with integrated electronics.