I wonder, why there are no new OCaml books since 2014 year? Many books are published on Haskell, Scala, F# themes, but no OCaml. I think we need new books for learning and for rising interest in our beautiful language.
- There is an ongoing work for 2nd edition of Real World OCaml: http://dev.realworldocaml.org/.
- OCaml Scientific Computing is also ongoing: https://ocaml.xyz/book/.
- A Japanese book “コンピュータを操る”, published in Feb. 2020 for beginners of programming, uses OCaml Blockly: https://www.saiensu.co.jp/search/?isbn=978-4-7819-1470-1&y=2020#detail.
Beautiful!! Many Thanks for information!
A Chinese book OCaml语言编程基础教程 (an introduction to OCaml language programming) is published in 2018.
I’m working on a free culture book. The preview is at https://ocaml-book.baturin.org and the source is at https://github.com/dmbaturin/ocaml-book
It’s under CC-BY-SA so it belongs to the community—it can be a living document that people can keep up to date even if original authors abandon it. It’s also supposed to be a collaborative project, but almost no one is collaborating so far.
I’m also working on a free culture book. The preview is at https://damien-guichard.developpez.com/downloads/Algorithmic-with-OCaml.pdf
It’s under CC-BY-SA.
Planned chapters includes : Records, Type polymorphism, Modules as functions, Conceptual graphs.
The reason why i don’t contribute to @dmbaturin’s effort is that my main topic is algorithmic, ocaml is more a good way than a goal.
That link is asking me to authenticate.
No need to justify yourself. The more good books and views there are, the better.
Sorry, you have to be a member of https://www.developpez.com/ to access this link.
Here is my 2nd try. I hope you don’t need to be a member of https://www.aeriesguard.com/ this time.
what about a way to submit leetcode solutions in ocaml?
I’ve been wanting this and I have some ideas to pull some libraries together.
This works, thanks.
Where should I post suggestion/bugs to this?
I would say it’s just an early draft, more debate will come when i have more content to offer.
Just chiming into the conversation to ask what is the ideal book/tutorial to get into OCaml? I am a data scientist which means that I do code at work (we use scala, python and I have experience with C++) but of course I am not a software engineer. I have seen that book that might interest me [ANN] Draft of OCaml Scientific Computing book
Also, is the book by Mr Leroy and Weiss still useful today? (https://caml.inria.fr/pub/distrib/books/llc.pdf) (I mean, has the syntax/language not changed too dramatically? )
Maybe I could read that one (I can read french) and have another resource for more “modern” syntax (if it has evolved). Which one?
You might like this:
And of course Real World OCaml, mentioned in comments above.
There is also an updated version of the Cornell course material online. The new version has embedded video lectures in most (all?) chapters and you can submit changes via github.
The language has not changed much. There are some extensions and new features, but programs from 15 years ago are usually still compiling.
I do not think there is a great book for tooling though, from what I remember, real world ocaml was not completely up to date on the subject, and le language caml will probably be even worse
Introduction to Objective Caml by Jason Hickey is my fav introductory book on OCaml!