Skip to content
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

Make simdutf an optional component #379

Merged
merged 3 commits into from
Oct 18, 2021
Merged

Conversation

Bodigrim
Copy link
Contributor

This PR introduces a flag to switch from simdutf to a native Haskell (slow) UTF-8 validation. The motivation is that text is the first boot library ever to have C++ components, which poses difficulty for GHC build systems. While @bgamari is likely to resolve issues for all major platforms (see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6485), it's worth to provide a flag to disable C++ for the sake of exotic architectures.

As discussed before, ideally we would like not use simdutf at all and resort to our own pure C implementation. This work (haskell/bytestring#423) proved to be more time consuming than estimated originally. We decided to undertake it against bytestring, so that packages other than text (e. g., text-short and utf8-string) could benefit from it as well. However, it means that it will be released at earliest in bytestring-0.11.2.0, and I would rather not limit text to the newest release of bytestring only. So for a time being the choice will be between native Haskell and C++.

@Bodigrim Bodigrim merged commit 7a492ec into haskell:master Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants