Possibly also relevant is this old discussion https://swi-prolog.discourse.group/t/delphi-library-for-swi-prolog/