You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prolog does not use the occurs check by default because it is very slow. With some quick testing, I have determined that by not using occurs check in Lumber, significant performance improvements can be made. If we make occurs-checking opt-in (at the language level) that should help with performance. New syntax ("pattern with occurs check") will be required, maybe this is where the # comes in?
X =:= [X]. // pass
#X =:= [X]. // fail
X =:= #[X]. // fail
X =:= [#X]. // fail
The text was updated successfully, but these errors were encountered:
I have disabled occurs check entirely for now. It's just too slow for it to be used always. The option to opt-in to the occurs check should be added at some point... I don't think the # syntax will work, maybe a keyword occurs?
Prolog does not use the occurs check by default because it is very slow. With some quick testing, I have determined that by not using occurs check in Lumber, significant performance improvements can be made. If we make occurs-checking opt-in (at the language level) that should help with performance. New syntax ("pattern with occurs check") will be required, maybe this is where the # comes in?
The text was updated successfully, but these errors were encountered: