📎 Webclip
OCaml for the Skeptical
OCaml is presented as the latest version of the Caml line, with a strongly typed object system and type inference. The page also notes that OCaml differs from Standard ML mainly in libraries, objects, and modules, and points readers to installation, documentation, books, tutorials, and community lists.
Reading notes#
- OCaml is described as a dialect of ML, whose origins go back to theorem proving work in the LCF project at Edinburgh and earlier influences from Algol and Lisp through ISWIM.
- ML development is traced through Edinburgh, Stanford, AT&T Bell Labs, INRIA in France as Caml, and Chalmers in Sweden as Lazy ML.
- The original ML line became Standard ML, with implementations such as Standard ML of New Jersey, MLton, and Moscow ML.
- Lazy ML influenced Haskell and is no longer actively developed.
- Caml development continues at INRIA.
- The page distinguishes three Caml languages: Caml, Caml Light or Caml Special Light, and Objective Caml or OCaml.
- Caml Light is described as a precursor to OCaml and nearly the same except for the object system.
- OCaml is identified as the newest version of the language and as the first to add a strongly typed object system with type inference.
- The page advises installing and using OCaml rather than the earlier Caml versions.
- Standard ML and OCaml are said to differ only slightly in syntax, while their most important differences lie in libraries, OCaml’s object system, and the module system.
- OCaml is reported as installed on merlot.lib, available in FreeBSD ports, NetBSD packages, Linux RPMs, and as binaries from INRIA.
- The page says OCaml is free software and can be built from source on most Unix systems, including MacOS X.
- The Caml Humps is recommended as a one-stop site for third-party OCaml libraries, with a separate hint for beginners to use the Caml Light / OCaml Hump.
- The official OCaml User’s Manual is listed with sections for introduction, the language, the core library, and the standard library.
- Three books are highlighted: Developing Applications With Objective Caml, The Functional Approach to Programming, and The Little MLer, each with brief evaluative comments.
- The page says Standard ML books are also usable by OCaml programmers after learning OCaml from an OCaml book.
- Several tutorials are recommended, with a suggested order and brief notes on each one’s scope and style.
- The official OCaml mailing list, archives, a beginners’ list, and Usenet groups such as comp.lang.ml and comp.lang.functional are listed as discussion venues.
