Joel Spolsky praised native-code versions of programs that have no dependencies on runtimes.
What native-code compilers are available for functional languages?
Functional programming has many advantages, such as: Functional program code is bug-free or less error-prone code because the functional program is stateless and there are no side effects. The advantage of this is that the function doesn't then change anything outside the function.
Functional programming is less popular because no major successful platform has adopted a functional language as the preferred language. I don't buy that functional languages are unpopular because they are unintuitive. Losts of stuff in JavaScript is highly unintuitive.
As one of the purest functional programming languages, Haskell has reportedly led many developers to transform the way they approach programming in general and helped improve their overall abilities as programmers.
Different languages have different compilers. Compiler is written in some other language not every time, for java the compiler is written in C.
This post is really quite unclear. The question appears to be "Are there compilers for functional languages which can produce native executables without the need to install additional software?"
The answer, generally, is yes. For example, Haskell has a compiler that produces native binaries. Many other functional languages have similar compilers.
Yeah, also:
ocamlc
is the bytecode compiler, and ocamlopt
is the native code compiler.
GCL
compiles Common Lisp to native binaries.
There isn't anything for F# since, for what I am aware of, .NET doesn't have a native compiler, like Joel mentions. Actually, CSML can be used to call C# from ocaml, uhh, not sure if you can compile this down to native code --it doesn't seem likely-- although the documentation alludes to it, yet it is very incomplete.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With