Advanced compile for new vector api