systemd nspawn was written right around the same time I wrote that program, because that was when the kernel developers had just finished up the namespacing isolation and everybody wanted to start using it. I don't think nspawn uses cgroups, I think it is a fancier version of what I posted, doing the namespace isolation and the pivot_root and not much else.