You cannot explain the difference in economy of those countries based on the ideology of their governments. Its more complicated than that. For instance, Chile is rich in agricultural and mineral resources and has less population than Vietnam.