bytestring VS text-icu

Compare bytestring vs text-icu and see what are their differences.

bytestring

An efficient compact, immutable byte string type (both strict and lazy) suitable for binary or 8-bit character data. (by haskell)

text-icu

This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text. (by haskell)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
bytestring text-icu
15 2
283 46
1.1% -
7.9 6.1
11 days ago 17 days ago
Haskell Haskell
GNU General Public License v3.0 or later BSD 2-clause "Simplified" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bytestring

Posts with mentions or reviews of bytestring. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-01.
  • RunWithScissors() (2009)
    1 project | news.ycombinator.com | 5 Jul 2023
    The documentation is itself fairly funny, for those who don’t care to click ahead:

    > This "function" has a superficial similarity to ‘unsafePerformIO’ but it is in fact a malevolent agent of chaos. It unpicks the seams of reality (and the IO monad) so that the normal rules no longer apply. It lulls you into thinking it is reasonable, but when you are not looking it stabs you in the back and aliases all of your mutable buffers. The carcass of many a seasoned Haskell programmer lie strewn at its feet.

    > Witness the trail of destruction:

        https://github.com/haskell/bytestring/commit/71c4b438c675aa360c79d79acc9a491e7bbc26e7
  • Monthly Hask Anything (July 2022)
    6 projects | /r/haskell | 1 Jul 2022
    If you bring in efficient strings from bytestring, densely packed arrays from vector, and an in-place sort from vector-algorithms, you can bring it down to 275ms (uses 19MB of mem).
  • Some light investigation regarding ByteString's IsString instance, and its conclusions
    1 project | /r/haskell | 22 Jun 2022
  • Haskell - Important Libraries
    11 projects | /r/haskell | 24 Mar 2022
    bytestring
  • [ANNOUNCE] GHC 9.2.2 is now available!
    4 projects | /r/haskell | 7 Mar 2022
    Note that this release is broken for Windows.
  • Beginner level tutorial - bytestring
    1 project | /r/haskellquestions | 17 Dec 2021
    I've opened https://github.com/haskell/bytestring/issues/455 so the situation can be improved. You're very welcome to chime in on the discussion or to contribute some of the missing documentation yourself! :)
  • bytestring-0.11.2.0
    1 project | /r/haskell | 8 Dec 2021
    Highlights from the changelog:
  • [Haskell]
    1 project | /r/ProgrammerAnimemes | 28 Nov 2021
  • Dragging Haskell Kicking and Screaming into the Century of the Fruitbat :: Reasonably Polymorphic
    3 projects | /r/haskell | 13 Nov 2021
    Well, ByteString in particular should not have an IsString instance in a new report. That's pretty clear by https://github.com/haskell/bytestring/issues/140 : the concensus is that there is no good solution right now, but it should not have gotten an IsString instance in the first place. If a theoretical new Haskell Report 202x includes OverloadedStrings (as it should) to handle string literals analogously to numeric literals, I'd expect it to not give ByteString (which is really just a collection of octets) an IsString instance, with all it's issues and rattail due to the encoding question being implicitized.
  • How can Haskell programmers tolerate Space Leaks?
    5 projects | /r/haskell | 26 Sep 2021
    Standard streaming libraries. They are being written by people that make the effort to understand performance and I have a hope that they make sure their streams run in linear space under any optimizations. It is curious and unsettling that we have standard lazy text and byte streams at the same time — and the default lazy lists, of course. I have been doing some work on byte streams and what I found out is that there is no way to check that your folds are actually space constant even if the value in question is a primitive, like say a byte — thunks may explode and then collapse over the run time of a single computation, defying any effort at inspection.

text-icu

Posts with mentions or reviews of text-icu. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-04-17.
  • [ANN] unicode-collation 0.1
    3 projects | /r/haskell | 17 Apr 2021
    Until now, the only way to do proper Unicode sorting in Haskell was to depend on text-icu, which wraps the C library icu4c. However, there are disadvantages to depending on an external C library. In addition, the last release of text-icu was in 2015, and since then there have been changes to icu4c that cause build-failures, as noted in this issue.
  • Haskell ghost knowledge; difficult to access, not written down
    13 projects | /r/haskell | 24 Jan 2021
    text-icu occasionally breaks horribly and nondeterministically (1, 2) despite being praised by SOTU

What are some alternatives?

When comparing bytestring and text-icu you can also consider the following projects:

bytestring-read - fast ByteString to number converting library

text-stream-decode - Streaming decoding functions for UTF encodings.

bytestring-typenats - Haskell ByteStrings annotated with type-level naturals for lengths

gps2htmlReport - Generates a HTML page report detailing a GPS journey, with charts, statistics and an OpenStreetMap graphic.

bytestring-builder - The new bytestring builder, packaged outside of GHC

text-trie - An efficient finite map from Text to values, based on bytestring-trie.

bytestring-tree-builder - A very efficient ByteString builder implementation based on the binary tree

observable-sharing - Observable sharing for haskell

bytestring-delta - Simple binary diff/patch library for C and Haskell

hebrew-time - Hebrew dates and prayer times.

bytestring-plain - Plain byte strings (`ForeignPtr`-less `ByteString`s)

text-binary - Binary instances for strict and lazy Text data types