About Ibexlang
IbexEngine is an alternative execution engine for Polars, using an approach similar to cuDF's. Write a lazy Polars pipeline, collect() them with the IbexEngine() and get a Polars DataFrame: from ibex_polars import IbexEngine df = query.collect(engine=IbexEngine()) # df: pl.DataFrame The results below are against Polars 2.2 streaming: - h2o groupby: 2.2x faster on 1 core, 1.6x on 8 - PDS-H SF-10: 5–8% faster (total 6.53s vs 6.83s on 8 cores) - h2o joins: 27% faster on 1 core, 13% slower on 8 Of 3,519 queries from Polars' test suite, 2,320 match Polars exactly. The remaining 1,199 are rejected. Ibex doesn't support columns containing lists and supports a smaller number of int types, forcing most of the refusals. In practice, this shouldn't matter too much. Unsupported plans raise NotImplementedError before query execution so you don't waste time with late runtime errors. For a quick start: try: df = query.collect(engine=IbexEngine()) except NotImplementedError: df = query.collect(engine="streaming") Caveats: experimental, single person, LLM's, and pinned to exactly Polars 2.2.0 because it uses Polars' internal plan format. Wheels for Linux, Windows and macOS: pip install ibex-polars...
Shared on Hacker News “Show HN” by Bootvis.
Comments 0
No comments yet. Be the first to say something nice.