OCaml is an actively used programming language created in 1996. OCaml ( oh-KAM-əl), originally named Objective Caml, is the main implementation of the programming language Caml, created by Xavier Leroy, Jérôme Vouillon, Damien Doligez, Didier Rémy, Ascánder Suárez and others in 1996. A member of the ML language family, OCaml extends the core Caml language with object-oriented programming constructs. OCaml's toolset includes an interactive top-level interpreter, a bytecode compiler, a reversible debugger, a package manager (OPAM), and an optimizing native code compiler. Read more on Wikipedia...
- OCaml ranks in the top 5% of languages
- the OCaml website
- the OCaml wikipedia page
- OCaml first appeared in 1996
- file extensions for OCaml include ml, mli, eliom, eliomi, ml4, mll and mly
- tryitonline has an online OCaml repl
- I have 135 facts about OCaml. what would you like to know? email me and let me know how I can help.
Example code from the Hello World Collection:
(* Hello World in OCaml *) print_string "Hello World!\n";;
Example code from Linguist:
(* * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) let string_of format v = let buf = Buffer.create 100 in let fmt = Format.formatter_of_buffer buf in begin format fmt v; Format.pp_print_flush fmt (); Buffer.contents buf end
Example code from Wikipedia:
fun x_1 -> (x_1 * let y_3 = let y_2 = (x_1 * 1) in (y_2 * y_2) in (y_3 * y_3))
Last updated July 8th, 2019