Applying expert system technology to code reuse with Pyke (#43)
Bruce Frederiksen bio
30min Advanced
categories:
project, technique, tutorial
Pyke uses expert system technology to automatically assemble python
programs (call graphs) from a set of python functions.
The advantage of this approach over run-time dynamic binding approaches
(like Zope adapters or generic functions) is that the mechanism that
chooses which function to run has not executed the chosen function yet,
and so is not committed to that choice. If it discovers that a particular
function won't work because subordinate functions can't be found to fit
the situation, it can back up and try alternative functions. This can be
done at all levels of the call graph. Only when the entire call graph
has been successfully enumerated are any of the functions then executed.
See pyke.sourceforge.net for project documentation.
programs (call graphs) from a set of python functions.
The advantage of this approach over run-time dynamic binding approaches
(like Zope adapters or generic functions) is that the mechanism that
chooses which function to run has not executed the chosen function yet,
and so is not committed to that choice. If it discovers that a particular
function won't work because subordinate functions can't be found to fit
the situation, it can back up and try alternative functions. This can be
done at all levels of the call graph. Only when the entire call graph
has been successfully enumerated are any of the functions then executed.
See pyke.sourceforge.net for project documentation.
Files:
| file | size | uploaded | comment |
|---|---|---|---|
| Applying_expert_system_technology_to_code_reuse_with_Pyke.tgz | 457.1 KB | Mon, March 10th, 12:19 p.m. | PyCon 2008 paper |
| Link_to_paper.html | 578 bytes | Mon, March 10th, 2:07 p.m. | Link to paper on Pyke site. |
# Permalink
.