For those who do not know: strictly speaking, Ocsigen is not quite a framework. Ocsigen is a set of tools for creating effective web applications in the OCaml language, it includes both a web server and tools for working with streams, writing extensions to a web server, generating HTML and more. By the way, I note that this may seem incredible (and may not be very convenient for someone), but the generated HTML5 or XHTML is statically typed, and the validity of everything that your site can generate will be checked at compile time.

The image to attract attention - the rotating earth is entirely written in OCaml, and works entirely in the browser.
Well, yesterday there was a new version of this wonderful framework, and here is the information from the announcement of Vincent Balat (Vincent Balat):
Key features:
- Powerful tools for easy implementation of traditional web elements (links, forms, bookmarks, back button ...);
- Compiler from OCaml to Javascript for writing the client part of your programs;
- Integrated client-server programming in a single file, with automatic communication between the server and the client;
- Validation of HTML at compile time;
- A powerful mechanism for implementing sessions;
- Persistent client code: you can mix client features with traditional web interaction. The program does not stop when you click the link!
At the moment, the documentation is almost ready. We are currently working on adding missing parts and proofreading. The current version is available online, and in a few weeks we will post a more convenient version in the form of a PDF book. A good starting point for those interested is reading the
manual .
')
Ocsigen includes many software products (all opensource) that can be used independently:
- Ocsigen server: extensible web server;
- Eliom: OCaml web programming framework;
- Js_of_ocaml: OCaml bytecode compiler in Javascript;
- Lwt: library of consistently working threads (cooperative threads);
- Macaque: a library for type-safe database queries;
- O'Closure: bindings for using the Google Closure widget library;
- other. Full list of projects can be found here .
You can download Ocsigen on the official website:
ocsigen.org (it works, yes, on Ocsigen).
From myself I will add that not all the features of the new Ocsigen I have already managed to try, but client programming and compiling in Js is really cool.