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
My question: Scryer goes through the extra effort to generate these inlined instructions, and in a sense knows that these instructions are meant when we say maplist(f, ...). At the same time, it also allocates the term user:f on the heap, even though that seems not needed, because we can instead use the inlined goal which is already correctly resolved and compiled.
It seems either one or the other is necessary (i.e., inlined goal or compound term), but not both.
Given the following source code:
I get:
With
'$index_ptr'(28915)
pointing to the following inlined instructions:My question: Scryer goes through the extra effort to generate these inlined instructions, and in a sense knows that these instructions are meant when we say
maplist(f, ...)
. At the same time, it also allocates the termuser:f
on the heap, even though that seems not needed, because we can instead use the inlined goal which is already correctly resolved and compiled.It seems either one or the other is necessary (i.e., inlined goal or compound term), but not both.
For comparison, GNU Prolog:
The text was updated successfully, but these errors were encountered: