Are there native compilers for functional programming languages

Joel Spolsky praised the internal code versions of programs that are not run-time dependent.

What compilers for native code are available for functional languages?

+3
source share
4 answers

This message is really obscure. The question arises: "Are there compilers for functional languages ​​that can create their own executable files without the need to install additional software?"

, , . , Haskell , . .

+10

, :

ocamlc - -, ocamlopt - . GCL Common Lisp .

F #, , ,.NET , . , CSML # ocaml, , . , , .

+6

, .

, Clojure:

, , .. , . , REPL, .

+4

PLT JIT.

Stalin - , .

All common Lisp implementations that I know about, except CLISP, compile into native code. (Whether CL should be considered a functional language, however, depends on what is meant by the term “functional.”)

MLton is a highly optimizing compiler for standard ML.

Functional languages ​​can be and for some time been compiled very efficiently. In this regard, there is no difference with imperative languages.

+1
source

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


All Articles