OCaml Programming Language Help For Students

Introduction to OCaml 

OCaml is known as Objective Caml is the main implementation of the Caml programming language. It is designed with program safety and reliability in mind. It is very expressive, yet easy to learn and use. Caml supports functional, imperative, and object-oriented programming styles. It has been developed and distributed by INRIA, a French research institute in computer science and applied mathematics, since 1985.

Example: Hello World!

 print_endline "Hello World!"
can be compiled into a bytecode executable:
$ ocamlc hello.ml -o hello
or compiled into an optimized native-code executable:
$ ocamlopt hello.ml -o hello
and executed:
$ ./hello
Hello World!


Compiler Download

To get started, see Download and install OCaml and follow the instructions.