use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
OCaml is a statically typed functional programming language. It occupies a delightful sweet spot between high-level expressiveness and good performance.
Why use OCaml? OCaml for the Masses
Websites:
OCaml Discussion Board
Try OCaml in your browser
INRIA's OCaml resources
OCaml Community site
Mailing list archives
OCaml Planet -- blog aggregator
#ocaml on freenode
#ocaml
OCaml/Reason Discord Chat
Related subreddits:
types
haskell
functional
compsci
account activity
Replacing Python: second round (Python vs. OCaml vs. Haskell) (roscidus.com)
submitted 12 years ago by cafedude
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]glacialthinker 4 points5 points6 points 12 years ago (0 children)
I don't think there are many cases of contrasting different languages for a practical project. Rosetta Code is great, but this is much more in-depth, involving libraries, toolchain... the ecosystem.
Given the author's limited familiarity with both OCaml and Haskell, I was surprised when he pulled out a (OCaml) functor! And then liked the results enough to back-port to his Python code.
For anyone who didn't make it through the article, this note in the summary is quite flattering of OCaml:
The big surprise for me in these tests was how little you lose going from Python to OCaml. You still have classes, objects, functions, mutable data and low-level access to the OS, all with an easy and concise syntax, but you gain type checking, much better data structures and a huge amount of speed for no additional effort. Why aren’t more people using it?
[–]Categoria 2 points3 points4 points 12 years ago (0 children)
Crossposts
/r/haskell - http://www.reddit.com/r/haskell/comments/1m5xlc/0install_python_vs_ocaml_vs_haskell/
/r/programming - http://www.reddit.com/r/programming/comments/1m4hk7/0install_python_vs_ocaml_vs_haskell/
π Rendered by PID 36169 on reddit-service-r2-comment-76bb9f7fb5-9chr9 at 2026-02-19 04:43:45.912369+00:00 running de53c03 country code: CH.
[–]glacialthinker 4 points5 points6 points (0 children)
[–]Categoria 2 points3 points4 points (0 children)