Re:Ask HN: Data-Oriented programming vs. Functional programming
by viebel on Friday March 12, 2021 @10:00AM
(#26436475)
You are referring to Data-Oriented design, while I am referring to Data-Oriented programming
https://blog.klipse.tech/visualization/2021/02/16/data-relat...
Re:Ask HN: Data-Oriented programming vs. Functional programming
by karmakaze on Friday March 12, 2021 @10:30AM
(#26436833)
Useful:
> Data-oriented design => Increase performance via Data layout
> Data-driven programming => Increase clarity via Behaviour described by data
> Data-oriented programming => via Reduce complexity via Data representation
Re:Ask HN: Data-Oriented programming vs. Functional programming
by hctaw on Friday March 12, 2021 @10:06AM
(#26436559)
Perhaps pick a better name that isn't confusing. In industry what your definition refers to is called "generic programming" if I understand correctly.
Re:Ask HN: Data-Oriented programming vs. Functional programming
by viebel on Friday March 12, 2021 @10:16AM
(#26436670)
I didn't choose the term "Data-Oriented programming"
It was used by Cognitect folks to promote clojure [1] and actually it was coined by Eugene Kutznetsov in 2004 [2]
As you know, naming is one of the two hard things in programming.
[1]: https://www.cognitect.com/blog/2016/6/28/the-new-normal-data... [2]: https://adtmag.com/articles/2004/08/05/data-integration-a-li...
DO as I understand it is about recognizing how data is actually laid out and interacted with by a processor, as opposed to meaningful abstract relationships to a programmer. It's about breaking down costly abstractions, rather than ignoring the cost of higher level abstractions.
DO exists primarily in opposition to OO, not FP. The classic example is the array of structs to struct of arrays (OO to DO transformation).