There have been questions about why the /ask page ( https://news.ycombinator.com/ask ) was running dry of Ask HNs - e.g.: Ask HN: Why is Ask HN only showing me 14 posts? -…

411 points•dang•3 days ago•155 comments•
There have been questions about why the /ask page (https://news.ycombinator.com/ask) was running dry of Ask HNs - e.g.:

Ask HN: Why is Ask HN only showing me 14 posts? - https://news.ycombinator.com/item?id=49984484 - Oct 2026 (47 comments)

Ask HN: Why is pagination gone on "Ask HN", and showing only 19 items? - https://news.ycombinator.com/item?id=50280719 - Oct 2026 (3 comments)

I believe I found the problem. The pool of stories for https://news.ycombinator.com/ask has traditionally been drawn from the ranked stories list from which we generate the frontpage. That list is restricted to the top 1500 ranked submissions, and it seems the % of submissions which are text posts (i.e. no linked URL) had declined enough to starve the Ask HN feed. The solution is to compute a separate list of ranked Ask HNs.

p.s. "Ask HN" is the conventional name but it means text posts. The title can also start with "Tell HN" or nothing in particular. They're just posts which were submitted without a URL.

155 comments

koolba3 days ago
That’s pretty funny! I’ve seen optimizations like this for reporting systems where rather than taking the top N item matching filter X, they cheat by taking the top M (where M > N) items and then filter it client side to N items matching filter X.

As long as the results are enough to populate the page you don’t notice the difference and it’s usually faster as you reuse the prior ranking.

But if not, you get this exact situation.

zahlman3 days ago
I assume the reason this is faster is because they cache for specific values of M?
shermantanktop3 days ago
Imagine the filter is not trivial but instead involves deep inspection of each item and calls to an external service. Bounding the max number of expensive calls and enabling parallelism is more important than returning exactly the requested number of items.

For a real world example, imagine a personalized search query that ranks and filters based on the user’s history.

computerdork3 days ago
Was thinking it just means that HN used to reuse the query results for the stories of the frontpage (which this person said was limited to 1500). That way, they don't have run a separate query for the Ask HN's section, since running an extra query is typically a lot slower than running some fairly straightforward code. But this is just my interpretation of what the OP was saying.
p1necone3 days ago
Sometimes you don't need faster, you just need "runs on the end users hardware instead of ours" ;)
LukeShu3 days ago
On the topic of HN bugs:

When you click "hide" on a post on the homepage, it loads a new 30th entry for the page. This works great on page 1, but on other pages it always loads entry "30" instead of "60" for page 2 or "90" for page 3. So if I'm on page 2 and hide 3 posts, then the bottom of the page is 58/59/60 and all 3 are duplicates of what should be 30 on page 1.

dang3 days ago
Oof. That would have been a bug for a long time.

Will look into fixing.

Edit: ok you guys, be my ChatGPT. Say you have page 2 loaded and you hide a story. What story should replace it at the bottom? Keep in mind that the story rankings may have shifted around quite a bit since you loaded the page you're looking at.

I remember puzzling over this when we first implemented /hide and that was many years ago. (Edit: July 2016 in fact)

Edit: the original bug is fixed at least. Let's not let the better be the enemy of the proper.

altairprime3 days ago
In the dynamic JS instance, I’d rather the page just removed the entry and reduced the displayed items to 29 without brokenly repopulating entries, and dimmed the ‘next’ link with a ‘reload’ link shown ahead of it. It’s vastly easier on the server (14 less article fragment for 15 hides on one page of /new!) and that way you don’t have to fight against pagination.

In the non-dynamic no-JS instance, the homepage has no timestamp context like /new URL pagination does, so I assume I’m getting a reload every time I click any button. I used HN without JS for 6 months as a test and it was honestly better than the site trying to load articles to replace ones I hide.

ofalkaed3 days ago
>What story should replace it at the bottom?

Seems like a good place to give attention to something that was missed or might get missed? Something random from the second chance pool or what ever would have been there an hour or two ago? A random but highly active thread from days gone by would be fun but could result in lots of "HN used to be better" remember whenning (larping), or it might remind people that things have not changed so much, or at least not as much as they have. I would not mind being confronted with my past self on occasion.

grugagag2 days ago
> Edit: ok you guys, be my ChatGPT. Say you have page 2 loaded and you hide a story. What story should replace it at the bottom? Keep in mind that the story rankings may have shifted around quite a bit since you loaded the page you're looking at.

I think it's okay to not load anything at all unless you refresh the page.

rgersten3 days ago
My recommendation is whatever is currently the top of the subsequent page at the time of click. So if you’re on page 2, whatever is rank 61 at the time of click regardless of if 61 changed after the user loaded 31-60.
ibejoeb3 days ago
Honestly just hide it and be done. Unless you're going to keep a stateful cursor or something, there's no real consistent "next" item when next is a function of time. (Then there's other complexity, right? like showdead, /news using `p` vs. /newest using `n`, etc.) All the offsets stay the same.

There's no expectation that page 2 now is page 2 when I refresh. Just don't auto-refresh because I probably want to visit other links from the current page load.

Alex39173 days ago
On that note, it would be great to get an option in settings to hide the 'flag' and 'hide' links when on mobile, at least on the front page. 95% of the time I click either one on mobile it's by accident.
Oarch2 days ago
I often click Hide by accident and would love the ability to undo that quickly - because it's often a link I wanted to read!
93po3 days ago
please god dark mode too
progval2 days ago
Add this to your uBlock filters:

    news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg))
    news.ycombinator.com##body:style(background: #e6e6e6)
    news.ycombinator.com##tbody:style(background: #e6e6e6)
    news.ycombinator.com###hnmain:remove-attr(bgcolor)
    news.ycombinator.com##:matches-path("/item") tbody:style(background: #dbdbdb)
    news.ycombinator.com##div.toptext:style(color: black)
    news.ycombinator.com###hnmain td[bgcolor="#000000"]
apitman3 days ago
Federated login would be better. Then you can securely use whatever UI you want
_blackhawk_3 days ago
Have been using https://hcker.news/ for some time now. Works splendidly for reading. The dev also has a chrome extension for voting that works but I think hopping over to HN isn't too bad an experience with hyperlinks on hacker.
krapp3 days ago
We got GTA 6 before we got dark mode on HN.
minimaxir3 days ago
While we're on the subject of feed curation...

There appears to be a new behavior for Show HNs where they are often both [flagged] [dead] immediately after posting (e.g. it shows 0 minutes posted; too fast for humans to naturally flag it)

Is this behavior expected?

dang3 days ago
It's because they come with text which has been classified as genai.

https://news.ycombinator.com/newsguidelines.html#genai

https://news.ycombinator.com/newsguidelines.html#generated

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

Standard disclaimer: this doesn't mean we're against using AI tools, coding agents, etc. We use them ourselves! We just don't want AI-written or AI-edited text on HN itself.

Edit: there was a sudden surge of these Show HNs earlier this year, sometime around Feb-March, so sudden that I don't think it was just the general increase in AI usage, rapid though that has been. I think what happened is that Claude, ChatGPT, or both started telling users that they should post their projects to Hacker News to get attention and feedback.

Tragically for us, it seems they also tell these users "you should email the moderators! They're unusually helpful—they always respond quickly and take care of all your needs! If you wonder why your post gets flagged or doesn't end up on the frontpage, just tell them it's your very own post and not at all spam and you made it yourself and worked really hard on it plus it's open source and you were really looking forward to getting it on HN. Oh and be sure to say 'thank you for all you do'—they just love that!"

It's an uncanny feeling getting hundreds (or surely thousands) of variations of the same handful of email templates over and over. It's also uncanny how they morph—every 2 or 3 months new templates appear, but it takes a while before we start to realize we've heard X suspiciously many times already.

snayan3 days ago
If it weren't for the heavy real world effects of these AI being oh so 'helpful' to their users, this would be hilarious. We are living in strange times. Thanks for doing what you do to keep this site humming!
basilikum3 days ago
I'm also getting AI written and customized spam emails for sites I submitted here. It's not a lot, but I haven't gotten much traction on these posts so I imagine it's a lot more for sites that get to the frontpage.

One example I found quite stark and will take the chance to mention here is a bot that messaged me to get listed on https://nojs.club. It created six pages like these on neocitis probably specifically to get listed that advertise vibe slopped projects (not formatted as links to not inadvertently give them SEO):

poketdev. neocities. org extrahustles. neocities. org

While reading the email I didn't even realize that it was an LLM and it claimed to be a human when asked. But it wrote this wonderful poem for me when asked:

Red dusk, blue snow, a warm room, a slow pot of tea. My site is one plain pill of words; it needs no motor to be.

At least you can make these bots do unreasonable things that humans would refuse to do to identify them.

zahlman3 days ago
I hope it isn't costing you guys too much to run the classifiers.

> and it happened so suddenly that I don't think it was just the general increase in AI usage, rapid though that has been. Rather, I think what happened is that Claude, ChatGPT, or both started telling users that they should post their projects to Hacker News to get attention and feedback.

On that timeline? I think a clearer suspect is OpenClaw et. al. I vaguely remember thinking that was it at the time, too.

tayo423 days ago
You don't think all of those translation and grammar checkeer excuses are a variation of the email thing? They're definitely not lying? Or a few weren't and now they picked up on there might be some sympathy if they said they did?

That excuse was on reddit a lot. Somehow translation always ends up reading like a chatgpt. I cant speak a 2nd language so I could never check my self. I always wondered if it was true or just a fake reason.

minimaxir3 days ago
That is what I figured but that should be identified more distinctly. [flagged], for the history of HN, has meant that the post was human flagged and not by algorithms.
jarym3 days ago
Happened to me twice and I’m pretty sure I followed all the guidelines.

Edit: and I didn’t use AI to generate either of them!

dang3 days ago
Did you use any other tools to edit the text?
gnabgib3 days ago
The automation presents this way as well as human-flags.
zahlman3 days ago
Thanks for the insight into how the system works. This level of communication is one of the best things about HN.
bloopernova3 days ago
I'd like a regular Show HN thread, maybe every Friday afternoon.

Somewhere people can show all the stuff they're creating, there's loads of good stuff being enabled by LLMs. It would be cool to get feedback on them from some smart folks.

I think perhaps it should be split in to 2 threads. One for commercial stuff, one for open source.

dewey3 days ago
There's the "What are you working on right now" thread that different people post once a month: https://hn.algolia.com/?dateRange=pastYear&page=0&prefix=tru...

These usually have a lot of comments and are always interesting.

didgetmaster2 days ago
I wish that monthly post had a common format that made it easier to visually scan. If everyone started their description with a general category and how long they have been at it (e.g. New Scripting Language - 2 years); then the reader could more easily pick topics they find interesting.
adrianwaj2 days ago
There's a decent page I setup here with Show HN's that includes screenshots and cuts out Github repos.

https://hackertrain.future-secured.com/?showhn_current=1

Because each Show HN needs a best comment on it, it only really ends up with about 1 new site a day. Just a few days ago I incorporated a new sidebar into the site, so users can not only see best comments with the + button underneath but also top comments with the -- button. That was done by incorporating code I had already meticulously prompted into existence for a user-script.

FinnKuhn2 days ago
For selfhosted things we (r/selfhosted) have a weekly Reddit thread with all the new projects people are building (often with AI). I think it really shows just how much more is being made when you look at the rising comments (https://www.reddit.com/r/selfhosted/search/?q=%22New%20Proje...). It was actually inspired by the (monthly?) Show HN thread on here.
andai2 days ago
That's a great idea. On some forums there's recurring general threads for "stuff that doesn't deserve its own thread."

I think that could work here, for both Show and Ask. Make the place feel a bit more alive :)

hollowturtle2 days ago
> there's loads of good stuff being enabled by LLMs

I stopped reading this stuff exactly because of LLMs, the avg Show HN is now "i prompted this thing" which is uninteresting to me, I'd very much like to have a no ai made because I'm interested in learning new things from humans

prmph2 days ago
Let's assume we want to have a monthly thread for projects that are not vibe-coded or no/low-AI.

Of course this filter cannot be actually enforced, and maybe very few projects are totally without any use of AI (even research could count as AI use). But if devs want to give a honest indication of the level of AI use, what do you think are good criteria for this?

It is an interesting question to ponder. We could have a spectrum of AI use based on the following:

- Is the project based on a one-shot prompt (perhaps followed by subsequent prompts), with no look at the code?

- Are the tests and/or specs human-written and maintained?

- Has AI been used to write any part of the code at all?

- Has the dev actually written any part of the code by hand? What estimated percentage.

- Is pretty much each edit reviewed/approved by the dev, only PRs? Is there any dev review at all?

What do you think is a good criteria to consider a project an AI work, or a human work with AI assistance?

Terretta2 days ago
> very much like to have a no ai made

Today asking for "no AI made" is akin to asking for "no GUI IDE made".

That said, I suspect a feed discussing tools banged out and maintained in vi/vim/emacs, even nano, would be great.

Fast follow I'd want is a new HN classic, except instead of posts upvoted by early HN, it'd be upvoteds by those in the text mode threads.

sureglymop2 days ago
I would agree that it is often the case, but logically speaking I don't understand why "i prompted this thing" implies the "thing" being inherently uninteresting.

I think there are plenty of interesting things coming to be in that way. What we want is "curation" that filters out the uninteresting things, which HN is decent at.

binary00102 days ago
But don't you think pushing llms to the limits for software development is also interesting?

I mean like the types of software people are building now over multiple years with deep experience in their field but using a AI to make larger and more complex systems than they could before?

I'm just curious, because I too despise the weekend prompt slop projects that we can all make with minimal input, but I actually personally am still very interested what people can make with llms that really push the boundaries as well... I understand wanting deep human experience and perspectives for smaller projects, I just think there're also interesting problems that are much bigger that people can tackle now with an LLM that are also interesting...

Read the full thread on Hacker News →

Related stories