by krat0sprakhar · 10y ago · 0 comments
- OCamlbuild is the bee's knees. Configuring complex projects requires just one line in the Makefile
- OPAM works wonderfully. No configuration required. Everything just works.
- Merlin (https://github.com/the-lambda-church/merlin) is incredible. If you use Vim / Emacs, you owe it to yourself to set it up and have better syntax highlighting, indentation and type information right within your editor.
- Approachable online guides to get started. RWO[1] is a fantastic resource and teaches you the good parts right from the start.
- Utop (https://github.com/diml/utop) is a very modern, fully-featured REPL (almost as good as IPython)
----------
If you've been thinking of learning OCaml, here are a few useful resources -
- Real World OCaml [RWO] - https://realworldocaml.org/
- Using, Understanding, and Unraveling the OCaml Language - http://caml.inria.fr/pub/docs/u3-ocaml/index.html
- Developing applications with OCaml - http://caml.inria.fr/pub/docs/oreilly-book/html/index.html
- System programming in OCaml - https://ocaml.github.io/ocamlunix/ocamlunix.html
Lastly, if you are out of ideas on what to build with OCaml, try out these courses for some challenging programming assignments
- Functional Programming (Princeton) : http://www.cs.princeton.edu/~dpw/courses/cos326-12/info.php
- Programming Languages and Compilers (UIUC): https://courses.engr.illinois.edu/cs421/fa2014/
EDIT: Sorry, realized I replied to the wrong comment. Meant to reply to the grandparent.
Linux distro package managers are usually decent, but most of them are binary package managers and don't offer the same set of feature, so it's a bit different (and they are a fair bit older too).
For some reason, OPAM defaults to installing dependencies globally and does not provide an easy way to support different workflows
Is tackling real world projects also an option?
Or is serving a web site something that is going to make you so proud of having done it with OCaml that you'll submit it to HN?
(This reply might seem saracastic but it is actually meant seriously - as in, does it make sense to actually use it in production?)
Long answer: as with anything, it depends. Any programming language is well-suited for some programming tasks and awkward for others. Except Lisp.
Well ... with 50 shades of gray in between. You can do pretty much anything with Python f.x. But can you write a web service in Haskell without having to hire a team of computer science PhDs? Not so sure ... but luckily you're nephew will happily realize it with PHP during holidays for a couple of bucks :E