doclog icon indicating copy to clipboard operation
doclog copied to clipboard

Concurrent Processing

Open dougransom opened this issue 5 months ago • 5 comments

Concurrent processing of prolog source files. Maybe default to many processors a computer has plus 1.

dougransom avatar Jul 25 '25 16:07 dougransom

Meant o be a feature request, I can't apply the label.

dougransom avatar Jul 25 '25 16:07 dougransom

Would be very useful, but can't be implemented until Scryer adds concurrency

aarroyoc avatar Oct 11 '25 13:10 aarroyoc

@aarroyoc: Can you use the newly available library(process) for this? For instance, to spawn additional Scryer processes?

triska avatar Oct 11 '25 13:10 triska

I didn't think of that library. It is possible but I think there are two problems: we do not know how many cores are available on the computer (ideally you'll launch enough to keep all of them filled, but not much more) and finding out the location of the Scryer Prolog binary (on Linux/macOS you can somewhat rely on PATH, /proc/self/exe would be more reliable on Linux, Windows does it completely different, ...)

aarroyoc avatar Oct 11 '25 14:10 aarroyoc

Maybe these parameters can be specified, as for make -j 4 for example?

triska avatar Oct 11 '25 14:10 triska

Maybe this is less necessary now that I realize the scryer compiled with debug is super-slow.

dougransom avatar Dec 03 '25 00:12 dougransom