Question
Rabobank
NL
Last activity: 6 Jul 2018 3:42 EDT
Does the Pega Platform support any native capability for running Python code in Pega?
We are investigating the possibility of running Python code natively in Pega. We are not aware of any such capability but perhaps someone could share some insights on this.
We have already investigated the possibility of using Jython java libraries and running the python code, but this does not look to be the best solution.
Any comments will be welcome!!!
Python (like Java and .NET) compiles to Byte-Code and runs on a Virtual Machine (a 'PVM').
(The analogy for PVM for Java is 'JVM', and for .NET 'CLR').
PRPC does not ship with a 'PVM' (nor a .NET clr for that matter) ; and therefore cannot run Python 'natively'. (nor .Net 'natively').
PRPC is a Java Platform.
Strictly speaking - it doesn't run 'CPython', but as you point out - you *can* compile Python to *JAVA* bytecode - using Jython; and then the JVM is able to run this.
You can do this for sure; but the 'Jython' JAR(s?) does NOT ship by default with PRPC .
In fact you can run Clojure, Javascript, Scala and other Languages; so long as they support compiling to JVM byte-code.
I just double-checked that there is no JYTHON jars shipped with PRPC731 by running this:
(no rows found).