Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    C

    Cube Blog

    cube.dev · Company blog · on HN since 2019

    The company blog of Cube, an open-source semantic layer and analytics framework, covering headless BI, AI interfaces, and data tooling.

    Visit blogHN submissions
    Data & VisualizationDatabasesAI & Machine Learning
    What HN says

    HN commenters recommend a semantic layer such as Cube for giving LLMs reliable context, and one team uses it between its warehouse and Superset.

    Stats for nerds
    37HN people shared it
    30linked in comments
    184story points
    Dec 2025last shared
    2021people per year2025

    Top posts on HN

    1. 1
      DeWitt Clause, or can you benchmark %database% and get away with it
      5 people · 116 points · first shared 2022 · 84 comments on HN
    2. 2
      Cube.js – Open-Source Analytics Framework
      13 people · 26 points · first shared 2019 · 2 comments on HN
    3. 3
      AI-powered conversational interface for the semantic layer
      2 people · 3 points · first shared 2023 · Discussion on HN
    4. 4
      Time Series Data Analytics with QuestDB and Cube
      1 person · 3 points · first shared 2022 · Discussion on HN
    5. 5
      React Visualization Libraries in 2019
      1 person · 3 points · first shared 2019 · Discussion on HN
    6. 6
      Open Source Looker Alternative with Cube and Superset
      1 person · 3 points · first shared 2022 · Discussion on HN
    7. 7
      The Semantic Layer is key for streamlining dev of high-quality AI apps
      2 people · 2 points · first shared 2023 · Discussion on HN
    8. 8
      What Is Headless BI?
      2 people · 2 points · first shared 2022 · Discussion on HN
    9. 9
      Open-source analytics with Angular and ECharts
      1 person · 2 points · first shared 2022 · Discussion on HN
    10. 10
      Cube integrates with LangChain, so you don't need to write SQL anymore
      1 person · 2 points · first shared 2023 · Discussion on HN

    What HN people wrote when they linked it

    • carlinengSep 2022

      Nope, those are the primary components of a semantic layer. Most other semantic layer products have three main components: input data sources -- typically SQL queries or table names, configuration -- the semantic layer describing all the things you mention above, relative to the input data sources, and the access layer -- usually a non-SQL API that consumers must use to consume data that has been modeled by the semantic layer. Check out the docs for Cube [1] for an example of this. Cube also has a SQL API, but it's not fully fleshed out yet.

      What makes Malloy shine is that all 3 of these things are integrated in the same language, so users don't have to jump between different tools to model and explore their data. You can query/explore data in Malloy, iterate on functions to express your business logic, and immediately view the results. Doing this in something like Cube would require you to: (1) write SQL queries to prototype the function, (2) update the Cube configuration files with your changes, and (3) hit the REST API with a request to view results. In Malloy, it's all just writing and running Malloy queries.

      [1]: https://cube.dev/docs/query-format

    • reOct 2023

      Found the term: https://cloud.google.com/terms/service-terms

      > 7. Benchmarking. Customer may conduct benchmark tests of the Services (each a "Test"). Customer may only publicly disclose the results of such Tests if (a) the public disclosure includes all necessary information to replicate the Tests, and (b) Customer allows Google to conduct benchmark tests of Customer's publicly available products or services and publicly disclose the results of such tests. Notwithstanding the foregoing, Customer may not do either of the following on behalf of a hyperscale public cloud provider without Google's prior written consent: (i) conduct (directly or through a third party) any Test or (ii) disclose the results of any such Test.

      It looks like that is less restrictive than it used to be. I found a blog post from last year mentioning an additional requirement to obtain Google's prior written consent prior to publishing (for all customers, not just fellow cloud providers) which no longer is included. https://cube.dev/blog/dewitt-clause-or-can-you-benchmark-a-database

    • articsputnikAug 2025

      From the article:

      > There's a lot of information out there, including from myself about the history and rise [2022], comparing it to an MVC-like approach, or explaining its capabilities. That's why in this article I focus on the why and showcase how to use it in a practical example in the next chapter.

      [1] https://www.ssp.sh/blog/rise-of-semantic-layer-metrics/ [2] https://cube.dev/blog/exploring-the-semantic-layer-through-the-lens-of-mvc [3] https://cube.dev/blog/universal-semantic-layer-capabilities-integrations-and-enterprise-benefits

      My one line definition that I use atm:

      > A semantic layer acts as an intermediary, translating complex data into understandable user business concepts. It bridges the gap between raw data in databases (such as sales data with various attributes) and actionable insights (such as revenue per store or popular brands). This layer helps business users access and interpret data using familiar terms without needing deep technical knowledge. https://www.ssp.sh/brain/semantic-layer#semantic-layer-definition

      Edit: I'm the OP.

    • mritchie712May 2025

      the short answer: use a semantic layer.

      It's the cleanest way to give the right context and the best place to pull a human in the loop.

      A human can validate and create all important metrics (e.g. what does "monthly active users" really mean) then an LLM can use that metric definition whenever asked for MAU.

      With a semantic layer, you get the added benefit of writing queries in JSON instead of raw SQL. LLM's are much more consistent at writing a small JSON vs. hundreds of lines of SQL.

      We[0] use cube[1] for this. It's the best open source semantic layer, but there's a couple closed source options too.

      My last company wrote a post on this in 2021[2]. Looks like the acquirer stopped paying for the blog hosting, but the HN post is still up.

      0 - https://www.definite.app/

      1 - https://cube.dev/

      2 - https://news.ycombinator.com/item?id=25930190

    • izydaApr 2024

      There is a new approach of using static site generators to make BI pages feel instantly responsive.

      - Evidence.dev (https://evidence.dev/) - Observable Framework (https://observablehq.com/framework/)

      I have found that both the speed and the frontend control either of these tools gives you is pretty good (with Evidence looking better out-of-the-box just in my personal opinion).

      The main problem I always had with the embedded versions of Tableau, Looker, etc. is that they felt super canned (it was obvious it was a poorly/"lightly" white labeled solution -- when you see an embedded Tableau dashboard, you _know_ it is Tableau, etc) and they were slow.

      More on this here: https://magis.substack.com/p/an-observation-on-dashboard-speed

      PS -- I would add that the "headless" version of the above tools that I have seen is https://cube.dev/

    • mjirvSep 2023

      Yeah, similar to what you and the other commenter from Definite said, we (Delphi)[0] find semantic layers way better for this kind of work than just going straight to a database/data warehouse.

      One thing you really need with LLMs is consistency. Text-to-SQL kind of lets the LLM do whatever it wants - join tables that shouldn't be joined, define aggregates one way in one query and another way in the next.

      Because semantic layers define how tables should join, measure definitions, etc., they mean people get consistent results from one query to the next, which builds trust in the LLM.

      Cube (which was mentioned in another comment and has a great open-source semantic layer) has a good article about that here: https://cube.dev/blog/semantic-layer-the-backbone-of-ai-powered-data-experiences.

      [0] https://delphihq.com

    Related

    ClickHouse Blogclickhouse.com281 people

    28M Hacker News comments as vector embedding search dataset

    ClickHouse Blog
    Company · last shared 2026
    Square Developer Blogdeveloper.squareup.com47 people

    RBS, Ruby’s new type signature language

    Square Developer Blog
    Company · last shared 2026
    Snowflake Engineering Blogmedium.com/snowflake17 people

    CrystalCosts: A cost monitoring AI agent for Snowflake

    Snowflake Engineering Blog
    Company · last shared 2025
    Codeship Blogblog.codeship.com138 people

    Crystal: Fast as C, Slick as Ruby

    Codeship Blog
    Company · last shared 2020
    Microsoft Blogblogs.microsoft.com669 people

    Announcing SQL Server on Linux

    Microsoft Blog
    Company · last shared 2026
    Uber Engineering Blogeng.uber.com525 people

    Why Uber Engineering Switched from Postgres to MySQL

    Uber Engineering Blog
    Company · last shared 2025
    Sourcegraph Blogabout.sourcegraph.com156 people

    An ex-Googler’s guide to dev tools

    Sourcegraph Blog
    Company · last shared 2024
    Graphite Bloggraphite.dev76 people

    Stacked changes: how FB and Google engineers stay unblocked and ship faster

    Graphite Blog
    Company · last shared 2026