Y
Hacker News
new
|
ask
|
show
|
jobs
by
tormeh
4228 days ago
Principal component analysis and then ignoring the least important components is the only compression technique I know. Hope it helps.
1 comments
sampo
4228 days ago
Well that is a lossy compression, can work nicely to some data (e.g. images), but totally irrelevant in the context of source code compression.
link
vardump
4227 days ago
Lossy compression might be just fine for source code, as long as the lossy part is still functionally equivalent.
Think 1000.0 vs 1E3, printf("foo") vs puts("foo"), etc.
link
mistercow
4227 days ago
And in fact, RegPack
is
lossy compression (as are all minifiers). The transformation is totally irreversible.
link
tormeh
4228 days ago
Well, he didn't say he only wanted non-lossy compression or that he was working on source code compression.
link