Port l1-magic to other languages.