-
Notifications
You must be signed in to change notification settings - Fork 161
simdutf: update to 8.0.0 #685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
TerrorJack
commented
Jan 15, 2026
- simdutf: update to 8.0.0 and use upstream c api
- ci: add simdutf-is-genuine ci job to check if vendored simdutf is genuine
d67eccf to
88b644d
Compare
|
Waiting for nomeata/inspection-testing#97... There seems to be a genuine build failure at https://github.com/haskell/text/actions/runs/21018119841/job/60427258761?pr=685#step:3:705: |
|
i'm confused...the build works locally and in haskell-ci jobs, and the haskell-ci jobs have simdutf flag enabled by default right? i don't understand why there's a header not found error. it can easily be worked around by just pasting the prototype and avoiding including |
|
Emulated CI jobs are cursed indeed, I suppose one needs to adjust the incantation to pass GHC with all necessary files there. |
|
It seems that the A simple fix may be to put |
88b644d to
5b87848
Compare
|
nice catch! i've moved |
|
I'm looking into the inspection-testing failure. |
|
@TerrorJack rebase again please. |
5b87848 to
e23aab6
Compare
| import GHC.Exts (Ptr,ByteArray#) | ||
|
|
||
| foreign import ccall unsafe "_hs_text_is_valid_utf8" c_is_valid_utf8_ptr_unsafe | ||
| foreign import ccall unsafe "simdutf_validate_utf8" c_is_valid_utf8_ptr_unsafe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These entities are visible to users. Could we avoid changing their types (by introducing a wrapper, perhaps)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the module names have Internal for a good purpose! but i don't have a strong opinion either, so i've avoided changing these in the patch.
This patch updates vendored simdutf to 8.0.0: https://github.com/simdutf/simdutf/releases/tag/v8.0.0, and makes use of simdutf's own C API.
This commit adds a simdutf-is-genuine CI job to check if vendored simdutf is identical to the files in the singleheader.zip upstream release archive.
e23aab6 to
8a67d66
Compare