Earlier quoted context omitted.
opening and quiting vim for a file of 2500 lines of C++ (so with all the plugins and stuff) takes 0.030seconds. I don't see how you can be satisfied with 2 seconds startup for a terminal application
Well the torrent download will take a lot more than 2 seconds so that time is totally amortized. Besides this comparison looks like a total bikeshedding unless you plan on downloading torrents with vim. By the way the project looks fantastic. I'll be giving it a try. The alternative for just command line torrent on a *nix is aria2 [0]. Works exactly as advertised. [0]: https://sourceforge.net/projects/aria2/
Show HN: Bt – BitTorrent library in Java 8
41–50 of 89 posts
Re: Show HN: Bt – BitTorrent library in Java 8
#42Re: Show HN: Bt – BitTorrent library in Java 8
#43There are many great BitTorrent clients out there, yet I've made my own and willing to share and attract collaborators!
Re: Show HN: Bt – BitTorrent library in Java 8
#44Nice work. I'm wondering, how would you test/benchmark such an application. Besides manual testing on a variety of torrents, how would you do regression test there? same question for benchmarking. How to compare this work with another client?
Benchmarks (like in libtorrent) is something I'm looking forward to, but the project is still in the early stage -- there's a lot to be done with regards to optimization, i.e. switching to using NIO selectors, adding a caching layer, etc. That's a lot of work, and that's why I'm looking for collaborators, before investing more time into performance-tuning.
Re: Show HN: Bt – BitTorrent library in Java 8
#45Re: Show HN: Bt – BitTorrent library in Java 8
#46Nice work. I'm wondering, how would you test/benchmark such an application. Besides manual testing on a variety of torrents, how would you do regression test there? same question for benchmarking. How to compare this work with another client?
I have several hundred unit tests and also a bunch of integration tests. While UTs usually test API of individual classes, each of the ITs creates a swarm of local peers and launches a torrenting session with certain conditions: seeders to leechers ratio, downloading from .torrent file vs using a magnet link, PEX enabled/disabled, encrypted vs raw message streams, etc. Benchmarks (like in libtorrent) is something I'm…
Re: Show HN: Bt – BitTorrent library in Java 8
#47Re: Show HN: Bt – BitTorrent library in Java 8
#48Earlier quoted context omitted.
Some apps just include JRE into the app package (+100MB), and just use it if it's not provided by OS. But then you need to provide different app packages for different OSes.
C, Go, and Rust would require different app packages for different OSes--that's not a problem. The problem is bundling a 100MB runtime for a CLI.