How realistic is it for the Trifecta Tech implementation to start displacing the "official" implementation used by linux distros, which hasn't seen an upstream release since 2019?
Fedora recently swapped the original Adler zlib implementation with zlib-ng, so that sort of thing isn't impossible. You just need to provide a C ABI compatible with the original one.
I use this crate to process 100s of TB of Common Crawl data, I appreciate the speedups.
FTA:
> Why bother working on this algorithm from the 90s that sees very little use today?
What's in use nowadays ? zstd ?
ahh saw this: https://quixdb.github.io/squash-benchmark/
Anyone know if this will by default resolve the 11 outstanding CVEs?
Ironically there is one CVE reported in the bzip2 crate
[1] https://app.opencve.io/cve/?product=bzip2&vendor=bzip2_proje...
i'd be curious if they're using the same llvm codegen (with the same optimization) backend for the c and rust versions. if so, where the speedups are coming from?
(ie, is it some kind of rust auto-simd thing, did they use the opportunity to hand optimize other parts or is it making use of newer optimized libraries, or... other)
I hope they or Prossimo will also look and reimplement in the similar fashion the core Internet protocols - BGP, OSPF and RIP, other routing implementations, DNS servers, and so on.
About not having perf on macOS: you can get quite far with dtrace for profiling. That’s what the original flame graph script in Perl mentions using and what the flame graph Rust reimplementation also uses. It does not have some metrics like cache misses or micro instructions retired but still it can be very useful.
Does anyone know if it supports parallel decompression, lbzip2-style? (or just iterators doing pre-scanning for the block magic that allow doing parallel decompression on top).
Edit : it probably doesn't.
Lbzip2 had much faster decompressing speed, using all available CPU cores.
It's 2025, and most programs like Python are stuck at one CPU core.
rust aside, I really enjoy seeing all these different implementation benchmarks, very satisfying to read
I like Rust and have an ambition to learn it as well (I've had a few false starts...). One of my issues that I have is that every (slight exaggeration) library that I seem to come across is still at version 0.x.y. Take this library as an example. 0.1.0 was released in 2014 and it still hasn't had a 1.0.0 release, is there an aversion to get to 1.0.0 in the rust community?
[flagged]
Do they use any llm to transpile the C to Rust ?
A lot of this "rewrite X in Rust" stuff feels like burning your own house down so you can rebuild and paint it a different color.
Counting CPU cycles as if it's an accomplishment seems irrelevant in a world where 50% of modern CPU resources are allocated toward UI eye candy.