Pyke introduces a form of Logic Programming (inspired by Prolog ) to the Python community by providing a knowledge-based inference engine (expert system) written in 100% Python.
Pyke(Python knowledge engine Python知识引擎)通过向Python社区提供一个完全由Python所写的专家系统来介绍一
种逻辑编程语言形式(受Prolog启发)。
1.Prolog是一种逻辑行编程语言,百科http://baike.baidu.com/view/459700.htm
2.专家系统实际是个挺扯淡的东西……
Unlike Prolog, Pyke integrates with Python allowing you to invoke Pyke from Python and intermingle Python statements and expressions within your expert system rules.
不同于Prolog,Pyke允许你从Python中调用Pyke,把Python语句和表达式嵌入进专家系统规则。
Pyke was developed to significantly raise the bar on code reuse. To do this, it had to provide a way to take Python code and be able to radically customize it for a specific purpose or use case.
Pyke在相当大程度上提升了代码重用的门槛。为了这么做,它必须提供一种方式调用Python代码并且可以完全为了专门用途自定制。
what意思……
Doing this essentially makes Pyke a very high-level "compiler". And taking this approach also produces dramatic increases in performance.
And Pyke is very successful at this, providing order of magnitude improvements in:
这么做本质上讲可以使Pyke成为一个高等级的编译器,在性能上这么做可以产生戏剧性的增长。Pyke成功在此,并在一下方面上提供了大量的改进:
Pyke does not replace Python, nor is meant to compete with Python. Python is an excellent general purpose programming language, that allows you to "program in the small".
Pyke builds upon Python by also giving you tools to directly program in the large .
Oh, and Pyke uses Logic Programming to do all of this. So if you're interested in Logic Programming or Expert Systems, well Pyke has that too..
Pyke不会代替Python,也不会与Python竞争。Python是一个非常优秀的通用变成语言,允许你“快速编程”(Program in the small)。Pyke本身建立在Python之上,直接提供给你些工具。
Pyke本身使用逻辑编程来做这些事。如果你对逻辑编程或专家系统有兴趣,那么对Pyke恐怕也一样(有兴趣)……
------------------------------------------------
请无视以上蹩脚翻译,连介绍都算不上。- -#