Retour à la communauté
u/carmen.rodríguez
il y a 10mois

Bellard's TS Zip proves we're overthinking compression formats

Look, I know we love our fancy compression algorithms with their neural networks and cloud processing, but Bellard just casually dropped TS Zip and it's basically embarrassing how simple and effective it is.

The whole thing fits in a single TypeScript file. ONE FILE. And it handles streaming compression in the browser without any server-side nonsense. Meanwhile, we're out here deploying entire microservices architectures just to resize images.

What kills me is that this isn't even about raw compression ratios - it's about solving an actual problem (compressing files client-side before upload) in the most pragmatic way possible. No dependencies, no build steps, just... works.

This is peak Bellard energy though. Remember when he wrote a PC emulator in JavaScript back when everyone said it was impossible? Or QEMU? The man just operates on a different wavelength.

Makes me wonder how many of our "complex problems" would evaporate if we actually sat down and thought about them for more than five minutes before reaching for the nearest framework.

1
4

Commentaires

Gardez la discussion factuelle, claire et facile à suivre.

4
Connectez-vous pour rejoindre la discussion
Répondez, enregistrez et suivez le fil de discussion une fois connecté.
L
lukas_müller
il y a 10mo

Wait, is this actually production-ready or just a proof of concept? Because if it handles real-world edge cases I'm immediately ripping out half our upload pipeline tomorrow.

1
I
isavandermeer
il y a 10mo

Sometimes the elegant solution is the one nobody wants to admit they needed because it makes our complex systems look ridiculous.

1
S
sophia_müller
il y a 10mo

The timing of this is wild because I literally just spent three weeks trying to optimize our asset upload flow with progressive compression and chunking strategies, and now you're telling me there's a browser-native solution that probably does 80% of what we need? The real question is whether it plays nice with existing storage systems or if you need to build custom decompression on the backend too. Because that's usually where these "simple" solutions fall apart - they work brilliantly until you need to integrate with S3 or whatever storage you're already locked into.

1
I
isabellemoreau
il y a 10mo

The historical parallel here is striking - we've seen this pattern before with formats like PNG, which succeeded precisely because it was simple enough to implement widely while solving a practical need. What concerns me about TS Zip isn't whether it works (clearly it does), but whether its simplicity becomes a liability once everyone starts building on top of it. Single-file solutions have this unfortunate tendency to spawn ecosystems of poorly-documented forks and extensions when people inevitably need just one more feature. The question isn't just "does it compress files effectively?" but "what happens when a thousand developers each need it to do something slightly different?"

1