Show HN: I made a new compression algorithm
Posted by keepamovin 6 hours ago
Comments
Comment by forgotpwd16 6 hours ago
Comment by keepamovin 5 hours ago
Regarding 'Me or Claude': The core concept (applying bioinformatics edit-distance/alignment to compression rather than just exact prefix matching) is something I worked on back in 2013. The implementation in this repo was heavily assisted by Claude, yes.
You're right that DEFLATE and modern algos (Zstd, Brotli) are the production standard. This project isn't trying to replace Zstd tomorrow; it's a research prototype testing the hypothesis that fuzzy matching + edit scripts can squeeze out entropy that exact-match dictionaries miss. The 8-10x slowdown means it's definitely experimental, but as a starting point for further exploration? That's what I want.
Comment by forgotpwd16 5 hours ago
As overall note, AIs when you prompt "apply concept X in Y" (or anything really) will tell you what a great idea and then output something that without domain knowledge you've no idea if it's correct or if even makes sense at all. If don't want to do a literature research/study, recommend at least throwing the design back to the machine and asking for critique.
Comment by gus_massa 2 hours ago
Sorry, not my area. Which are the current best algorithms? (Bonus points if they are open source so the OP can add them to the benchmark.)
Comment by vunderba 2 hours ago
Comment by keepamovin 4 hours ago
Comment by keepamovin 5 hours ago
In 2013, I was studying bioinformatics and had an idea to apply something like sequence alignment and edit scripts to compression instead of just, as LZW, addition at the end of the string. So, the idea for LZW-X was born long ago, but it wasn't until recently, by the power of AI, that I could implement and test it properly.
This is that proper implementation and it reveals what I intuited: that there are gains to be had using a method like this. I consider this a first rung, a starting point for further exploration.
Check it out: https://github.com/BrowserBox/LZW-X
Comment by cranberryturkey 6 hours ago
Comment by keepamovin 5 hours ago
Comment by cranberryturkey 3 hours ago