yap

Overflow handling in GMP pow

吃可爱长大的小学妹 提交于 2021-01-26 06:53:04
问题 (I am only an indirect user of the GMP-library primarily through swi-prolog and yap. But I am very much interested in fixing this problem.) When performing exponentiations with ridiculously large values, the host-systems or GMP are no longer able to handle the overflows appropriately. I have talked to the developers of above systems, but they do not see an easy fix for this. Is this problem known to other GMP systems/users? How do you handle such overflows? As a sanity check first test the

Overflow handling in GMP pow

醉酒当歌 提交于 2021-01-26 06:52:40
问题 (I am only an indirect user of the GMP-library primarily through swi-prolog and yap. But I am very much interested in fixing this problem.) When performing exponentiations with ridiculously large values, the host-systems or GMP are no longer able to handle the overflows appropriately. I have talked to the developers of above systems, but they do not see an easy fix for this. Is this problem known to other GMP systems/users? How do you handle such overflows? As a sanity check first test the

Overflow handling in GMP pow

ε祈祈猫儿з 提交于 2021-01-26 06:51:42
问题 (I am only an indirect user of the GMP-library primarily through swi-prolog and yap. But I am very much interested in fixing this problem.) When performing exponentiations with ridiculously large values, the host-systems or GMP are no longer able to handle the overflows appropriately. I have talked to the developers of above systems, but they do not see an easy fix for this. Is this problem known to other GMP systems/users? How do you handle such overflows? As a sanity check first test the

Prolog memory issues

点点圈 提交于 2019-12-10 21:13:11
问题 I'd like to find a way to profile the memory usage of a predicate (a huge one) I've written in prolog. I'm currently running it with swi and yap and I can see from those processes memory consumption that a big chunk of memory gets allocated. The problem is that it does not get deallocated/freed/garbage collected when the predicate terminates (I have to halt the interpreter to see it back) plus the amount of memory only keeps growing while the predicate is running (wheather it shall not since