Seriously! According to the time command in fish, cldr (my program) takes around 4-5 ms to print files, tldr takes 80-100ms. (PS, on my server, cldr actually takes less than 1 ms to fetch the file, while tldr takes closer to 150 ms. That’s 150 times faster!!!)
This started a couple days ago when a friend of mine alerted me to the fact that the official tldr repo now takes ai contributions for their pages (aka the cheat sheet files that are printed) and for the actual program code. She then showed me a repo called ethical-tldr which does not allow for the use of ai contributions in the pages or program code.
However, their even though their client doesn’t allow vibe coding, it is still written in Python, which itself takes ai contributions.
So, I decided to learn C from scratch and make my own tldr client that’s faster and better than theirs in *every way! Introducing cldr! I am especially proud of the list and search functionality because the interface is just gorgeous.
Note, ABSOLUTELY NO AI was used in the making of this, I learned and wrote everything on my own in just the past 3 days, I don’t think I even copied much or any code from websites.
*There’s still like two things I haven’t implemented that the official client does, but they’re very minor and I’d be willing to bet that 99% of you won’t know the difference.





So… C code is faster than python. We knew that. Thanks for the better performing rewrite. Now do it in rust 🤓
Looks like someone did that https://github.com/tldr-pages/tlrc
Gotta love projects with a properly commented config file that makes it easy to modify its defaults.
There’s also https://github.com/tealdeer-rs/tealdeer
In all distros I’ve recently used this is what gets installed when you install the “tldr” package with the package manager. And for good reason.
What is the reason?
I’ll admit I have no idea what makes one of the Rust implementations preferable over the other. Nor can I go looking at the code myself now that GitHub has hosed itself again
Already exists and isn’t vibecoded https://github.com/tealdeer-rs/tealdeer
I was gonna post this as well, this comes with CachyOS by default.
Why in rust? I mean it would be less faster, right? If speed is of the essence ofc.
Because “rewrite it in rust” is its own meme and needs no particular reasoning.
Actually not. Rust can be evem faster than C, although it’s generally similar in performance to C. The point is that it’s more secure because of the way it handles memory.
The performance metrics are cool (though unscientific) but speed is definitely NOT of the essence lmfao
TLDR is not a high throughput real time application. You run it like once per use, probably at a rate of less than once per day. Then you spend a minute reading the output. We’re talking about minutes-per-year time savings here.
Performance of compiled Rust and compiled C are comparable. Of course, compiling Rust is slower though.
Yeah, but it’s slower because it has compile-time safeguards and guardrails that eliminate some families of really dangerous memory and IPC errors.