Remembered this but haven’t read it recently. Don’t know how up to date it still is but the ideas are in the concept area.
“Syntactic integration of external languages in Prolog” by Jan Wielemaker and Nicos Angelopoulos (pdf)
If you read it and think others should know about it, perhaps add it to Useful Prolog references.