Hello, thank you for writing the library. On my context it is useful for downloading large files without depending on a single point of failure or fixed location. Have a question in regards to the example syntax: client.startAsync(state -> { if (state.getPiecesRemaining() == 0) { client.stop(); } }, 1000).join(); This is a feature from newer Java syntax that I'm not yet familiar enough with lambdas to understand in f…
Show HN: Bt – BitTorrent library in Java 8
71–80 of 89 posts
Re: Show HN: Bt – BitTorrent library in Java 8
#72Earlier quoted context omitted.
Any savy Java developer knows how to AOT compile to native code, if that really matters. There are plenty of JDKs that support it, and even Oracle is finally adding support for it with Java 9, initially only for Linux x64. By Java 10 timeframe no one that only knows about OpenJDK and not the several other JDKs can state that Java starts slow vs C, because both will be AOT compiled to native code, loading native .so f…
From what I've seen Java/JVM AOT won't produce binary executables but shared libraries that will be loaded on startup by the JVM. When I first read about Java AOT-compilation I expected it to produce real executables that's why I think this is important to mention. But please correct me if I am wrong. So if this is true even with AOT compilation you still need the JVM as dependency (although I think you can get a min…
This is only relevant to Oracle's implementation though.
Other JDKs do support static linking, as long as you restrain yourself from features that could require dynamic compilation.
There was a talk at JVM Languages Summit about the current state of AOT compilation regarding Java 10.
https://www.youtube.com/watch?v=n5DCg6M2MDM&index=11&list=PL...
Re: Show HN: Bt – BitTorrent library in Java 8
#73I guess nothing to do with this but was triggered by two combined words: Torrent and Java
Re: Show HN: Bt – BitTorrent library in Java 8
#74Re: Show HN: Bt – BitTorrent library in Java 8
#75Man this looks slick, going to give it a shot. Love the ability to be able to download a magnet link from the CLI and not worry about what some fancy GUI is doing in the background cuz I am paranoid.
What things that makes you paranoid can a "fancy GUI" do in the background that an application with a CLI cannot also do in the background?
Re: Show HN: Bt – BitTorrent library in Java 8
#76Earlier quoted context omitted.
What things that makes you paranoid can a "fancy GUI" do in the background that an application with a CLI cannot also do in the background?
There’s less code for me to review in this project than say in utorrent or another application.
Re: Show HN: Bt – BitTorrent library in Java 8
#77Earlier quoted context omitted.
There’s less code for me to review in this project than say in utorrent or another application.
Talks about reviewing code, mentions a closed source application...
Re: Show HN: Bt – BitTorrent library in Java 8
#78I'm curious, it looks like the screenshot shows the author is using a Mac. But Mac OS hasn't shipped with Java in several years. So why Java? Is it simply familiarity, or are there other reasons?
A mix of both, actually. I've been using uTorrent for years until 2016, when I've decided to switch to some new OS X release. After installing the system update, the old, ad-free version of uTorrent has stopped working. The new version seemed a bloated mess to me, so I've tried a few other clients, but was left unsatisfied. Finally, in despair I've decided to write my own client with simplistic command-line UI, with…
I definitely like the idea. My question was more aimed to understand if Java has some desirable features for writing a torrent client maybe as part of the SDK or other 3rd party libs. I didn't even look at your source code yet :P
Java stood out to me because I don't think I've seen other CLIs written in Java.
Re: Show HN: Bt – BitTorrent library in Java 8
#79Earlier quoted context omitted.
do it! that'd be my use case more or less.
Done: https://github.com/atomashpolskiy/bt/tree/master/bt-cli#shel...
function bt() { java -jar /path/to/bt-launcher.jar -m "magnet:xt=urn:btih:$1" -d /$HOME/Downloads }
Re: Show HN: Bt – BitTorrent library in Java 8
#80Earlier quoted context omitted.
A mix of both, actually. I've been using uTorrent for years until 2016, when I've decided to switch to some new OS X release. After installing the system update, the old, ad-free version of uTorrent has stopped working. The new version seemed a bloated mess to me, so I've tried a few other clients, but was left unsatisfied. Finally, in despair I've decided to write my own client with simplistic command-line UI, with…
Thanks for the reply (it seems my question caused an uproar here, oops). I definitely like the idea. My question was more aimed to understand if Java has some desirable features for writing a torrent client maybe as part of the SDK or other 3rd party libs. I didn't even look at your source code yet :P Java stood out to me because I don't think I've seen other CLIs written in Java.