Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For fun, I fed this interview question to GPT-4 with aider. See the chat transcript linked below.

The data structures look sensible and it did most of what the interviewer wanted on the first try.

It did make the wrong initial assumption that we wanted 2 unique pages per day. When prompted with a clarification, it made a sensible fix.

When asked to optimize, it went for big hammers like parallel processing and caching. As opposed to saving memory by only storing one file in the data structure as the author discussed.

https://aider.chat/share/?mdurl=https://gist.github.com/paul...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: