News for hackers. Stuff that matters.
Re:Can LLMs write better code if you keep asking them to "wr... by Fizzadar on Friday January 03, 2025 @12:51PM (#42587833)
This exactly highlights my fear of widespread use of LLMs for code - missing the actual optimisations because we’re stuck in a review, rather than create, mode of thinking.

But maybe that’s a good thing for those of us not dependent on LLMs :)

Re:Can LLMs write better code if you keep asking them to "wr... by raybb on Friday January 03, 2025 @08:37PM (#42591460)
Well if you or anyone else that has good optimization and performance chops http://openlibrary.org/ has been struggling with performance a bit lately and it's hard to track down the cause. CPU load is low and nothing too much has changed lately so it's unlikely to be a bad query or something.

Main thing I've suggested is upgrading the DB from Postgres 9, which isn't an easy task but like 15 years of DB improvements probably would give some extra performance.

Re:Can LLMs write better code if you keep asking them to "wr... by dgacmu on Friday January 03, 2025 @09:08PM (#42591643)
It might not be as awful as feared? That big a jump probably requires a dump and restore, but maybe it could still be done in place. pg_upgrade is pretty solid. But I agree - it's likely a cheap and easy perf win.
Re:Can LLMs write better code if you keep asking them to "wr... by tylerhou on Saturday January 04, 2025 @03:01AM (#42593283)
Is there source code / a GitHub link with more information?
Re:Can LLMs write better code if you keep asking them to "wr... by raybb on Saturday January 04, 2025 @09:50AM (#42594993)
Re:Can LLMs write better code if you keep asking them to "wr... by tylerhou on Sunday January 05, 2025 @03:08AM (#42600424)
Is there a specific issue with more context? I looked at the repo already but it’s not obvious which operations are slowest / most important to optimize.
Re:Can LLMs write better code if you keep asking them to "wr... by raybb on Sunday January 05, 2025 @09:59AM (#42602159)
Unfortunately the discussion mostly is on their public Slack channel which you have to fill out the volunteer form to join.

But there are several more specific issues about performance: https://github.com/internetarchive/openlibrary/issues?q=is%3...