Replies: 3 comments 1 reply
-
This book chapter has some basic meta-interpreter examples including allowing the user to override a failed goal, and passing around state so it can be printed at terminal upon request: |
Beta Was this translation helpful? Give feedback.
-
A layered meta-interpreter is an interesting approach as it allows negation and cut to be handled more easily: |
Beta Was this translation helpful? Give feedback.
-
I've just learned about Futamura Projections – mind blown. It means that if you write an interpreter and have a program that is accepted by it – there is an automated way to compile the program to a faster representation. That means that you can introduce Prolog extensions via meta-interpretation and they can be "compiled" to a fast code without performance hit of the interpreter itself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've started digging an old gold mine containing a lot of interesting historical Prolog code, and I found small collection of meta-interpreters. I find it useful in case you don't know what else can be done using basic meta-interpretation techniques.
Beta Was this translation helpful? Give feedback.
All reactions