News for hackers. Stuff that matters.
Re:Most Popular Programming Languages on GitHub by OSS Insight by swiftcoder on Thursday April 13, 2023 @05:55AM (#35553202)
Does this dynamically load the data from the github API in frontend javascript on every page load?

Le sigh. Apart from the obvious UX issue of waiting for this data to load on every page navigation, a little caching might help avoid sending a DDOS at the GitHub API...

Re:Most Popular Programming Languages on GitHub by OSS Insight by samhld on Thursday April 13, 2023 @10:48PM (#35564967)
The data is stored in TiDB and queried from there. Is there a reason you assumed it was dynamically loaded in full via the Github API?
Re:Most Popular Programming Languages on GitHub by OSS Insight by swiftcoder on Friday April 14, 2023 @03:25AM (#35566520)
Yesterday it was taking 10+ seconds to load each dataset. Occams razor suggests missing caches in such a case (since the data doesn't change with any meaningful frequency).
Re:Most Popular Programming Languages on GitHub by OSS Insight by samhld on Friday April 14, 2023 @11:53AM (#35570927)
Interesting. I've never seen it take more than a second, or maybe two.