bytes
text
bytes | text | |
---|---|---|
4 | 13 | |
1,759 | 397 | |
1.3% | 0.3% | |
8.0 | 8.4 | |
7 days ago | 1 day ago | |
Rust | Haskell | |
MIT License | BSD 2-clause "Simplified" License |
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.
bytes
-
Bytes
Many Rust code examples I come across online represent bytes as &[u8] or Vec. However, there is a Bytes crate. Is there any reason for preferring the vector or the slice instead of this crate for bytes?
-
How do I give up ownership when passing to a different thread without using clone?
Take a look at the Bytes crate. With it, one can buffer bytes into a BufMut, and send borrowed slices as Bytes. Once the Bytes are freed, the BufMut takes care of reusing the capacity. Several of the web server frameworks use this, so it's fairly mature.
-
Tokio Console Dev Diary #1
The project is led by the Tokio community — most of the implementation so far has been done by people who are Tokio project maintainers. Tokio hosts a number of libraries that aren't tightly coupled to the tokio crate's runtime, like prost and bytes. The name just means that the same group of people is committed to working on and maintaining it. :)
-
Why can’t unsafe code trust safe code?
Oh an libraries (or the std library) that want to write unsafe code that relies on some Trait's invariant will mark that trait `unsafe`, for example: https://github.com/tokio-rs/bytes/pull/432
text
- Super Colliding Nix Stores: Nix Flakes for Millions of Developers
-
The Spinnaker Programming Language
String is a linked list of UTF-32 codepoints, which is just as bad as it sounds. Haskell programmers usually use Text from the text package instead.
-
[ANN] GHCup-0.1.19.0 released
This is the first release that was executed via the new GitHub CI. Everything went smoothly, except for an unexpected packaging bug on windows due to text-2.0 linking against libstdc++ by default.
-
Limits of possible performance improvements of Haskell/GHC code?
In addition to what's mentioned, the "default" libraries people use are often not the best-performing ones. E.g. Data.Vector.Hashtables is often much faster than Data.HashMap.Strict (which again is typically faster than Data.Map). And we find performance papercuts in common libraries that may simply be due to not enough people optimising for speed.
-
What is the idiomatic way to test "hidden" module functions in a Cabal project
Used by nearly every Haskell project: https://hackage.haskell.org/package/text 60% of the modules are ".Internal".
- Monthly Hask Anything (June 2022)
-
Haskell - Important Libraries
text
-
Switch internal representation to UTF8 by Bodigrim · Pull Request #365 · haskell/text
Here is a representative patch for text: https://github.com/haskell/text/pull/365/commits/37a2157245457a287d638bbceb472fe93b71f224 Hopefully it clarifies why achieving C performance is problematic even if you have enough primitive operations.
- Size hints for streams in text package
-
Can I wait forever without getLine?
I want to run an app in a Docker container, but detached. This causes getLine to throw an EOF exception, since the terminal detaches. That is, if I understand this thread correctly https://github.com/haskell/text/issues/258.
What are some alternatives?
prost - PROST! a Protocol Buffers implementation for the Rust Language
attempt - Concrete data type for handling extensible exceptions as failures.
console - a debugger for async rust!
base58string - Bitcoin script compilation, manipulation and decompilation
algebraic-classes - Conversions between algebraic classes and F-algebras.
text-trie - An efficient finite map from Text to values, based on bytestring-trie.
gps2htmlReport - Generates a HTML page report detailing a GPS journey, with charts, statistics and an OpenStreetMap graphic.
text-ansi
text-binary - Binary instances for strict and lazy Text data types
CTRex - Open records for Haskell
leetify - Leetify some text!
data-foldapp - Haskell library for folding function applications. A framework for variadic functions.