Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Functional Programming in Commercial Software
Which problems domains are more suited to functional programming solutions

I just wonder where do functional programming languages are used? Might be some good examples? Like rocket science or telecommunications?

share|improve this question

marked as duplicate by Péter Török, Yannis May 4 '12 at 11:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

In your spreadsheet application, for example. Or in your XSLT processor. Or in your C++ templates. – SK-logic May 4 '12 at 11:41

Well, here's a list of projects using Erlang:

The world doesn't revolve around building apps for tablets and mobile phones ;)

Usually functional languages are used when there is a need for a very high degree of abstraction, parallelism and scalability. This doesn't mean you cannot write code with these properties using any other language (non-functional), but the absence of side-effects on a purely functional language helps in these scenarios.

Erlang is a great example of this, since it was built from scratch to address problems that were "embarrassingly parelizable".

Also, even a language like Javascript can be used in a purely functional form, although it does let you mess up that model quite badly.

There is also Scala, that lets you program in a mix between functional (the preferred way), and procedural style. Scala is used, for instance, on the Twitter middleware layer to handle the absurd level of concurrency that they deal with.

share|improve this answer
The world doesn't revolve around building apps for tablets and mobile phones - yea, that's why I am asking :) – Jevgeni Smirnov May 4 '12 at 11:49
My personal favorite usage of Functional languages is simply to force you to think in another paradigm. I usually code in Java and Python, but I like playing around with Erlang and Scala a lot. It helps you look at problems in a new way, even in other languages. – pcalcao May 4 '12 at 11:59
  • Jane Street uses OCaml for trading.

  • Since the functional programming language ML was created for theorm proving: automated theorm proving and proof assistants

  • While it is not required, it is common to find AI programs written in functional langauges.

  • Writing games for the XBOX.

share|improve this answer
Thanks for expanding your answer! – Yannis May 4 '12 at 12:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.