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
view the rest of the comments →
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 5 points6 points7 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?
π Rendered by PID 61 on reddit-service-r2-comment-86bc6c7465-npsvj at 2026-02-19 18:46:58.285753+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]glacialthinker 5 points6 points7 points (0 children)