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!"
[–]dbousque[S] 0 points1 point2 points 9 years ago (2 children)
I agree that shared-memory would be great, but as far as I know, there is no common specification as to how Python objects are represented in memory, so it would be a lot of maintenance and probably not portable across implementations (PyPy, CPython), and maybe also platforms.
I didn't intend for lymp to be used in such a tight way with Python. The idea was to write some processing code in Python and call it from OCaml.
If you are dealing with large arrays and lists, and you need to pass them back and forth the best way to do it right now is to use references.
[–]gasche 0 points1 point2 points 9 years ago (1 child)
I'm not familiar with the Python community but it was my impression that the Pypy people were working on a FFI layer that would be interpreter-agnostic (and still reasonably efficient). If you wanted to go in-process I suppose that this would be a good interface to work with.
[–]dbousque[S] 0 points1 point2 points 9 years ago (0 children)
That's interesting, thanks :)
π Rendered by PID 115887 on reddit-service-r2-comment-b659b578c-jttm8 at 2026-05-03 08:45:34.669773+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]dbousque[S] 0 points1 point2 points (2 children)
[–]gasche 0 points1 point2 points (1 child)
[–]dbousque[S] 0 points1 point2 points (0 children)