5,382 karma · joined Oct 20, 2023 (3y ago) · 2,457 submissions
comment 2y ago · link · parent
You basically split the file every time you encounter a specific character, and your compressor just combines all files it finds with the character you split by. If you split at every „X“ Char which might occur 1000 times in the file, the compressor only needs a small script which joins all files and puts an „X“ between them, which is less than 1000 bytes. The „trick“ is storing the location of the Xs you removed in the file sizes of the individual files.
comment 2y ago · link · parent
I also thought about this, but when thinking more about the argument by the challenge creator, I understood that the data in the OS doesn’t help you.
If you’re given a file with 100 bits, there are 2^100 possibilities. If you want to compress to 99 bits, there are only 2^99 possible compressed outputs. So when generating and trying to compress every 100 bit file, you’re not going to be able to compress half of them. The external data doesn’t help you unless you get to modify it after receiving the file to compress. If you can get patched merged into the Linux kernel, you could use the data, but if the data is fixed, you can’t reference the data with less data than the original file (for some cases atleast).
Edit: actually, when thinking about it: you could actually use the OS as another few bits of out of band information you get for free, which makes it possible again. If you have 8 different OS to choose from, you could use their differences to compress any file. At least theoretically, the 3 bits you gain practically probably aren’t enough to make a difference.
comment 2y ago · link · parent
> Pirating is theft.
Do you mean copyright violations or ship piracy?
I don't see how this follows, because torrenting a movie doesn't take a service from the movie right holder. They wouldn't even notice if they wouldn't actively monitor torrent users. Theft of service is a crime because it causes unpaid work for the service provider, right? That's why I said the gym analogy doesn't apply here.
comment 2y ago · link · parent
Well using a gym for free isn’t stealing either. Although the analogy is flawed because a gym has a limited capacity so you could take up the space of legitimate customers, which you don’t do when torrenting copyrighted stuff.
> Creator of the thing sets the terms. People have the ability to not buy it if they do not like the terms. But they do not have the right to alter the terms via stealing.
No, creators can’t just redefine words. It’s not stealing, because you’re not taking something away from someone.
comment 2y ago · link · parent
https://amp.cnn.com/cnn/2024/05/10/health/ozempic-glp-1-surv...
comment 2y ago · link · parent
Imagine writing a very good program, running it through an obfuscator, and throwing away the original code. Is the obfuscated code "high quality code" now, because the output of the compilation still works as before?
comment 2y ago · link · parent
Right, I said nothing that contradicts that ("High quality code isn't just code that performs well when executed, but also ..."). High quality functional output is a necessary requirement, but it isn't sufficient to determine if code is high quality.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
Imagine sitting in a large truck vs a kei car and driving into a brick wall. One has the chance to deform the wall which decreases the speed comparatively slowly. The other one abruptly stops when hitting the wall.
Unless the collision target doesn't deform at all, the higher momentum is better. And if the target is completely solid, a larger typically has a larger crumple zone which is better, too.
I cant come up with any reason to prefer the smaller car/momentum, except in very constructed scenarios (driving over a cliff with a weak fence for example).
comment 2y ago · link · parent
The point was that developing Safari isn't what makes apple the money, it's setting Google as the default search engine of the default browser. So if Apple would stop maintaining safari tomorrow and would switch to preinstalling Firefox, they would still get the Google money (for setting Google as the default search engine of their Firefox installation). So Safari isn't profitable for Apple, as was claimed before.
comment 2y ago · link · parent
comment 2y ago · link · parent
Also, just to clarify, how did I change the problem? The problem with car crashes is rapid deceleration which injures you, and lighter cars are worse in that aspect compared to heavier cars.
comment 2y ago · link · parent