Prolog: a compiled or interpreted language or both? -


there compilers prolog other websites language interpreted language. i'm confused if prolog interpreted language. can please clarify if language is? compiled language or interpreted language?

to answer lets nail down definitions.

a compiled language 1 converts source code files form (binary, byte code, etc.) standalone execution or library linking other programs. constructs fixed , cannot amended.

an interpreted language 1 converts construct form can executed after conversion. each converted construct typically put store can referenced later constructs.

now many programming languages can both compiled , interpreted, there no rule says programming language can 1 or other.

in days programming languages 1 or other, e.g. c++ - compiled, basic - interpreted.

now answer question:

prolog: compiled or interpreted language or both?

the prolog language can compiled , can interpreted answer both.

the reason seeing different answers different sites asking language, think of prolog language abstract concept, looking @ specific implementations, think of sites referring concrete implementation. entities 1 or other , both.

in last several years, in opinion, consensus becoming if have main stay programming language has have compiler generate efficient code , repl uses interpreter quick development of constructs.

typically trend develop , test basic programming constructs using repl , move them source code files compiled build libraries. libraries referenced repl; rinse , repeat.

interestingly prolog first language used had both, , in 1980's.

if read iso/iec 13211 information technology -- programming languages -- prolog -- part 1: general core states:

the language originates work in 1970s robert a. kowalski while @ edinburgh university (and ever since @ imperial college, london) , alain colmerauer @ university of aix-marseilles in france. efforts led in 1972 use of formal logic basis programming language. kowalski’s research provided theoretical framework, while colmerauer’s gave rise programming language prolog. colmerauer , team built first interpreter, , david warren @ ai department, university of edinburgh, produced first compiler.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -