News for hackers. Stuff that matters.
Re:Regex Engine Internals as a Library by burntsushi on Wednesday July 05, 2023 @03:27PM (#36605811)
I actually have an M2 mac mini in the mail from Apple for exactly this purpose.

My time horizon is very long. It takes me a long time to do things these days.

It has never been true that I don't want to support it. Merely that it is difficult to verify and test if I can't do it myself. There is also the problem that the port from x86 to arm is not straight-forward, due to both my own ignorance and what I believe are important missing vector operations such as movemask.

This is discussed a bit more here (including the bit about movemask): https://github.com/BurntSushi/memchr/issues/76

Re:Regex Engine Internals as a Library by celeritascelery on Thursday July 06, 2023 @09:53AM (#36615769)
The current PR for ARM SIMD[1] uses a different instruction mix to achieve the same goals as movemask. I tested the PR and it has a significant speedup over the non-vectorized version.

[1]https://github.com/BurntSushi/memchr/pull/114

Re:Regex Engine Internals as a Library by burntsushi on Thursday July 06, 2023 @10:01AM (#36615896)
Yup, thanks for the reminder. That's my starting point once my M2 arrives.