Convert prolog application to JVM?

I have an outdated medium-sized ISO prologue application that I would like to translate into JVM. The application is a command line tool that parses text files, performs some evaluations / conversions, and then exports a text file.

My team develops mainly in Java, so we have many existing java competencies and reusable components. However, the competence of Prolog is very low.

I do not expect that there will be a tool that will use the prolog source code and convert it to another language. But I'm trying to figure out what would be the easiest solution. Starting from scratch in Java or using a more functional language like Clojure?

+3
source share
4 answers

But I'm trying to figure out what will be the easiest solution.

Some Prolog implementations run on the JVM platform. Wikipedia lists 5 of them here: http://en.wikipedia.org/wiki/Comparison_of_Prolog_implementations . Therefore, perhaps the easiest solution is to train someone on your team at Prolog and simply port the application to the JVM Prolog implementation. (What could be a simple thing ...)

Someone on your team will probably need Prolog skills anyway to successfully translate Prolog into another language.


However, I acknowledge that there may be other reasons for the transfer; for example, if the existing Prolog code needs major repairs in any case.

+5
source

. , Java; ?

LISP, . LISP - , .

Clojure (- ), , Java - , .

+2

Clojure core.logic (tutorial), miniKanren. / , JVM.

+2

The prologue is so different from Java and another object-oriented language. I learned this language to see a different way of programming. But I don’t think there is a magic solution for converting prolog to java application. The logic is not the same, and no other language is like Prolog. I think you will have to analyze what your prolog application does, and switch from the application with a new java application.

-2
source

All Articles