# 📊 Ibex: a C++ engine that runs Polars queries, with its gaps stated openly

All Today · published 2026-12-05T13:10:00Z · https://all-today.com/product/b8ff4430-8939-4b2d-8674-d49c94811678?lang=en

- 📊 Ibex is a DataFrame language with a C++ engine; existing Polars lazy queries run on it with one engine argument.
- ⏱️ According to the project page, faster in 42 of 50 cases on eight cores and 45 of 50 on one core.
- 🧪 Of 3,519 Polars test queries, 2,320 run with matching results and 1,199 are refused.
- ⚠️ No automatic fallback to Polars; pivots and list and struct columns are not supported yet.

Ibex is a typed language for table and time-series data with a C++ engine. According to the [project page](https://ibexlang.org/polars.html), existing Polars lazy queries can run on it with `collect(engine=IbexEngine())`. The plan first goes through Polars' own optimizer and is then computed in one native call. 📊 The page gives measurements: faster in 42 of 50 cases on eight cores and 45 of 50 on one core, but on only 11 of 22 PDS-H queries on eight cores. Of 3,519 test queries, 2,320 run with matching results; 1,199 are refused with an error.

**How it works.** A Polars lazy query first passes through Polars' own optimizer (predicate and projection pushdown, common-subplan elimination). A version-pinned adapter turns the result into a typed Ibex program; literals are passed as typed bindings, and `engine.explain(query)` prints the program. The whole query runs in a single native call on the C++ engine, with the GIL released, and returns a Polars DataFrame with Polars' dtypes, null semantics and row order.

**The project's measurements.** ⏱️ On eight cores Ibex is faster than Polars in 42 of 50 cases, according to the page, and on one core in 45 of 50. The query that groups by all six id columns is slower in both setups. Over the 22 PDS-H queries, summed medians on one core are 43.0 seconds against 47.7 seconds for Polars; on eight cores Ibex is faster on 11 of the 22. Small and medium inner joins are slower on eight cores, mostly in building the result. The focus is single-core throughput, and multi-core scaling is still being extended. The page says every benchmark answer is checked against Polars before it is timed.

**Limits.** ⚠️ There is no automatic fallback: when Ibex cannot translate a plan, it raises `NotImplementedError` before execution and names the construct. Of 3,519 queries from ten Polars test modules, 2,320 run with matching results, 1,199 are refused and none currently produces a different result. Float32 is computed in Float64, which can differ in edge cases. Pivots, list and struct columns and remote files are not supported yet, nor are Polars' `map_batches` and `map_elements`; Python functions go through `ibex_polars.udf` instead.

**Supported areas and standalone use.** The listed areas include equality and as-of joins, window functions with `over` and `order_by`, rolling sums, means, extrema and ranks, `group_by_dynamic` bars, quantiles, regex search, Datetime with time zones and local Parquet. Ibex also works without Polars: as its own language with compact query syntax, in Python or R notebooks, a web UI or a REPL, and with C++23 code generation for native programs. According to the [repository](https://github.com/bobjansen/Ibex) it is licensed under Apache-2.0; an install script covers Linux (x86_64) and macOS (Apple silicon), and a PowerShell script covers Windows.

## Sources

- [Ibex repository](https://github.com/bobjansen/Ibex)
- [Show HN thread](https://news.ycombinator.com/item?id=50776426)
- [Ibex home page](https://ibexlang.org/)
- [Running Polars queries on Ibex](https://ibexlang.org/polars.html)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
