Live data from Hacker News

Static torrent website with peer-to-peer queries over BitTorrent on 2M records

boredcaveman.xyz

81–90 of 110 posts

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#81
post #76
post #43

Earlier quoted context omitted.

https://en.wikipedia.org/wiki/InterPlanetary_File_System https://en.wikipedia.org/wiki/Filecoin

yeah but this demo doesn't rely on some shitcoin

ipfs does not use cryptocurrency incentive schemes either

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#82
post #67

Earlier quoted context omitted.

Your information about Germany is incorrect. The legal situation here is the same as what you described for the Czech Republic. You can download anything anywhere. What's illegal is making stuff publicly available, and BitTorrent uploading falls under that. Source: was caught and got council from a copyright lawyer.

Pretty sure you can’t download either. But the fines would be very low, so instead they go after uploaders, convince the court it’s "commercial distribution", values skyrocket and for a small 1000€ fee you can make the problem go away.

ime correct: individual downloaders will not be prosecuted unless somewhat high-profile, intitutional/commercial users (vps) will only get a cease and desist. uploaders are fair game.

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#84

Earlier quoted context omitted.

This idea touches on (or rather, even expands on) an idea I've had brewing for a while. For those unfamiliar, there is a programming language called Unison [1] that has a nice feature where each function is identified by a hash of its AST. I often thought a cluster environment, maybe something BEAM-ish, would be an interesting idea where functions are retrievable based on a pair of (`func-name`, `hash`). You could ha…

This approach to mobile code in functional languages has been tried repeatedly since the 1990s. > each function is identified by a hash of its AST. That encoding for mobile code only works if the expression has no free variables (i.e. is closed). It turns out that it is surprisingly difficult to write code which you can be sure has no free variables at particular points (the "send this code to another machine for exe…

Would it be possible to copy any captured variables with the function? I’m sure smart people have figured out why this wouldn’t work.

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#85
post #2

Yup. Calling it. This is the future, may not seem like it to everyone but this is a part of actually new and extremely useful, passively scalable technology. Imagine (good) unkillable zombie databases- so long as the name of a piece of data is known (its hash).. someone, somewhere, might make it possible for you to answer your query, without even needing to setup a server setup.. that’s _it_! Not to mention it might…

Unkillable zombie databases would be an amazing asset for fanfiction & art. Not only does it become slightly more C&D-resistant than normal hosting, it also protects against the far more common scenario: artists and authors blowing their lid and ragequitting by deleting all their work.

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#86

Earlier quoted context omitted.

Pretty sure you can’t download either. But the fines would be very low, so instead they go after uploaders, convince the court it’s "commercial distribution", values skyrocket and for a small 1000€ fee you can make the problem go away.

ime correct: individual downloaders will not be prosecuted unless somewhat high-profile, intitutional/commercial users (vps) will only get a cease and desist. uploaders are fair game.

It also helps that it’s pretty hard to figure out who downloads. With torrents, you’ll always upload as well (outside using specific clients), with websites they have no data.

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#87
post #56

My biggest issue with storing data inside the browser is the lack of tools to set up filter rules for clearing or explicitly not clearing website-specific application data. Looking at Chrome's Inspector, Application Storage has "Local Storage", "Session Storage", "IndexedDB", "WebSQL" and "Cookies". If I decide to clear all this stored data stored for all the pages with one button press in the settings, how can I be…

I don’t think the average users ever delete any of their browser data. In this case however, the whole idea would be that there is redundancy and it is ok for you to clear your cache and storage. As for the hoster, they would probably use a nodejs type server to host their files instead of relying on having a browser tab open.

However, I do agree that relying on regular web browsers is not a good idea. A browser update could limit resources of background tabs even more than they normally do and soon your application is down.

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#88

Earlier quoted context omitted.

This approach to mobile code in functional languages has been tried repeatedly since the 1990s. > each function is identified by a hash of its AST. That encoding for mobile code only works if the expression has no free variables (i.e. is closed). It turns out that it is surprisingly difficult to write code which you can be sure has no free variables at particular points (the "send this code to another machine for exe…

Would it be possible to copy any captured variables with the function? I’m sure smart people have figured out why this wouldn’t work.

In pure functional programs it's possible to copy the state (monad/environment/free variables), but it's not always efficient, depending on what those are.

In general programs, doesn't have to be functional, the environment is stateful and often has abstract, black box processes. This can be transferred as well, by copying some things, transforming others, and in general where necessary using a two-way pipe of some kind. By analogy, imagine creating a WebSocket at the same time as making a JSON-RPC call.

Except for the black boxes, this kind of transfer can be taken further to make a general distributed system. Think things like Paxos, Raft, CRDTs. If the data is also mobile to where it is used, this performs well for many tasks. When that is done, in some ways everything comes back to messages and state again and doesn't need specific pipes. That's more robust then the simple form of transfer.

The resulting architecture is often much faster than the non-distributed version for many tasks, and robust, but it takes a lot of tricky parts to make a general purpose architecture with those qualities and stay high performance.

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#89
post #34

Since ipfs is hash addressable, is there a decentralized way to point to the latest hash of the content. I can point a domain to it, but domain can be taken down.

ENS [ https://ens.domains/ ] names can point to IPFS addresses. https://jamescarnley.eth (can use https://jamescarnley.eth.link if your browser doesn't support IPFS) is my IPFS powered website that can't be taken down by anyone.

Do you have to update the address each time you update your homepage?

Re: Static torrent website with peer-to-peer queries over BitTorrent on 2M records

#90
post #34

Earlier quoted context omitted.

ENS [ https://ens.domains/ ] names can point to IPFS addresses. https://jamescarnley.eth (can use https://jamescarnley.eth.link if your browser doesn't support IPFS) is my IPFS powered website that can't be taken down by anyone.

Do you have to update the address each time you update your homepage?

Yes. There are some alternatives and frameworks like Fleek that abstract this away from you but the most straightforward way is to update the CID with each update.

Fleek can point the ENS name to an IPNS entry which retains the decentralization, keeps UX simple for years, and eliminates gas fees for updates. https://blog.fleek.co/posts/ens-now-on-ipns-hash-updates

Post reply on HN