logoalt Hacker News

Bootvis • today at 8:33 PM • 0 replies • view on HN

I originally built this with just the idea of providing a simpler syntax than can be provided in a host language. When writing code with libraries like Polars or pandas, you have to write valid Python. This forces you to put quotes around every column name for example. With Ibex you can just write bare column names, from the website:

    ibex> ticks[select { avg_price = mean(price), traded = sum(volume) }, by symbol, order { avg_price desc }];
I strived to be more compact and easier to write than Polars/pandas and SQL but more readable than APL/J/K.

Early on, I just wanted it to be somewhat fast, by picking reasonable data structures and writing it in C++ I sort of got there but I soon realised there was more to be gained. Coding agents became quite good at optimisation as well, so the last couple of months I have been squeezing out performance. I think this was quite successful, for in memory tasks and up to 8 cores Ibex turned out to be one of the speedier options. I have an overview[1] but I didn’t want to lead with it because these are homegrown, Ibex is particularly well adjusted to what I found interesting and added, and honest benchmarking isn’t easy and I don’t want to give an overly optimistic picture. I haven’t compared to numpy yet because I focus on tables, doing something interesting with matrices is in the pipeline and then I will compare against numpy as well. So to answer your question: Ibex is fast for many workloads but YMMV.

[1]: https://ibexlang.org/benchmarks.html