News for hackers. Stuff that matters.
Re:Cube.js: Headless Semantic Layer by jayatid on Monday May 01, 2023 @03:42PM (#35778078)
It is kind of like an ORM. I find ORM's and semantic layers to be similar in many ways, except that semantic layers are meant for defining metrics too. These metrics describe aggregating data. Like summing order amounts to get revenue, or counting order_ids to get sales.

I wrote a series on semantic layers on my substack, hopefully it helps: https://davidsj.substack.com/p/semantic-superiority-part-1

Re:Cube.js: Headless Semantic Layer by igorlukanin on Monday May 01, 2023 @04:20PM (#35778594)
I think ORMs have got some bad press because they were intended to be used bi-directionally: map data from the data source to business objects and back. With semantic layers, data is only mapped to metrics and rarely back - which makes things much simpler, IMO.