Kind of weak licence, what are you actually allowed to do with this code? Change it? Distribute your changes? https://github.com/lzfse/lzfse/blob/master/LICENSE
Apple Open-Sources its Compression Algorithm LZFSE
21–30 of 219 posts
Re: Apple Open-Sources its Compression Algorithm LZFSE
#22Re: Apple Open-Sources its Compression Algorithm LZFSE
#23Kind of weak licence, what are you actually allowed to do with this code? Change it? Distribute your changes? https://github.com/lzfse/lzfse/blob/master/LICENSE
Re: Apple Open-Sources its Compression Algorithm LZFSE
#24So now it will be cross platform?
Re: Apple Open-Sources its Compression Algorithm LZFSE
#25Earlier quoted context omitted.
Basically an Apple-specific reimplementation of Zstd: https://github.com/Cyan4973/zstd
So, worse than LZ4 for what Apple seems to be using it for. Why didn't they just use LZ4? Confusing company, they are.
Re: Apple Open-Sources its Compression Algorithm LZFSE
#26Waiting for first guy who take this implementation and run it through emscripten so we can actually use it in client -> server communication, eg sending compressed json payloads to the server.
I think a better strategy would be to add support for LZFSE to the browsers themselves.
Re: Apple Open-Sources its Compression Algorithm LZFSE
#27Kind of weak licence, what are you actually allowed to do with this code? Change it? Distribute your changes? https://github.com/lzfse/lzfse/blob/master/LICENSE
> Redistribution and use in source and binary forms, with or without modification, are permitted[...]
Re: Apple Open-Sources its Compression Algorithm LZFSE
#28If you want to see some crazy C code, check out this file from the GitHub repo: https://github.com/lzfse/lzfse/blob/master/src/lzvn_encode_b...
Excerpt from the link : if (D == D_prev) { if (L == 0) { *q++ = 0xF0 + (x + 3); // XM! } else { *q++ = (L >8 in 0..5 *q++ = (D >> 8) + (L = (1 34) { // Long dist *q++ = (L > 2) + (L
I'm assuming they came up with the mathematical proofs first and translated that into code, so that has something to do with it, correct?
It looks a lot like some crypto algorithms which are a nearly direct translation of the mathematical formulas.
It's not that it's incredibly difficult to follow, but it's just very "math like".
Re: Apple Open-Sources its Compression Algorithm LZFSE
#29Yes. This is very performance critical code and I completely see the need to write very optimized code. That's fine. But optimizing code for speed shouldn't imply also optimizing it to use as few characters as possible.
Compression code is code that often runs at boundaries to the external world and thus is a very significant attack surface. To release compression code in a non-safe language is risky enough but then using what amounts to practically write-only code is, IMHO, irresponsible.