Creating shared libraries Using languages โ€‹โ€‹other than C / C ++, in particular, the prologue

Is it possible to create shared libraries (e.g. *.so , *.dll ) using languages โ€‹โ€‹other than C or C ++?

What is the main requirement for creating a shared library? Is it that a language can be compiled into a native binary?

I am particularly interested to know if it is possible to create a shared library from Prolog.

eg. can I create .so using Prolog, which I could reference in another language, C, Java, Python, etc.

+4
source share
1 answer

You can create a shared library with several languages. I use Delphi regularly, which can create dlls for windows.

For Prolog, I'm not sure if you can create a shared library, it will require some kind of runtime environment if I started with GNU-Prolog. The problem is not as technical as licensing.

There are prologs that can be used as a shared library and are associated with your application, written in everything that may include a common library (most languages). A quick google included these http://www.swi-prolog.org/FAQ/ , http://www.gprolog.org/#platform

+1
source

Source: https://habr.com/ru/post/1437340/


All Articles