News for hackers. Stuff that matters.
Re:Picotorrent: a tiny, hackable BitTorrent client by kuroguro on Sunday March 17, 2019 @01:54PM (#19415279)
They decided to call it "pico torrent" even tho the client is several times larger than uTorrent?
Re:Picotorrent: a tiny, hackable BitTorrent client by hombre_fatal on Sunday March 17, 2019 @06:38PM (#19417208)
Well, not several times.

uTorrent for Windows: 2.84 MB https://www.utorrent.com/downloads/win

picotorrent.exe: 3.98 MB https://github.com/picotorrent/picotorrent/releases

picotorrent also seems to come with a language pack while you download uTorrent's separately at 1.3 MB. Not that I think it matters.

Also, don't forget to include any ads or malware that might download with your next version of uTorrent: https://en.wikipedia.org/wiki/%CE%9CTorrent#Ads_and_malware

Re:Picotorrent: a tiny, hackable BitTorrent client by yborg on Sunday March 17, 2019 @10:53PM (#19418372)
macOS Transmission : 10.6 MB macOS Slack : 185.8 MB

But it must be noted that Transmission doesn't support animated emojis.

Re:Picotorrent: a tiny, hackable BitTorrent client by huhtenberg on Monday March 18, 2019 @05:08AM (#19419603)
uTorrent from the actual uTorrent era, e.g. 2.2.1, is 394KB, so, yeah, it is in fact "several times."
Re:Picotorrent: a tiny, hackable BitTorrent client by rudigergerm on Monday March 18, 2019 @07:01AM (#19420090)
I am using Flud on Android, wonder what library it uses.

I've found it to be best, not tried transmission on Android tho.

Re:Picotorrent: a tiny, hackable BitTorrent client by viktorelofsson on Monday March 18, 2019 @06:05AM (#19419842)
Hi! Author here. The name has been with us since the beginning, and the first few versions were actually quite small. Since then, features and other things have made things grow (mostly in file size). Since I'm a lone developer, the hardships of working with the Win32 API has made me base PicoTorrent on wxWidgets, which is why the file size is what it is.

I still try to keep it slim, fast and clean in overall usage :)

Re:Picotorrent: a tiny, hackable BitTorrent client by huhtenberg on Monday March 18, 2019 @11:09AM (#19421669)
If you can elaborate on the nature of hardships, I can try and help working around them, without resorting to wxWidgets.
Re:Picotorrent: a tiny, hackable BitTorrent client by viktorelofsson on Monday March 18, 2019 @03:43PM (#19424444)
Sure! Two examples where the Win32 API and/or my knowledge of it falls short,

  * Layout management. There's no "easy" way of managing dialog layouts (letting controls expand/shrink on resize etc).
  * Custom controls (e.g a tree-list-view) are clunky to write.
I'd much rather write PicoTorrent on top of the pure Win32 APIs, which I did in the beginning. It then evolved and when I valued time against frameworks, frameworks won, and saved me time :)

You can hit me up at the email in my profile if you want to discuss further!

Re:Picotorrent: a tiny, hackable BitTorrent client by huhtenberg on Tuesday March 19, 2019 @06:43AM (#19429621)
Yeah, that's peanuts to be honest.

We wrote a layout manager and it's under 400 lines with very liberal vertical spacing. There's really not much to it - just hook the container window and reshuffle the contents in response to WM_SIZING, WM_SIZE. Handle WM_GETMINMAXINFO too if needed.

Custom controls aren't that much harder, but they do require some work indeed. TreeView and ListView are _really_ well designed in terms of customization support. The documentation is a bit heavy, granted, but once you get a gist of NMCUSTOMDRAW phases it's all pretty trivial from there.

Re:Picotorrent: a tiny, hackable BitTorrent client by viktorelofsson on Tuesday March 19, 2019 @08:05AM (#19430011)
Thanks for the information! It's given me a positive outlook on a second trial for the Win32 API stuff :)
Re:Picotorrent: a tiny, hackable BitTorrent client by kuroguro on Monday March 18, 2019 @08:08AM (#19420398)
No worries - would have done the same. Just found the naming a bit ironic :)