The invention provides biocompatible resorbable polymers, comprising monomer units having formula (I), formula (II), formula (III) or formula (IV). The polymers degrade over time when implanted in the body, and are useful as components of implantable medical devices.