Live data from Hacker News

Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

github.com

41–50 of 51 posts

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#41
post #36

I recently tried to use IPFS to share 20 gigabytes of data on a local network, using ipfs-desktop. Apparently it hashes the entire file, meaning it will read it entirely, so I killed it because it took way too long. Apparently there are other methods for fingerprinting large files, like reading a limited set of chunks. I asked on IRC but I did not get a thorough answer.

To share files in a local network FTP or SMB/CIFS may be better suited.

IPFS is content addressable storage by design on entire files. Reading limited set of chunks poses some problem regarding data integrity and deduplication colisions. One bit flip in JPG may destroy the entire image - thankfuly with currently used hash functions the right and broken files will have different "fingerprint". One way hash functions have extremely low probability of collision with full file scan. However when you skip part of files the probalibity of collision is roughly equal to count of bytes not scaned divided by total file size.

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#42
post #34

Earlier quoted context omitted.

> These are the stories fearmongers tell because it happened to one or two people many years ago. Here's a recent one:[0] > Gibson’s arrest grew out of an ongoing probe of the “Freenet” — an online network that allows users to anonymously share images, chat on message boards and access sites, the probable cause statement says. 0) https://eu.courierpostonline.com/story/news/2020/02/09/craig...

> also had some 900 images of suspected child pornography on the hard drive, says a criminal complaint. So not an example of someone being arrested just for operating a node, then.

No, but the article implies that he was identified by the fact that he was running Freenet.

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#43
post #36

I recently tried to use IPFS to share 20 gigabytes of data on a local network, using ipfs-desktop. Apparently it hashes the entire file, meaning it will read it entirely, so I killed it because it took way too long. Apparently there are other methods for fingerprinting large files, like reading a limited set of chunks. I asked on IRC but I did not get a thorough answer.

I don't understand why you got impatient? Just let it finish and then you can share, easily enough across your entire network.

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#44
post #41
post #36

I recently tried to use IPFS to share 20 gigabytes of data on a local network, using ipfs-desktop. Apparently it hashes the entire file, meaning it will read it entirely, so I killed it because it took way too long. Apparently there are other methods for fingerprinting large files, like reading a limited set of chunks. I asked on IRC but I did not get a thorough answer.

To share files in a local network FTP or SMB/CIFS may be better suited. IPFS is content addressable storage by design on entire files. Reading limited set of chunks poses some problem regarding data integrity and deduplication colisions. One bit flip in JPG may destroy the entire image - thankfuly with currently used hash functions the right and broken files will have different "fingerprint". One way hash functions h…

It’s a shame modern file systems don’t generate and store common hash algorithms as file metadata.

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#45
post #41

Earlier quoted context omitted.

To share files in a local network FTP or SMB/CIFS may be better suited. IPFS is content addressable storage by design on entire files. Reading limited set of chunks poses some problem regarding data integrity and deduplication colisions. One bit flip in JPG may destroy the entire image - thankfuly with currently used hash functions the right and broken files will have different "fingerprint". One way hash functions h…

It’s a shame modern file systems don’t generate and store common hash algorithms as file metadata.

Some file systems like ZFS, btrfs support checksum on block level. However file level checksum is not trivial with random write file system. Imagine 1 byte is changed in 20GB file - that would require full file scan to update the checksum. Recalculating a file checksum from all block checksums could be a solution however far from any standard.

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#46
post #45

Earlier quoted context omitted.

It’s a shame modern file systems don’t generate and store common hash algorithms as file metadata.

Some file systems like ZFS, btrfs support checksum on block level. However file level checksum is not trivial with random write file system. Imagine 1 byte is changed in 20GB file - that would require full file scan to update the checksum. Recalculating a file checksum from all block checksums could be a solution however far from any standard.

Wouldn't a merkle tree, like torrents or dat use, avoid this? You'd only have to generate a hash of the changed chunk, then it's really low cost to update the root hash.

https://datprotocol.github.io/book/ch01-02-merkle-tree.html

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#47
post #15

Earlier quoted context omitted.

I remember discussions of Freenet on "news for nerds" forums in the early millennium, and it was obvious that that particular technology was doomed and would never be widely adopted. You see, people were reluctant to run a Freenet instance because that would involve hosting and passing on content from other users as well. While all Freenet content was encrypted, people were horrified by the thought that if the crypto…

>Thus, distributed platforms today must allow people to pick and choose what content they wish to host. IPFS works more like torrents than FreeNet. If you run an IPFS node, it only hosts content that you pinned on it yourself.

IPFS also has none of the anonymity. So it's a tradeoff.

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#48
post #38

Earlier quoted context omitted.

> Me, I'll run my Freenet nodes in anonymously leased VPS, and access them via Tor. Some would say that's the way to do everything. But it doesn't exactly make it easy for the average Joe. And that's kind of the point too. Police behave badly more often when there is a network with 500 people on it because they don't really understand it and nobody is paying attention to anything. But when there are only 500 people o…

Hey, I respect Freenet hugely. It's almost 20 years old, and it's been ~well maintained throughout. People do hate on Java, but I've had no problems with it, using OpenJDK in Debian. But I don't buy the argument that it's targeted just because it's too small. No matter how many used Freenet, it would get targeted because it's way too laid back about child porn. Sure there's child porn on Tor onion sites, but it's not…

If the same percentage of people used Freenet as use email then it couldn't be "targeted" because targeting implies some kind of special notice, but there's nothing special about using email. Which is true even if email providers exist who are "way too laid back about child porn" etc.

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#49
post #13

Earlier quoted context omitted.

I hadn't heard much about IPFS but the way this is built, with the immutability and hash keys etc, sounds very much like FreeNet. That's the first thing I thought of, and predates this by about 20 years. I remember when that promised to be the next big thing and save us from the commercialisation of the internet that was in full swing then. Unfortunately, that didn't turn out very well. Let's just say the 'fringes of…

> Let's just say the 'fringes of free speech' took the upper hand... Luckily for you that blurry line between mainstream and "fringe" is rapidly shifting, and the list of permissible opinions continues to shrink. More and more people will be forced to decide how important guilt by association is to them, and will either make use of the stigmatized tech - or simply shutup. > But some kind of control is unfortunately n…

Well, the problem with providing a platform for truly free speech is that there's always someone ready to find that extreme niche that is really not acceptable to even the staunchest free-speech advocate. As you say, the 'almost' is an important thing. As soon as you permit everything, someone crazy will find that niche and start overflowing your platform with it because they have nowhere else to go.

I'm not doing the demonizing, just pointing out that this inevitably happens.

PS: Who's against lesbians??? I'm pretty sure they are by law protected against discrimination, including the US?

Re: Wikipedia-IPFS: An exploration to host Wikipedia in IPFS

#50
post #45

Earlier quoted context omitted.

Some file systems like ZFS, btrfs support checksum on block level. However file level checksum is not trivial with random write file system. Imagine 1 byte is changed in 20GB file - that would require full file scan to update the checksum. Recalculating a file checksum from all block checksums could be a solution however far from any standard.

Wouldn't a merkle tree, like torrents or dat use, avoid this? You'd only have to generate a hash of the changed chunk, then it's really low cost to update the root hash. https://datprotocol.github.io/book/ch01-02-merkle-tree.html

Yep, my last sentence covered also Markle tree.
Post reply on HN