Both forward-chaining and backward-chaining rules (which may include python code) are compiled into python. Can also automatically assemble python programs out of python functions which are attached to backward-chaining rules. See pyke.sourceforge.ne
JEOPS is a Java based forward chaining RULEENGINE.
This RuleEngine is used to power up the business process by rules in Java Application Servers, client applications, and Servlets.