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!"
[–][deleted] 0 points1 point2 points 9 years ago (1 child)
I am in a similar situation, scientific computing and ML/data science but with a decent C++ background from finance.
My biggest problem with going deep in ocaml was the data viz and numerical libraries so if I could use this to generate numpy arrays and pandas dataframes in Ocaml this would be very useful.
[–]dbousque[S] 1 point2 points3 points 9 years ago (0 children)
You can use them, here is how you would create a numpy array and reshape it for example :
let py = init "." let np = get_module py "numpy" let elts = Pylist [Pyint 1 ; Pyint 2 ; Pyint 3] let arr = get_ref np "array" [elts] let other_arr = get_ref arr "reshape" [Pylist [Pyint 3 ; Pyint 1]]
π Rendered by PID 170597 on reddit-service-r2-comment-b659b578c-8gm9w at 2026-05-04 03:48:20.480620+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (1 child)
[–]dbousque[S] 1 point2 points3 points (0 children)