home.social

#queryengine — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #queryengine, aggregated by home.social.

  1. Show HN: Ibex a C++ engine for Polars and standalone DSL ibexlang.org · 10 points · 6 comments · HN thread

    TL;DR Ibex, an experimental C++ query engine by a single developer, is presented as an alternative execution engine for Polars 2.2.0 via the ibex-polars package: users select it with collect(engine=IbexEngine()) and get a regular Polars DataFrame back. The page reports mixed benchmarks, with large gains on h2o groupby, near parity on PDS-H, and slower results on several joins at eight cores; it also covers the standalone Ibex DSL.

    • IbexEngine replaces Polars' execution step while Polars still builds and optimizes the plan; the query code itself does not change.
    • h2o groupby is 0.62x Polars streaming time on 8 cores and 0.45x on 1 core (geometric means); h2o joins are 1.13x on 8 cores and 0.79x on 1 core.
    • PDS-H SF10 is roughly level: 0.95x on 8 cores, 0.92x on 1 core, with total 6.53s vs 6.83s on 8 cores as quoted in the post.
    • Of 3,519 Polars test-suite queries, 2,320 match exactly; the rest are rejected, mostly because list columns and some integer types are unsupported. Unsupported plans raise NotImplementedError before execution.
    • Pinned to exactly Polars 2.2.0 because it reads Polars' internal plan format; wheels are available for Linux x86_64, Windows x86_64 and macOS on Apple silicon, Python 3.11–3.14.
    • The project is described as experimental, built by one person with LLM help, and licensed Apache 2.0.

    Discussion The thread is small, with a single top-level question from a pandas/scipy user asking what Ibex offers over those tools and how it compares to numpy, followed by the author's replies and a sharp critique of the benchmark presentation. The mood is skeptical but civil: the author admits results are workload-dependent and that numpy has not been compared yet, while a commenter argues that relative speedups like '2x' are meaningless without absolute throughput, data size and cache context.

    • Ibex's main draw is simpler bare-column syntax (some): The author explains the standalone DSL exists to avoid quoting column names and to be more compact than Polars, pandas or SQL while being more readable than APL, J or K. The pitch is ergonomics first, speed second.
    • Benchmarks as shown are hard to interpret (some): A commenter argues that ratios like 2x or 50x can hide performance cliffs in the competitor and that the page should report data size, selectivity and absolute timings or throughput.
    • Performance is good but workload-dependent (some): The author says Ibex is among the faster options for in-memory tasks up to 8 cores on the suites they tried, but warns that results vary and that they avoid over-optimistic framing.
    • Unclear advantage over numpy and pandas (a few): A pandas and scipy user asks what the practical benefit is and how it compares to numpy. No direct numpy comparison has been published yet, so this question remains open in the thread.

    Links from the comments

    #Polars #C #dataframes #queryEngine #benchmarks #ShowHN

Share on Mastodon

Enter the server where you have an account.