Is there any good resources for the internals of prolog / writing a prolog interpreter?
A good description of what it's about is at MIT Press' page for the author [1].
(While out-of-print, apparently a paperback version can be had for $21 on Amazon [2]).
[0] http://wambook.sourceforge.net/
[1] https://mitpress.mit.edu/contributors/hassan-ait-kaci
[2] https://www.amazon.com/Warrens-Abstract-Machine-Reconstructi...
https://github.com/rm-hull/wam (WAM in Clojure)
https://github.com/rupertlssmith/hak_wambook (WAM in Java)