News for hackers. Stuff that matters.
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by kasts on Tuesday July 28, 2026 @12:39PM (#49086508)
I’m not convinced GPU acceleration is a meaningful advantage for most charting use cases. Most dashboards don’t render enough data for it to matter. Once a chart is dense enough for rendering to become the bottleneck, it normally is already be too crowded to be meaningful. Zooming can justify supporting larger datasets, but sampling/viewport culling and level of detail often avoid drawing unnecessary points...
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by Evidlo on Tuesday July 28, 2026 @01:35PM (#49087274)
I constantly have to work around the slowness of matplotlib when creating animated sequences for my scientific work (even with the Agg back end)
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by apetuskey on Tuesday July 28, 2026 @01:40PM (#49087348)
How many points are you working with usually?
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by all2 on Tuesday July 28, 2026 @06:41PM (#49090956)
Not GP, but my datasets weigh in at around 2-20GB depending.
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by FuckButtons on Tuesday July 28, 2026 @10:54PM (#49092914)
I too have felt that pain. Funcanimation is passible for a few datapoints but it really struggles with anything meaningful in real time.
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by apetuskey on Tuesday July 28, 2026 @12:43PM (#49086571)
It depends on how much data you are planning on showing, but as you can see from the benchmarks its also more performant than other python charting libs for small data.

We also built this library for extreme customization with CSS/Tailwind support so rendering large amounts of data is an important but not the only advantage.

Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by formerly_proven on Tuesday July 28, 2026 @12:52PM (#49086689)
There are some niche charting applications which are offloaded to FPGAs and even ASICs.
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by moralestapia on Tuesday July 28, 2026 @04:45PM (#49089693)
Feel free to not use it, then.

You don't have to justify your decision to people here, literally just move on with your life and forget about it.

Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by kasts on Tuesday July 28, 2026 @04:57PM (#49089799)
I’m not trying to justify whether I'd personally use it, I was simply raising the question because the tradeoffs are interesting, and the replies, including Evidlo’s, have already taught me something.

I tried the library before commenting, it’s a cool project. The performance improvements at larger scales I've found are real. I was mainly just trying to have a conversation to learn where we all learn!

“Just move on” seems like a curious response on a discussion forum, though :)

Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by moralestapia on Tuesday July 28, 2026 @05:48PM (#49090366)
Oh, no worries. I thought you were another one of those naysayers, of which this site has far too many already. Hehe.

Btw, English isn't my first language, so I still struggle with it sometimes. Could you point me to the part of your comment where you asked that question? I can't seem to find it. Thanks!

Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by kasts on Tuesday July 28, 2026 @05:55PM (#49090441)
No worries!

It was not a explicit question where its easy to point at like a question mark (?) but I'd find any comment on a forum like environment to be trying to contribute to a discussion as a whole, where we can all share thoughts and counter thoughts constructively.

Anywhoo, XY seems like a cool lib. If you can find the usecase where you actually can leverage the power you should! Good job on Reflex.

Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by genxy on Tuesday July 28, 2026 @05:03PM (#49089881)
Ok, we won't convince you and we can move on.
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by masenf on Tuesday July 28, 2026 @05:08PM (#49089936)
I think meaningful is in the eye of the beholder. The library is designed such that the trace buffers are directly used as inputs to the WebGL2 drawing contexts to avoid unnecessary copying throughout the stack, which does make a difference when rendering on mobile and embedded devices with limited CPU but often having GPU resources available.
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by mamcx on Tuesday July 28, 2026 @06:17PM (#49090720)
The good reason for worry about it is the same for data grid, list, scrolls and any other UI component that loads arbitrary data.

All UI, honestly, is only meaningful in what the screen size and our vision permit. END.

UNFORTUNATELY, you can't avoid that a user is writing "a___" and the source data has millions of things that start with `a` and all the others are dozens.

So, you can end with a massive influx of data, and sure the user see that big mess and wanna dial in, but in the meantime is nice if the UI not die in the process.

Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by NortySpock on Tuesday July 28, 2026 @08:30PM (#49091887)
Why settle for sampling when you can have the whole dataset?

The spiral pattern is an excellent example. "Sure it looks like this when you zoom out, but when you zoom in, you can see the finer structure of the points..."

Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by Eridrus on Wednesday July 29, 2026 @12:01AM (#49093272)
Managing sampling is itself not totally trivial. Much easier from a DevX perspective to just have a library that can render all the datapoints.
Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by cozzyd on Wednesday July 29, 2026 @12:12AM (#49093332)
don't you just love having a point cloud so dense that it's completely unreadable?

it seems a lot of people don't know about histograms...

Re:Show HN: XY – Fast, composable, GPU-accelerated charts, w... by cycomanic on Wednesday July 29, 2026 @04:28AM (#49094770)
I can give you a prime example where you want to render all the data and quickly, oscilloscopes. It's quite common that you fetch traces with millions of samples, but then want to zoom into specific regions. There are lots of similar applications in experimental signal processing, where you want to have large data sets, but sampling easily will hide details that you want to see (unless you already know what exactly your data looks like).