4 ms·
Bring your own ranking with an SQL input in the profile! /s
by kuroguro 5y ago
Bring your own ranking with an SQL input in the profile! /s
- bsksi 5y agoI wonder if one could express a complex ranking algorithm in, say, yaml Or maybe send the entire list of links of the day to the client and sort it using JavaScript provided by the user
- manx 5y agoDoing it client-side could actually work.
- consumer451 5y agoHmmm, maybe no "/s"? That sounds really cool, especially if users can explore each other's custom feeds. HN admins would get some useful stats on popular feeds. Hackers get to hack... Would be an interesting experiment, maybe they've tried it before?
- kuroguro 5y agoWell the /s is for security implications as well as performance. You can imagine someone writing a clever query to extract hashed passwords or something from different tables. Also with the amount of traffic HN gets the front page is probably cached - running a query for every single request sounds expensive. It would be very cool if possible tho.