Description of the language

(From the official website)

Objective Caml belongs to the ML family of programming languages (see MlLanguage) and has been implemented at INRIA Rocquencourt within the "Cristal project" group. Since ML's inception in the late seventies, there has been a continuous line of research at INRIA devoted to implementations and improvements of ML. Objective Caml owes a lot to the original core ML language and to our first Caml implementation (1985-1990). A new byte-coded implementation called Caml Light was developed in the early nineties. The language Caml Light is still in use, especially for education. The language was renamed Objective Caml after the incorporation of a sophisticated module system and an object-oriented layer.

As all dialects of ML, Objective Caml possesses:

In addition, Objective Caml features:

The Objective Caml implementation comes with general purpose libraries (arbitrary precision arithmetics, multi-threading, a toolkit for graphical user interfaces, etc.) and a Unix-style programming environment including a replay debugger and a time profiler. Objective Caml programs can easily be interfaced with other languages, in particular with other C programs or libraries. The implementation is targeted towards separate compilation of stand-alone applications, although interactive use via a read-eval-print loop is also supported. Both compilation to byte-code (for portability) and to native assembly code (for performance) are supported. The native code compiler generates very efficient code (see Doug Bagley's Computer Languages Shootout for an extensive example http://www.bagley.org/~doug/shootout/craps.shtml), complemented by a fast, unobtrusive incremental garbage collector. The implementation runs on most Unix platforms (Linux, Digital Unix, Solaris, IRIX), under Windows 95 and NT, and on the Macintosh.

So what is Ocaml useful for ?

Since Objective Caml is a high-level general purpose programming language, it has a very wide range of applications, except where low-level programming is needed. For these needs, it can still call C functions and be called back from C.

Basically, wherever C++ or Java apply, Ocaml can handle the task, with the advantages that ML languages offer, that is safety, (very) high speed, functional languages' expressiveness, and great code clarity.

The Ocaml development environment includes :


See also CategoryLanguage, FunctionalLanguages, MultiParadigmLanguages, HighLevelLanguages,

http://www.ocaml.org

A personal view of an ObjectiveCaml programmer on the language in comparison with Standard ML (MlLanguage).

OcamlLanguage (last edited 2008-07-09 05:48:10 by localhost)