1. A computer-implemented method for generating a database management system (DBMS) internal program language function from a foreign program language function, the method comprising: loading the foreign program language function into a DBMS server; an internal program module unit examining the foreign program language function to determine whether the foreign program language function is annotated for translation; if the foreign program language function is annotated for translation, determining by the internal program module unit if the foreign program language function is translated into a DBMS internal program language function in a database accessible to the DBMS; if the DBMS internal program language function exists, executing the internal program language function by the DBMS server, else the internal program module unit compiling the foreign program language function into an internal program language function; if the foreign program language function is not annotated for translation, executing the foreign program language function; a parsing unit parsing the foreign program language function; generating an abstract syntax tree of the parsed foreign program language function; a type inference unit inferring a type of internal variables of the foreign program language function and output results; a normalizer unit preparing the abstract syntax tree for translation; a serializer unit generating an internal program language program wrapped in a stored procedure; and a deployer unit creating the stored procedure.
5. The method of claim 1 , the creating step including installing the internal program language code in a metadata catalog of the DBMS.