Abstract
In this chapter, we review results of computer simulation of glasses carried out using first-principles approaches, notably density functional theory. We first compare this approach with one of the simulations with classical potentials and then discuss how it helps to get insight into the properties of simple and complex glasses. For this, we focus on the radial distribution functions, the structure factor, the vibrational densities of states, as well as NMR spectra. In all these cases, ab initio simulations prove to be useful to get a good understanding of the properties of glasses on the microscopic level.