Live data from Hacker News

Show HN: I wrote a BitTorrent Client from scratch

github.com

21–30 of 68 posts

Re: Show HN: I wrote a BitTorrent Client from scratch

#21
post #17

Earlier quoted context omitted.

[flagged]

Or like a go beginner, which is fine

Scanning around their other repositories the persons been programming for a few years now. There are ‘.cursor/rules’ directories in some recent repos.

I think it’s a reasonable hypothesis that “I wrote a BitTorrent client from scratch” may be “I produced a BitTorrent client from cursor”.

Re: Show HN: I wrote a BitTorrent Client from scratch

#22
post #17
post #45

Stub for offtopicness

[flagged]

Yes, very strange. There's no problem with using AI to build your first app and leaving the generated comments in the code is fine. But the number of comments on this thread that begin "This is so cool" is very suspicious.

Re: Show HN: I wrote a BitTorrent Client from scratch

#25
post #17
post #45

Stub for offtopicness

[flagged]

"convert length string into an integer" is a machine generated comment?

I've been writing code for 15+ years, this made me laugh my ass off. Comments are great, I don't read comments but I write them for others, especially for open source code. Atoi may be something you and I and a whole bunch of others know but people who don't it's a fine comment. Relax! :)

Re: Show HN: I wrote a BitTorrent Client from scratch

#30
post #17

Earlier quoted context omitted.

[flagged]

"convert length string into an integer" is a machine generated comment? I've been writing code for 15+ years, this made me laugh my ass off. Comments are great, I don't read comments but I write them for others, especially for open source code. Atoi may be something you and I and a whole bunch of others know but people who don't it's a fine comment. Relax! :)

In the tests it more obvious:

You can see here for example: https://github.com/piyushgupta53/go-torrent-client/commit/61...

and some strings coming from crawled resources like: lengthi12345e4 but slightly different tokens (like 25 instead of 35 etc).

Gemini Pro 2.5 even gave me the prompt:

> If you asked me, "Generate Go unit tests for a Bencode decoder function called Decode that takes an io.Reader and returns an interface{} and an error. Cover strings, integers, lists, and dictionaries, including common error cases and nested structures" the output I would strive to produce would look very much like the code you've shown.

> It's a good example of well-written Go tests, and that's the kind of pattern I've learned to recognize and replicate.

and a lot actually matches when you ask from a fresh conversation.

So most likely Cursor + Gemini 2.5 Pro, but I cannot blame, I spend 100% of my time with Claude, and I take ownership of the code.

Post reply on HN