Live data from Hacker News

BitTorrent v2

blog.libtorrent.org

411–420 of 576 posts

Re: BitTorrent v2

#411
post #71

SHA1 has a collision, so now it uses SHA256. How long until a SHA256 collision? Shouldn't the new protocol just add support for many modern hash functions, and client updates can disable support for hashes that become insecure later? Or does this introduce its own headaches? That's what SSH does, right?

Why not BLAKE3? I am really curious. I mean, since it exists, why not that over SHA256? Because it is relatively new?

SHA2 is hardware accelerated on many new CPUs, Blake family not so much.

Re: BitTorrent v2

#412
post #404

Earlier quoted context omitted.

> Does this hypothetical situation you describe exist anywhere outside of the hypothetical situation posited by a character in a Neal Stephenson novel? That indeed is a bunch of real situations that have happened to me in 2014-2015 and some of that is still a thing. Check your privileges, sweet summer child. Like seriously — for the first 30 years of my life it was outright illegal to have a bank account in a foreign…

> Check your privileges, sweet summer child. Please don't do this here. It is needlessly condescending and insulting..

Some people feel insulted when someone thinks that their real problems are imaginary, so a hostile reaction is understandable, I guess.

Re: BitTorrent v2

#414

I make P2P tools too. [0] Let me tell you this: Bittorrent is one of the few things in the space that actually ... works. It works not in the sense that there is a white paper that should work. Not in the sense that there are a few company-made swarms hosted on industrial servers that keep everyone up and alive, so that the thing gives the impression the 'P2P' network does work. Not in the sense that there is a very-…

I'm confident Bitcoin was based on Bittorrent, there's a lot of overlap. And I feel like it has a lot of the benefits. The main problem with Bitcoin is that it's not purely decentralized (big companies can throw calculating power at it and sway decisions / dominate) and really, really expensive to run.

Re: BitTorrent v2

#415

Earlier quoted context omitted.

It’s great to live a in developed world during the peace time. Sometimes you have to transfer money in and out of the country at war with it’s currency in free fall and capital controls in place. At times like that “normal” ways take about 30% of the sum as transactional overhead, while bitcoin doesn’t. Sometimes “normal“ ways just don’t work normally. Sometimes your government is actively working against your abilit…

Does this hypothetical situation you describe exist anywhere outside of the hypothetical situation posited by a character in a Neal Stephenson novel? Seriously in reality the specifics of any sort of wild situation like the one you describe matter. Which countries? Which currency? Which kind of illegal behavior? And (I ask out of ignorance) in this scenario you describe why would whatever group managing whatever bitc…

Argentina is literally in that situation now. The government charges a surplus 30% tax on any foreign currency purchase (cash, Netflix, anything outside the country), and only allows you to buy 200 usd a month legally. The inflation rate is over 50% there, Bitcoin is more stable than the Argentinian peso. Basically, the government has made it illegal for you to legally save money on a different currency than the Argentinian peso.

Re: BitTorrent v2

#416
post #110

Earlier quoted context omitted.

> proportionate to the attendant hype From the original comment. Also, just because it was 50% at some point, it doesn't really matter today. Paraphrasing, a technology is only as good as it's latest match result. Perl was once powering the web, nowadays you have to look at the web with an electronic microscope to find it...

This is silly. Are you actually saying that bittorrent was hyped so much that constituting half the internet was a letdown? And that Perl didn't live up to its hype because it's only common today, and not as universal as it once was?

> This is silly. Are you actually saying that bittorrent was hyped so much that constituting half the internet was a letdown?

My point is that it was a fad, it's barely used anymore and it was 50% in 2009, now its usage is much, much lower. I've seen a lot of statistics of streaming services being 20-30% of the internet each (Netflix, Youtube), so I'd be amazed if BitTorrent is more than 10% 2020 (and that's a very generous estimate), as I said previously. Anyway, it doesn't matter, there are a lot of techs that were super hyped and in the end, faded away. SOAP, CORBA, XML databases, semantic web techs (RDF, etc.), RSS, ...

> And that Perl didn't live up to its hype because it's only common today, and not as universal as it once was?

Perl is not common, it's uncommon. Let's say you're a developer in one of 100 big cities around the world, how likely it is for you to find a job developing Perl web apps? I'd say that in 80-90 of those, you can't even find that job. That's not a common tech in 2020 ;-)

Re: BitTorrent v2

#417

Earlier quoted context omitted.

I think you misunderstood how the rolling hash is used in this context. It's not used to address a chunk; you'd use a plain old cryptographic hash function for that. The rolling hash is used to find the chunk boundary: Hash a window before every byte (which is cheap with a rolling hash) and compare it against a defined bit mask. For example: Check if the first 20 bytes are zero. If so, you'd get chunks with about 2^2…

I think they understood just fine. If I discover that the file I want to publish shares a range with an existing file, that does very little because the existing file has already chosen its chunk boundaries and I can’t influence those. That ship has sailed. I can only benefit if the a priori chunks are small enough that some subset of the identified match is still addressable. And then I may only get half of a two th…

The idea is that on none random data, you are able to use a heuristic that would create variable-sized chunks that fit the data. The simplest way seems to detect padding zeros and start a new block on the first following none zero byte. There probably are other ways, knowing the data type should help.

Re: BitTorrent v2

#418

Earlier quoted context omitted.

> victim of central banks diluting their dollars with printing. So, nobody in the EU or North America, then.

Perhaps a better threat scenario would have been "victim of banks confiscating their deposits", which is a much more realistic risk for people in the EU: https://www.cbc.ca/news/business/cyprus-bank-account-tax-put... (Also, the grandparent post perhaps should have given some context to the statement "Lightning made scaling possible", such as the fact that Bitcoin originally supported 32 MB blocks of transactions, be…

Banks in Cyprus got recapitalized with some amount of Russian money during the 2011-2013 Eurozone crisis, or at least that's the commonly known narrative. It was basically a convenience crackdown on a fiscal paradise within the EU. If you read the last line of the article you have linked it says:

European leaders wanted to limit the size of the rescue loans — which are backed by European taxpayers — to €10 billion. Leaders were also reluctant to bail out Russian depositors whose funds may be the result of tax evasion, crime or money laundering.

Additionally, there are sanctions in place since the 2014 Crimean crisis.

https://www.themoscowtimes.com/2019/01/10/cyprus-no-longer-m...

Re: BitTorrent v2

#419

I make P2P tools too. [0] Let me tell you this: Bittorrent is one of the few things in the space that actually ... works. It works not in the sense that there is a white paper that should work. Not in the sense that there are a few company-made swarms hosted on industrial servers that keep everyone up and alive, so that the thing gives the impression the 'P2P' network does work. Not in the sense that there is a very-…

> It's a tool that doesn't pitch that it's a P2P tool - it doesn't try to convince you with sob stories in how using P2P helps fight against the big bad evil web. Instead, you use it because it's genuinely the best at what it does: it being P2P is not a selling point, it's just how it happens to work, and that is exactly what it should be. This should be something that every creator who markets or sells products shou…

> Consumers don't care how it works

In the case of Bittorrent they should know a little bit about how it works before they start pirating software, music or movies using it, however.

Re: BitTorrent v2

#420
post #419

Earlier quoted context omitted.

> It's a tool that doesn't pitch that it's a P2P tool - it doesn't try to convince you with sob stories in how using P2P helps fight against the big bad evil web. Instead, you use it because it's genuinely the best at what it does: it being P2P is not a selling point, it's just how it happens to work, and that is exactly what it should be. This should be something that every creator who markets or sells products shou…

> Consumers don't care how it works In the case of Bittorrent they should know a little bit about how it works before they start pirating software, music or movies using it, however.

Or distributing Linux ISOs or large magnetometer datasets or astronomical observations or...
Post reply on HN