Pātuhitia tēnei: The theory and practice of compiler writing