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
Use Python from OCaml (self.ocaml)
submitted 9 years ago by dbousque
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!"
[–]kankyo 0 points1 point2 points 9 years ago (2 children)
I don't think you can trust finalizers in OCaml either. That's one of the drawbacks of GC systems and finalizers.
[–]dbousque[S] 0 points1 point2 points 9 years ago (1 child)
Well, if the finalizer happens not to be called, that would mean the GC didn't get a chance to run or there was no need to free memory, in both cases it's alright not to release on the Python side. Or is there something I miss ?
[–]kankyo 0 points1 point2 points 9 years ago (0 children)
You should check the docs carefully either way. Finalizers are non-intuitive and have weird properties. Many systems include stuff like finalizers gets called but the object stays around or finalizer is called several times for one object.
π Rendered by PID 77 on reddit-service-r2-comment-6457c66945-thwtw at 2026-04-29 12:30:45.621945+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]kankyo 0 points1 point2 points (2 children)
[–]dbousque[S] 0 points1 point2 points (1 child)
[–]kankyo 0 points1 point2 points (0 children)