logoalt Hacker News

Show HN: High-Performance Wavelet Matrix for Python, Implemented in Rust

90 pointsby math-hiyokoyesterday at 7:35 PM9 commentsview on HN

I built a Rust-powered Wavelet Matrix library for Python.

There were surprisingly few practical Wavelet Matrix implementations available for Python, so I implemented one with a focus on performance, usability, and typed APIs. It supports fast rank/select, top-k, quantile, range queries, and even dynamic updates.

Feedback welcome!


Comments

kennykartmantoday at 2:08 PM

Thank you for sharing! It's great to have more wavelet libraries. I don't often use those, but when I do the choice is scarce. It's great to have another option!

koolalatoday at 4:54 AM

Can a wavelet be used with SIMD 128bit operations? Or are they used with 4x4 Matrix operators? Are wavelets good for that kind of math?

show 1 reply
yourdetecttoday at 9:12 AM

Does this contain unsafe? Even the Linux kernel's Rust code have memory safety bugs. https://news.ycombinator.com/item?id=46309536

show 2 replies
joshlktoday at 10:14 AM

What's a good reference to learn about Wavelet Matrices?

show 1 reply
atoavtoday at 8:29 AM

Looks good to me. Have you considered adding a really practical realworld example? As someone who loves looking at examples I like your small examples in the readme, but it still leaves me wondering a bit what I actually would use this library for.

Many people don't know what you would use wavelets for or where they really shine. I for example know wavelets are used in image compression algorithms but that's about it. I am curious where else this could be applied.

heya1993today at 2:34 AM

[flagged]