bytestring VS ghc

Compare bytestring vs ghc 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)

ghc

Mirror of the Glasgow Haskell Compiler. Please submit issues and patches to GHC's Gitlab instance (https://gitlab.haskell.org/ghc/ghc). First time contributors are encouraged to get started with the newcomers info (https://gitlab.haskell.org/ghc/ghc/wikis/contributing). (by ghc)
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 ghc
15 95
282 2,968
0.7% 0.8%
7.9 9.7
10 days ago 3 days ago
Haskell Haskell
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
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.

ghc

Posts with mentions or reviews of ghc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-12.
  • Veryl: A Modern Hardware Description Language
    3 projects | news.ycombinator.com | 12 Mar 2024
    of course it does! what else would you call something like chicken scheme [https://call-cc.org/], ats [https://ats-lang.sourceforge.net/], or ghc [https://www.haskell.org/ghc/]? they are not "scripts", they are full-blown compilers that happen to use C as their compilation target, and then leverage C compilers to generate code for a variety of architecures. it's a very sensible way to do things.
  • XL: An Extensible Programming Language
    8 projects | news.ycombinator.com | 21 Feb 2024
    Agree about Haskell... as far as I'm aware there is actually no declarative/easily-readable definition of the Haskell syntax that is also complete, especially when it comes to the indentation rules, and the syntax is basically defined by the very (ironically) imperatively-defined GHC parser[0].

    I prefer a syntax like in Pure[1], where the ambiguous, hard to parse indentation-based syntax is replaced by explicit semicolons (Yeah, you can use braces/semicolons in Haskell as well, but most code doesn't).

    [0] https://github.com/ghc/ghc/blob/master/compiler/GHC/Parser/L...

    [1] https://agraef.github.io/pure-lang/

  • Revisiting Haskell after 10 years
    8 projects | dev.to | 15 Jan 2024
    GHC, the main Haskell compiler
  • Beginner question -- best way to implement this in Haskell?
    1 project | /r/haskellquestions | 7 Dec 2023
    GHCi, version 9.6.3: https://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from /Users/daniel/.ghci ghci> :{ | split :: Float -> [Int] | split value = map(read . (:[])) . show | :} :3:15: error: [GHC-83865] • Couldn't match expected type: [Int] with actual type: a0 -> [b0] • Probable cause: ‘(.)’ is applied to too few arguments In the expression: map (read . (: [])) . show In an equation for ‘split’: split value = map (read . (: [])) . show
  • GHC 9.8.1 has been released
    1 project | news.ycombinator.com | 10 Oct 2023
    GHC is hosted on Gitlab, the Github repo is just a mirror. So money.

    https://github.com/ghc/ghc

  • Um rápido Hello World com Haskell
    1 project | dev.to | 4 Oct 2023
    ☁ ~ ghci GHCi, version 9.4.7: https://www.haskell.org/ghc/ :? for help ghci> 6 + 3^2 * 4 42
  • Introducing NeoHaskell: A beacon of joy in a greyed tech world
    2 projects | dev.to | 24 Sep 2023
    Depending on who you ask, a programming language can be different things. If you ask the Haskell community, many will tell you that the language is the Haskell specification, and that what currently is being used is not Haskell itself, but an extension of Haskell that is supported by the GHC compiler. Similar to the C language, a programming language would be a specification.
  • Exploring the Internals of Linux v0.01
    8 projects | news.ycombinator.com | 12 Aug 2023
  • type derivation
    1 project | /r/haskellquestions | 31 May 2023
    GHCi, version 9.4.2: https://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from ~/.dotfiles/ghc/.ghc/ghci.conf
  • Why did GHC go from "occurs check failed" to talking about rigid type variables?
    2 projects | /r/haskell | 27 Apr 2023

What are some alternatives?

When comparing bytestring and ghc you can also consider the following projects:

bytestring-read - fast ByteString to number converting library

polysemy - :gemini: higher-order, no-boilerplate monads

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

in-other-words - A higher-order effect system where the sky's the limit

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

vim-multiple-cursors - True Sublime Text style multiple selections for Vim

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

effect-zoo - Comparing Haskell effect systems for ergonomics and speed

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

seed7 - Source code of Seed7

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

frp-zoo - Comparing many FRP implementations by reimplementing the same toy app in each.