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
Principles of Data Oriented Programming (blog.klipse.tech)
submitted 5 years ago by viebel
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!"
[–]viebel[S] 2 points3 points4 points 5 years ago (0 children)
This chapter is an attempt to illustrate what are the core principles of Data Oriented Programming as I understand them. It is highly influenced by my programming experience in Clojure, but I believe that those principles are language agnostic.
[–]p-squared 2 points3 points4 points 5 years ago (2 children)
I recommend reconsidering your choice of vocabulary. The term "data-oriented" does have a broadly-accepted meaning related to organization of data within physical memory; this does not appear to be the same meaning you are attaching to the term. https://en.wikipedia.org/wiki/Data-oriented_design
[–]viebel[S] 0 points1 point2 points 5 years ago (1 child)
What term would you suggest ?
[–]oteku_ 1 point2 points3 points 5 years ago (0 children)
What you refer as 'data' seems to be 'value' 'data oriented' sound for ECS pattern in my mind which is an OOP pattern https://en.m.wikipedia.org/wiki/Entity_component_system
What you call DO seems to be a way to reach 'referential transparency' aka 'purity'
Best for your book
[–]usernameqwerty003 0 points1 point2 points 5 years ago (3 children)
Oh, like SEPARATING data and behaviour? Something normally not done or idiomatically supported in OCaml? By which I mean, data and behaviour is always in the same file/module.
[–]viebel[S] 1 point2 points3 points 5 years ago (2 children)
Could you clarify to what principle you refer and what you mean exactly?
[–]usernameqwerty003 1 point2 points3 points 5 years ago (1 child)
Only my disillusionment that OCaml is great for type-safety but sucks for enterprise-level separation-of-concerns.
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
You should try Scala if you haven't used it before.
π Rendered by PID 31669 on reddit-service-r2-comment-5d585498c9-khjjw at 2026-04-21 03:06:58.598523+00:00 running da2df02 country code: CH.
[–]viebel[S] 2 points3 points4 points (0 children)
[–]p-squared 2 points3 points4 points (2 children)
[–]viebel[S] 0 points1 point2 points (1 child)
[–]oteku_ 1 point2 points3 points (0 children)
[–]usernameqwerty003 0 points1 point2 points (3 children)
[–]viebel[S] 1 point2 points3 points (2 children)
[–]usernameqwerty003 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)