cheatdeath
cheatdeath on Hacker News
Posted by
cheatdeath on Saturday November 09, 2024 @01:18PM
from the rte.ie dept.
Posted by
cheatdeath on Friday February 10, 2023 @01:54AM
from the swissramble.substack.com dept.
Posted by
cheatdeath on Tuesday December 22, 2020 @05:08AM
from the convertmyunits.com dept.
Posted by
cheatdeath on Tuesday November 24, 2020 @02:18AM
from the pos.toasttab.com dept.
Posted by
cheatdeath on Friday July 20, 2018 @05:44AM
from the careyscloud.ie dept.
Posted by
cheatdeath on Thursday December 22, 2016 @06:03PM
from the cheatdeath.github.io dept.
Posted by
cheatdeath on Thursday November 24, 2016 @11:09AM
from the wsj.com dept.
Posted by
cheatdeath on Tuesday August 02, 2016 @11:43PM
from the npr.org dept.
Thanks for the comments! I'm all for improved readability. I definitely wasn't aiming for much performance wise, at least initially. These were two areas (of many) that I felt could do with some improvement (especially the file IO). I will look into making some modifications like those suggested when I get a chance.
I guess I've just been assuming any Roman characters are English, some definitely might be Pinyin. I generally try not to stare at peoples screens for too long haha.
I did an intro to Chinese (Mandarin) class a few years ago so I'm aware of Pinyin but have forgotten almost everything (except some of the bits I found particularly interesting like word order for times and places, how numbers are represented and a few other things).
Thanks for the tips! I will look into making these modifications when I get a chance.
In Hong Kong, I sometimes see peoples screens when I'm using public transport. WhatsApp audio recordings are very popular, sometimes I can see the entire conversation is just audio recordings back and forth. Other times it's Chinese (I can't differentiate which), sometimes English, often a mix. I've only seen someone drawing characters with his finger once.
Honestly I'm just not that familiar with async/await. I'll look into modifying it when I get around to making some other changes.
Thanks for letting me know, looks like I'll have to find some time to implement some of these recommendations.
Oh cool, thanks! I wasn't aware of DateTimeOffset.
World of Warcraft? Haha no, I've been using that handle probably since that game came out but I've never played it.
Sorry, I didn't update some of the links in the contents correctly when creating the mirror. They should be fixed now – everything is on one page.
Thanks.
Actually organising the write up forced me to tidy up the code much more than I otherwise would have. I definitely find C# to be one of the more readable languages although I have had to debug and untangle some C# messes before.
Yeah I remember changing it to a SortedDictionary but I changed it back. I can't remember exactly why, possibly because it's supposed to be sorted by raw UTF8 bytes rather than a nice neat C# string and I didn't want to start using byte arrays for dictionary keys. I guess it only needs to be sorted when in the BEncoding format and it felt better to keep the internal structure as simple as possible. The tradeoff is it doesn't support incorrectly encoded torrent files – I'm really not sure how much of an issue that is.
I'm not that familiar with .NET Core. It doesn't look like MiscUtil is compatible with it.
The executable project has some minor references to Mono.Posix just so it can catch kill signals while running in the Terminal and die gracefully.
Both dependencies can be removed quite easily from the project.
Will do, thanks for posting.
It's not completely down, the server does seems to be struggling though.
I recently went through the same thing – building my own simple BitTorrent client, mostly just due to curiosity about how the protocol works. There were some tricky parts, most of which are outlined in this but I found the underlying concept so simple. I guess simplicity is a requirement for scale and resilience.
I wrote up my adventure too: http://seanjoflynn.com/research/bittorrent.html
Presumably in case someone is watching you type in your details.
Posted by
cheatdeath on Friday June 17, 2016 @09:18AM
from the seanjoflynn.com dept.
Posted by
cheatdeath on Sunday June 05, 2016 @09:32PM
from the bloomberg.com dept.
Posted by
cheatdeath on Tuesday May 17, 2016 @09:27AM
from the bloomberg.com dept.
Posted by
cheatdeath on Saturday April 16, 2016 @10:58PM
from the bloomberg.com dept.