News for hackers. Stuff that matters.
Re:Ask HN: Total karmic wealth of all HN? by joshmn on Thursday April 16, 2015 @01:08AM (#9385977)
Not an admin, so I can't speak to what they have available. But as a hacker...

Since the usernames are not queryable via an integer (e.g. user?id=1235654321) it's not exactly the most trivial of things. You'd have to go through an endless amount of posts, get every possible username from the comments, go through all stories submitted, grab their usernames, and then loop through the HN API and grab karma info.

Re:Ask HN: Total karmic wealth of all HN? by S4M on Thursday April 16, 2015 @08:05AM (#9387315)

    select sum(karma) from user_data;
If the HN server uses an SQL database and has a table users containing the user names and their karma - and they must have something like that since the karmas are displayed on the profiles.
Re:Ask HN: Total karmic wealth of all HN? by krapp on Thursday April 16, 2015 @11:22AM (#9388562)
Flat files and Lisp macros, with everything stored as closures in RAM, AFAIK. HN doesn't use a relational database at all[0], unless they added one recently.

[0] http://arclanguage.org/