Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: mettalog hangs on factorial #224

Closed
vsbogd opened this issue Dec 17, 2024 · 3 comments
Closed

Docker: mettalog hangs on factorial #224

vsbogd opened this issue Dec 17, 2024 · 3 comments

Comments

@vsbogd
Copy link

vsbogd commented Dec 17, 2024

Probably some issue with Docker but in image built from latest master d232fac recursive factorial implementation hangs:

metta+>(= (fact $n) (if (== $n 0) 1 (* (fact (- $n 1)) $n)))
metta+>!(fact 1)
@vsbogd
Copy link
Author

vsbogd commented Dec 17, 2024

It works correctly on yesterday's master 1e7d2db

TeamSPoon added a commit to logicmoo/metta-testsuite that referenced this issue Dec 17, 2024
     when the compiler thunks to interpeter
     these can call the compiler creating a loop trueagi-io/metta-wam#224
@vsbogd
Copy link
Author

vsbogd commented Dec 18, 2024

Fixed, checked on fcb30af

@vsbogd vsbogd closed this as completed Dec 18, 2024
@vsbogd
Copy link
Author

vsbogd commented Dec 18, 2024

Thanks @TeamSPoon !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants