News for hackers. Stuff that matters.
Re:How to write your own BitTorrent client in Java by using ... by ryanlol on Sunday May 20, 2018 @08:44AM (#17112477)
"How to write your own HTTP client using curl" is the vibe I get from this.

The library is the client here, the blog post is just about building an UI for it.

Re:How to write your own BitTorrent client in Java by using ... by atomashpolskiy on Sunday May 20, 2018 @09:54AM (#17112674)
In fact there is only one short paragraph about the UI, and the rest of the article tells about the design, API and possible use cases. Not exactly like curl(1) man page, but also definitely not like what you say.
Re:How to write your own BitTorrent client in Java by using ... by ryanlol on Sunday May 20, 2018 @10:13AM (#17112770)
The title is “How to write your own BitTorrent client in Java by using Bt library”

The article says nothing about building a bittorrent client, it talks about interfacing with a library which implements a bittorrent client API.

Re:How to write your own BitTorrent client in Java by using ... by detaro on Sunday May 20, 2018 @10:44AM (#17112905)
> it talks about interfacing with a library which implements a bittorrent client API

Which is a valid way of building a piece of software commonly called a "bittorrent client". HTTP client isn't used in the same way, but "building a download manager using curl" would be a fair comparison.

Re:How to write your own BitTorrent client in Java by using ... by atomashpolskiy on Sunday May 20, 2018 @10:50AM (#17112928)
May I ask you, what did you expect?
Re:How to write your own BitTorrent client in Java by using ... by atomashpolskiy on Sunday May 20, 2018 @08:31AM (#17112447)
Re:How to write your own BitTorrent client in Java by using ... by amelius on Sunday May 20, 2018 @10:06AM (#17112738)
I'm personally more excited about torrent libraries that run inside webbrowsers. E.g.

https://github.com/webtorrent/webtorrent

Re:How to write your own BitTorrent client in Java by using ... by MichailP on Sunday May 20, 2018 @09:19AM (#17112563)
Is this possible without using any (torrent specific) library?
Re:How to write your own BitTorrent client in Java by using ... by matheusmoreira on Sunday May 20, 2018 @03:18PM (#17114317)
Of course. You can read the protocol specification and/or study the source code of the existing libraries and clients to figure out how they work.

I think a reasonable first step is learning about B-encoding so that you can parse and generate torrent files.

Re:How to write your own BitTorrent client in Java by using ... by war1025 on Sunday May 20, 2018 @03:19PM (#17114323)
Here is a bit torrent client I wrote back when I was in school. https://github.com/war1025/Torrent
Re:How to write your own BitTorrent client in Java by using ... by consto on Sunday May 20, 2018 @09:23AM (#17112572)
How do you think Bt or libbittorent was written?
Re:How to write your own BitTorrent client in Java by using ... by MichailP on Sunday May 20, 2018 @11:38AM (#17113194)
I was thinking about this kind of DIY short term effort to have an example of torrent functionality. Not collaborative development of a torrent library for 10 years.
Re:How to write your own BitTorrent client in Java by using ... by m00dy on Sunday May 20, 2018 @09:36AM (#17112608)
Why would we write a special client ? I can spawn a cli tool and do it for me what I want
Re:How to write your own BitTorrent client in Java by using ... by atomashpolskiy on Sunday May 20, 2018 @09:41AM (#17112622)
What if your software is supposed to work on multiple platforms or be self-contained? It's not targeted for personal use (at least that case is not the priority)
Re:How to write your own BitTorrent client in Java by using ... by dis-sys on Sunday May 20, 2018 @08:17AM (#17112415)
I did that more than 10 years ago using libtorrent. In 2018, an article on how to write a bittorrent client using an existing library is not that cool any more.
Re:How to write your own BitTorrent client in Java by using ... by atomashpolskiy on Sunday May 20, 2018 @08:46AM (#17112484)
It's not supposed to be cool, just normal boring software that does useful things. As the author, I'm amazed by the number of people that contact me and ask questions on integrating Bt into their Java/Scala software which some of us use daily. In 2018 Bt is the most feature-complete BitTorrent implementation that is 100% pure Java.
Re:How to write your own BitTorrent client in Java by using ... by zerr on Sunday May 20, 2018 @10:15AM (#17112774)
Waiting for "how to write bittorrent library" series ;)
Re:How to write your own BitTorrent client in Java by using ... by dis-sys on Sunday May 20, 2018 @10:32AM (#17112846)
What I am trying to point out is that bittorrent is a well established protocol with a long list of client implementations[1]. 17 years[2] after the release of its original client in python, a particular library implementing the exact same protocol in a specific language is not a "news" - when this site is called "Hacker News".

In 2018, when it comes to bittorrent, I'd expect to see _real_ news/discussions, just a few examples on top of my head -

1. recent large scale measurement results, e.g. how many concurrent users in 2018, how many are using the selfish-and-trouble-making Xunlei, mobile usage, etc.

2. any sybil attack recently observed in its DHT? progress on sybil attack detection and prevention.

3. frameworks for scraping contents on bittorrent

4. recent progress on NAT traversal

[1] https://en.wikipedia.org/wiki/Comparison_of_BitTorrent_clien...

[2] https://en.wikipedia.org/wiki/BitTorrent_(software)

Re:How to write your own BitTorrent client in Java by using ... by grzm on Sunday May 20, 2018 @10:40AM (#17112883)
Hacker News is a bit of a misnomer. The guidelines are clear as to what's appropriate to submit:

> "On-Topic: Anything that good hackers would find interesting. That includes more than hacking and startups. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual curiosity."

https://news.ycombinator.com/newsguidelines.html

It need not be new or news.

Re:How to write your own BitTorrent client in Java by using ... by detaro on Sunday May 20, 2018 @10:39AM (#17112875)
You've been here for over a year, shouldn't that be enough time to look at the rules once or otherwise realize Hacker News is not strictly for "news", and indeed the definition of good content for HN doesn't even mention news or new-ness?

You want to see content covering new developments for Bittorrent? Submit it instead of complaining that others content isn't revolutionary enough.

Re:How to write your own BitTorrent client in Java by using ... by atomashpolskiy on Sunday May 20, 2018 @10:44AM (#17112902)
The first link contains a list of 3 (three) libraries. I personally would not call that "long". Anyways, your opinion is much appreciated, I'll make sure to check with you next time I decide to post something on HN.
Re:How to write your own BitTorrent client in Java by using ... by lolptdr on Sunday May 20, 2018 @01:55PM (#17113952)
Just because you may have experience doing it doesn't mean other people may know about it. And just because it's not new doesn't mean it's not cool. The upvote-only scheme of HN will speak for itself so you shouldn't care so much.