Rendered at 15:15:06 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
yunnpp 19 hours ago [-]
As somebody who uses Pandas/scipy regularly, what is the advantage of using this and how does performance compare? Sounds like compiling the ibex script or whatever to C++ is the main feature, but what's the performance vs numpy?
Bootvis 19 hours ago [-]
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.
Why not a table with total data size, selection percentage and timing? Size per time? What is 2x supposed to mean
Bootvis 20 hours ago [-]
I don’t quite follow, would you like to see filter performance for various tables? I did those tests as well but for sharing I focus on 3rd party benchmark suites, those are harder to game.
2x faster => 50% runtime
ozgrakkurt 19 hours ago [-]
If polars has a performance cliff in some configuration of a query, then I can put vanilla datafusion against it and say it is 50x faster. There is no point in comparing them like this to each other.
If you said it can filter through 20GB of data in a second on a single thread, then that is really good regardless except if the computer has 400GB of ram then it matters if it was cached beforehand etc. It is just not easy to do benchmarks.
It is absurd that we are not even close to having this quality 6 years after these things were done and we even have tireless LLMs to use now. There is no excuse.
This kind of writing in the OP is not about knowledge or learning or technicality of something it is more like a tooth paste commercial on tv with some numbers on the side. AHH wait, those commercials also have the same numbers.
Bootvis 19 hours ago [-]
I invite you to have a look at the benchmarking page[1] where different benchmarking suites are measured at different core counts and sizes. Note that the PDS-H suite originates from Polars and trust me that I have ran on different configurations to sanity check these results.
This is great, no offence to you. But it just hard for me get any value out of it without having some rationale and then hardware limit based benchmark after that and some writing that explains what is happening why.
Benchmarks aren't the end goal but it should be a tool in explaining what is happening imo.
This is not just for measuring tools against each other but also getting something out of the writing as a group so we can understand more.
For example if you have some queries that stress group-by performance in a way and you are doing group by in a better way then you can show that and give a rationalization of results and explain what is done differently to get such a result.
I don't mean to bash on your achievement, it is really great but I genuinely think that one writing like that would be more than a comprehensive benchmark dump.
This is a good example for the rationalization part but not measurements imo.
In the end it is impossible to build on these systems unless the person building on top has actual understanding of what is happening and why. It feels like we are just dumping around numbers and ideas whitout any connection between things.
Bootvis 5 hours ago [-]
I agree that it would be good to know and I started some writing this already, but that is not ready and wouldn't cover everything in Ibex anyways. Even with LLM's, getting something good is quite a lot of work and there is much to do. On a very high level, Ibex has become fast for 2 reasons:
- Benchmarking vs other solutions, comparing and improving where Ibex is slow. Here the more mature solutions can help with finding good ways to approach common queries. At the very least, it will suggest something to improve. Of course, this will help it look good in my benchmarks. That is also the reason I have been widening the benchmark set progressively, I don't want to get stuck in a local optimum.
- LLM driven specialisation: code has become cheaper, so having specialised paths for common enough cases is both more easy and cheap than it used to be. This bloats the code, which has maintenance implications and code size implications but I think these are still bearable.
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
2x faster => 50% runtime
If you said it can filter through 20GB of data in a second on a single thread, then that is really good regardless except if the computer has 400GB of ram then it matters if it was cached beforehand etc. It is just not easy to do benchmarks.
For example: https://rocksdb.org/blog/2021/12/29/ribbon-filter.html
It is absurd that we are not even close to having this quality 6 years after these things were done and we even have tireless LLMs to use now. There is no excuse.
This kind of writing in the OP is not about knowledge or learning or technicality of something it is more like a tooth paste commercial on tv with some numbers on the side. AHH wait, those commercials also have the same numbers.
[1]: https://ibexlang.org/benchmarks.html
Benchmarks aren't the end goal but it should be a tool in explaining what is happening imo.
This is not just for measuring tools against each other but also getting something out of the writing as a group so we can understand more.
For example if you have some queries that stress group-by performance in a way and you are doing group by in a better way then you can show that and give a rationalization of results and explain what is done differently to get such a result.
I don't mean to bash on your achievement, it is really great but I genuinely think that one writing like that would be more than a comprehensive benchmark dump.
For example: https://pivotlake.io/blog/know-your-limit-faster-top-k-aggre...
This is a good example for the rationalization part but not measurements imo.
In the end it is impossible to build on these systems unless the person building on top has actual understanding of what is happening and why. It feels like we are just dumping around numbers and ideas whitout any connection between things.
- Benchmarking vs other solutions, comparing and improving where Ibex is slow. Here the more mature solutions can help with finding good ways to approach common queries. At the very least, it will suggest something to improve. Of course, this will help it look good in my benchmarks. That is also the reason I have been widening the benchmark set progressively, I don't want to get stuck in a local optimum.
- LLM driven specialisation: code has become cheaper, so having specialised paths for common enough cases is both more easy and cheap than it used to be. This bloats the code, which has maintenance implications and code size implications but I think these are still bearable.