linear-builder
Strict Text and ByteString builder, which hides mutable buffer behind linear types and takes amortized linear time. (by Bodigrim)
text-short
Memory-efficient representation of Unicode text strings (by haskell-hvr)
linear-builder | text-short | |
---|---|---|
5 | 1 | |
87 | 17 | |
- | - | |
7.1 | 3.8 | |
7 days ago | 4 days ago | |
Haskell | Haskell | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" 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.
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.
linear-builder
Posts with mentions or reviews of linear-builder.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-05.
- New release of Builder with linear types, now renderable both to Text and ByteString
-
High-Performance Haskell?
Another interesting area of performance optimisation is linear types. It's already possible to take advantage of them in libraries https://github.com/Bodigrim/linear-builder with real world performance gains and in the future in GHC. More about this here https://www.reddit.com/r/haskell/comments/5z6mxb/linear_types_make_performance_more_predictable/?utm_source=share&utm_medium=ios_app&utm_name=iossmf
- Linear Text Builder: up to 20x faster than alternatives
-
Strict Text builder with linear types, up to 10x faster than Data.Text.Lazy.Builder
I've been toying with a strict Text builder, backed by linear types, and benchmarks look very good, up to 10x faster than Data.Text.Lazy.Builder. I'd like to collect more feedback before releasing it, so I'd appreciate people taking a look at https://github.com/Bodigrim/linear-builder/ or rendered haddocks.
-
Seeking feedback for Text Builder with linear types
I've been playing around with linear types, attempting to design a strict Text builder. Admittedly I know too little about both topics, so I'd appreciate some feedback about my ramblings, because benchmarks look suspiciously good: https://github.com/Bodigrim/linear-builder/
text-short
Posts with mentions or reviews of text-short.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-11.
-
CS SYD - JSON Vulnerability in Haskell's Aeson library
Technically, Text for keys could be abstracted away as well. e.g. if someone would like to experiment with https://hackage.haskell.org/package/text-short. (JSON object keys are not sliced that often that 16 byte overhead may make a difference).
What are some alternatives?
When comparing linear-builder and text-short you can also consider the following projects:
emoji - emoji utility for haskell
text - Haskell library for space- and time-efficient operations over Unicode text.
linear-base - Standard library for linear types in Haskell.
text-trie - An efficient finite map from Text to values, based on bytestring-trie.
text-containers
text-rope - A wrapper around Text for fast line/column navigation and logarithmic concatenation
text-stream-decode - Streaming decoding functions for UTF encodings.
countwords - Playing with counting word frequencies (and performance) in various languages.
text-icu - This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text.
with-utf8 - Get your IO right on the first try
text-ansi
linear-builder vs emoji
text-short vs text
linear-builder vs linear-base
text-short vs text-trie
linear-builder vs text
text-short vs text-containers
linear-builder vs text-rope
text-short vs text-stream-decode
linear-builder vs countwords
text-short vs text-icu
text-short vs with-utf8
text-short vs text-ansi