Hacker News new | ask | show | jobs
by Charon77 280 days ago
Absolutely love how readable the entire project is
3 comments

It's AI generated
How do you know? The over-commenting?
I know because this is how an AI generated project looks. Clearly AI generated README, "clean" code, the way files are named, etc.
Not sure myself. Commit messages look pretty human. But the emojis in readme and comments like "// Re-export key structs for easier access", "# Add any test-specific dependencies here if needed" are sus indeed.
To me it looks like LLM generated README, but not necessarily the source (or at least not all of it).

Or there's been a cleaning pass done over it.

I think pretty clearly the source is also at least partially generated. None the less, just a README like that already sends a strong signal to stop looking and not trust anything written there.
Because the author said so on Reddit.
The repeated Impls are strange.
Where? Don't see any on latest main (685467e).
`llm.rs` has many `impl LLM` blocks
It is very procedural/object oriented. This is not considered good Rust practice. Iterators make it more functional, which is better, more succinct that is, and enums more algebraic. But it's totally fine for a thought experiment.
Never knew Rust could be that readable. Makes me think other Rust engineers are stuck in a masochistic ego driven contest, which would explain everything else I've encountered about the Rust community and recruiting on that side.
Most Rust code looks like this - only generic library code goes crazy with all the generics and lifetimes, due to the need to avoid unnecessary mallocs and also provide a flexible API to users.

But most people aren't writing libraries.

Don't underestimate what some programmers trying to prove their cleverness (or just trying to have fun) can do if left unchecked. I think most Rust code does indeed look like this but I've seen plenty of projects that go crazy with lifetimes and generics juggling where they don't have to.
Not sure what you’re alluding to but that’s just ordinary Rust without performance or async IO concerns.