Live data from Hacker News

Hyperspace

hypercritical.co

201–210 of 503 posts

Re: Hyperspace

#201
post #162

Earlier quoted context omitted.

I'm a bit confused as the Mac App Store says it's over 4 years old.

The 4+ Age rating is like, who can use the app. Not for 3 year olds, apparently.

Despite knowing this is the correct interpretation, I still consistently make the same incorrect interpretation as the parent comment. It would be nice if they made this more intuitive. Glad I’m not the only one that’s made that mistake.

Re: Hyperspace

#202
post #153

What algorithm does the application use to figure out if two files are identical? There's a lot of interesting algorithms out there. Hashes, bit by bit comparison etc. But these techniques have their own disadvantages. What is the best way to do this for a large amount of files?

I'd hash the first 1024 bytes of all files, and starts from there is any collision. That way you don't need to hash the whole (large) files, but only those with same hashes.

I suspect that bytes near the end are more likely to be different (even if there may be some padding). For example, imagine you have several versions of the same document.

Also, use the length of the file for a fast check.

Re: Hyperspace

#203

Nice, but I'm not getting a subscription for a filesystem utility. Had it been a one-time $5 license, I would have bought it. At the current price, it's literally cheaper to put files in a S3 bucket or outright buy an SSD.

There are several such tools for Linux, and they are free, so maybe just change operating systems.

I'm pretty sure some of them also work on MacOS. rmlint[1], for example can output a script that reflinks duplicates (or run any script for both files):

  rmlint -c sh:handler=reflink .
I'm not sure if reflink works out of the box, but you can write your own alternative script that just links both files

[1]: https://github.com/sahib/rmlint

Re: Hyperspace

#204

Earlier quoted context omitted.

I think the term to search for is reflink. Btrfs is one example: https://btrfs.readthedocs.io/en/latest/Reflink.html Like with Hyperspace, you would need to use a tool that can identify which files are duplicates, and then convert them into reflinks.

I thought reflink is provided by the underlying FS, and Hyperspace is a dedup tool that finds the duplicates.

Hyperspace uses built in APFS features, it just applies them to existing files.

You only get CoW on APFS if you copy a file with certain APIs or tools.

If you have a program that does it manually, you copied a duplicate to somewhere on your desk from some other source, or your files already existed on the file system when you converted to APFS because you’ve been carrying them for a long time then you’d have duplicates.

APFS doesn’t look for duplicates at any point. It just keeps track of those that it knows are duplicates because of copy operations.

Re: Hyperspace

#205

Nice, but I'm not getting a subscription for a filesystem utility. Had it been a one-time $5 license, I would have bought it. At the current price, it's literally cheaper to put files in a S3 bucket or outright buy an SSD.

I can't even find the price anywhere. Do you have to install the software to see it?

Re: Hyperspace

#206
post #200

I don't understand why a simple, closed source de-dup app is at the top of the front page with 160+ comments? What is so interesting about it? I read the blog and the comments here and I still don't get it.

The developer is popular and APFS cloning is genuinely technically interesting. (no, it's not a symlink)

COW filesystems are older than MacOS, no surprises for me. Maybe people aren't that aware of it?

Re: Hyperspace

#207

I don't understand why a simple, closed source de-dup app is at the top of the front page with 160+ comments? What is so interesting about it? I read the blog and the comments here and I still don't get it.

I assume it’s because it’s from John Siracusa, a long-time Mac enthusiast, blogger, and podcaster. If you listen to him on ATP, it’s hard not to like him, and anything he does is bound to get more than the usual upvotes on HN.

Re: Hyperspace

#208
post #185

Earlier quoted context omitted.

I don't know exactly what Siracusa is doing here, but I can take an educated guess: For each candidate file, you need some "key" that you can use to check if another candidate file is the same. There can be millions of files so the key needs to be small and quick to generate, but at the same time we don't want any false positives. The obvious answer today is a SHA256 hash of the file's contents; It's very fast, not t…

I think the prob. is not so low. I remember reading here about a person getting a foto of another chat in a chat application, which was using sha in the background. I do not recall all the details, it is improbable, but possible.

The probability is truly, obscenely, low. If you read about a collision then you surely weren't reading about SHA256.

https://crypto.stackexchange.com/questions/47809/why-havent-...

Re: Hyperspace

#209

Nice, but I'm not getting a subscription for a filesystem utility. Had it been a one-time $5 license, I would have bought it. At the current price, it's literally cheaper to put files in a S3 bucket or outright buy an SSD.

They had long discussions about the pricing on the podcast the author is a part of (atp.fm). It went through a few iterations of one time purchase, fee for each time you free up space and a subscription. There will always be people unhappy about either choice.

Edit: Apparently both is possible in the end: https://hypercritical.co/hyperspace/#purchase

Re: Hyperspace

#210

Nice, but I'm not getting a subscription for a filesystem utility. Had it been a one-time $5 license, I would have bought it. At the current price, it's literally cheaper to put files in a S3 bucket or outright buy an SSD.

There are several such tools for Linux, and they are free, so maybe just change operating systems.

I don't think either of them supports APFS deduplication though?
Post reply on HN