Tell HN: Lots of Ask HNs again

149 points | by dang 4 hours ago ago

69 comments

  • koolba 4 hours 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.

    • zahlman 3 hours ago

      I assume the reason this is faster is because they cache for specific values of M?

      • shermantanktop an hour 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.

  • zahlman 3 hours ago

    Thanks for the insight into how the system works. This level of communication is one of the best things about HN.

  • LukeShu 3 hours 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.

    • dang 3 hours 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.

      • altairprime 2 hours 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.

      • rgersten 2 hours 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.

        • dang an hour ago

          Good idea but #61 will often be the #60 you were just looking at.

          • rgersten 32 minutes ago

            Oh I see the challenge. So because the ranking could’ve changed, there’s a chance anything on the current page could’ve slipped to the following page. So with my naive algorithm, you could even end up with the replacement for 60 matching the user’s stale 59. In that case I’d go one step further and say whatever is 61 or higher currently that isn’t shown on the user’s stale page. If they refresh or navigate the expectation is rankings could change so it seems like a reasonable compromise. Though I really don’t have strong opinions here and trust y’all to get it right.

      • ibejoeb 27 minutes 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.

        • dang 21 minutes ago

          And have HN pages not consist of 30 stories? Unthinkable!

          • nextaccountic 8 minutes ago

            I understand this desire but, this is just more complication for its own sake

            There are loads of quality of life things that HN should have before maintaining a hack to ensure 30 stories per page even if you hide a story

      • minimaxir 2 hours ago

        > Say you have page 2 loaded and you hide a story. What story should replace it at the bottom?

        Do the 90's software development trick and put an Easter Egg instead.

    • Alex3917 3 hours 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.

    • 93po 3 hours ago

      please god dark mode too

      • _blackhawk_ 5 minutes 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.

      • apitman 2 hours ago

        Federated login would be better. Then you can securely use whatever UI you want

        • krapp 2 hours ago

          HN has an API, it's easy (enough) to write a client as long as you don't care about speed (in which case maybe use the Algolia API) and don't want to post.

          • dang 2 hours ago

            A new API is coming!

          • apitman 2 hours ago

            I want to post

      • krapp 3 hours ago

        We got GTA 6 before we got dark mode on HN.

        • cubefox 2 hours ago

          Or Markdown and LaTeX.

  • minimaxir 3 hours 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?

    • dang 3 hours 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.

      • snayan 3 hours 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!

        • dang 3 hours ago

          It is hilarious, so we laugh as the inbox crushes our bones.

          > Thanks for doing what you do to keep this site humming!

          That's not funny.

      • zahlman 3 hours 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.

        • dang 2 hours ago

          It was right around then but IIRC the Show HN surge preceded OpenClaw by a bit. Also, I don't have a good mental model of how OpenClaw would continue to be responsible for this 8 months later, whereas LLMs answering "where should I post my project" by recommending HN is easy to understand. Indeed some users have told us that Claude advised them to.

          It's great that new users are finding HN! But how to teach them what HN is for remains unsolved.

          • avarun 3 minutes ago

            [delayed]

          • post_below 21 minutes ago

            Particularly when their interaction with the site is partly, or even entirely, agent mediated!

            I'm not sure there's a good solution for that short of trying to block agent usage. I suppose you could serve an "agent guidelines" interstitial for suspected agents. Try to steer the agents towards steering the humans to actually interact with the site.

            In any case cheers for the decision to keep LLM generated posts off the site!

      • basilikum 3 hours 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.

      • minimaxir 3 hours 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.

        • dang 3 hours ago

          Any suggestions? I don't want to classify them explicitly as genai because that would create a perfect target for automated workarounds.

          • basilikum 3 hours ago

            Do they appear as [flagged][dead] or just [dead]? Isn't just [dead] the usual way here to mark (auto) moded but not user flagged posts?

            • dang 3 hours ago

              They appear as [flagged][dead].

              > Isn't just [dead] the usual way here to mark (auto) moded but not user flagged posts?

              Yes. The only detail I'd add is that moderators also sometimes mark posts as [flagged]. But I think you might be right that the software didn't use to put [flagged] on things.

              I'll look into reverting that.

              Edit: ok, it's reverted now.

          • minimaxir 3 hours ago

            What could an automated workaround accomplish? If you're tagging the post with a generated text classifier, the only way an adversary could bypass that is to write better text, which would result in https://xkcd.com/810/

            Given your anecdote about agents telling people to email you, it may be better to very explicitly show an error message such that the agent can tell its user that it's frowned upon. Humans barely read the HN Guidelines, agents definitely won't.

            If a separate tag is added [genai] wouldn't be good for the ambiguities you noted; something like [nonhuman] may get the point across better to both humans and LLMs.

            • post_below 14 minutes ago

              Agreed about messages targeted to agents. And worded to avoid looking like a prompt injection attempt, agents are jumpy about that.

              About the HN guidelines, in my experience frontier agents really like website terms and guidelines, especially for well known sites.

              If HN tells an agent that X is frowned upon, at the very least they'll pass it on to the user. They'll (likely) still go around it if the user tells them to, but at least it's a chance to send a message to the human.

            • dang an hour ago

              > which would result in https://xkcd.com/810/

              I used to believe that, and am tempted to dig up past comments where I said so. But now I believe that you could just perturb your AI comment with enough noise to bypass the classifiers, and this would not make the text more coherent or insightful or even normal.

            • zahlman 2 hours ago

              > If a separate tag is added [genai] wouldn't be good for the ambiguities you noted; something like [nonhuman] may get the point across better to both humans and LLMs.

              I'm thinking it should be something like [filtered], and also it should link to an explicit AI (specifically) policy page.

              • dang an hour ago

                That would invite automated workarounds even more, no?

      • kirubakaran 2 hours ago

        Well I recently submitted this: https://news.ycombinator.com/item?id=50488401 where I wrote the text myself, and it was flagged right away ¯\(ツ)/¯ I do appreciate all that you do, and there are only so many ways to say that.

        I emailed just to understand why it was flagged. It seems that the AI writing detector you use has a hair trigger.

        But I have to say: I did use AI to code the tool (but not to write the post). If that is also frowned upon, then yeah it was flagged correctly.

        In any case it is disheartening to submit something only to be immediately wiped off with no chance for anyone to even see it.

        • dang an hour ago

          Did you use any other tools to edit the text? (I don't ask that adversarially! just interested in learning how this all works.)

          • kirubakaran an hour ago

            No, I typed it up in an Emacs buffer, pasted the outputs in (two examples to illustrate, and one to show the list of options), added the 4 spaces for those lines, copy-pasted the whole thing into the HN textarea and hit submit iirc.

            If your detector doesn't have a high false positive rate, then I must be beginning to sound like an LLM, which is quite possible I suppose.

            • dang 27 minutes ago

              I believe you, of course. And it seems inevitable that, since the LLMs train on what people write, some people-writing will overlap with the LLMs.

              And yes, it's dismaying. The principle of "better the guilty go free than one innocent be punished" doesn't work in this new world, where the 'guilty' are orders of magnitude more productive.

              • kirubakaran 23 minutes ago

                No worries, I understand. Thanks again!

      • tayo42 3 hours 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.

        • zahlman 2 hours ago

          FWIW, easily accessible translation services all use LLMs now as far as I can tell. If you haven't heard much about DeepL lately, that's probably at least partly because it doesn't do anything special any more.

          (An anecdote: I was testing my Japanese and wrote a joke, and fed it to Google Translate for a back-translation to make sure it was understandable. The joke depended on https://en.wikipedia.org/wiki/Japanese_wordplay#Goroawase which I indicated using furigana for full-width digits. Google Translate interpreted this by explaining the joke, in full prose, requiring an extra half a sentence that wasn't there.)

          (Another anecdote: over three years ago, Google Translate infamously-in-the-community turned https://x.com/irys_en/status/1684134312139182080 into something lewd, basically by ignoring the half-width katakana word entirely. I just tested now and… it still does the same thing. Except, it got it right for the reply tweet. So I really have no idea.)

          But at least people on Reddit would try to give an excuse. People on Stack Overflow would resume using accounts after years of inactivity, blatantly copy-paste the most obvious 2023-era ChatGPT slop you can imagine, and then swear up and down on meta that they had done no such thing, often using ChatGPT again to make that case. (This was in every single case I can recall someone with a freely chosen username that read like a real name, suggesting a very small list of likely countries of origin, who had previously demonstrated barely any ability to write coherent English whatsoever. Just saying.)

        • dang 2 hours ago

          No doubt a few are fibbing but I'm pretty sure not all of them are.

          Actually I think it's relatively rare. We see different patterns for different use cases and nearly always what users tell us matches the data we see.

    • jarym 2 hours 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!

      • dang 2 hours ago

        Did you use any other tools to edit the text?

    • gnabgib 3 hours ago

      The automation presents this way as well as human-flags.

  • seizethecheese 3 hours ago

    Interesting. The root cause here is what you’d expect if LLMs are a boost to linked submissions more than text based ones.

    This doesn’t have to be nefarious, I myself am writing a lot more human written blogs than I would otherwise due to the speed I can do interesting analysis. Many other interesting posts here are thoughtfully created projects using coding agents.

  • eterm 3 hours ago

    While we're on the topic of the "meta" pages, could we please get /active or similar, which would be /newest but filtered for submissions that have had at least one upvote or comment?

    The downside I suppose is that it might diminish further the chance of anyone reading /newest, but during most times /newest is already just too much, and I've considered writing my own client to filter for "active" stories, but I'd rather not have to.

    • dang 3 hours ago

      I know the dilution of /newest is a problem, but I'm not sure that this is a good way to solve it, for the reason you mention.

      I suppose we could put it on /lists and then only the grizzled users would know about it. But grizzled user attention is what /newest needs the most, so we don't want to deprive it of that.

    • altairprime 2 hours ago

      /new is really interesting to browse and occasionally upvote. There is a ton of good content that never makes it to the FP, amidst the 25-28 disposable submissions per page, and I keep finding and reporting spammers. Lots of good payoff for the time.

    • swed420 3 hours ago
  • vemv 3 hours ago

    Very tangential, but kindly allow me to highlight a frustrating issue: collapsed comments only remain collapsed for a about two weeks.

    If instead they remained collapsed for one month, then I could reliably use them for the monthly whoishiring thread without my precious collapsing work going to waste.

    (I had emailed about this issue, with no luck)

    • dang 3 hours ago

      Someone emailed us about this a few months ago - could that have been you? (edit: oops I see you said exactly that.)

      The good news is that it sticks in my mind* as something we need to fix. The problem is that loading saved collapses is already the slowest part of rebooting the HN server process. We don't do that as often as we used to but it's important that it not take too long.

      (* you have no idea how rare that is)

      • bombcar 2 hours ago

        Could you store collapses in localstorage instead and punt to the browser?

        • altairprime 2 hours ago

          I would be fine with my collapsing being browser-local if it cuts server downtime dramatically. Never occurred to me that collapses sync to the backend at all?!

          • stogot an hour ago

            I can’t fathom it’s NOT client side!

        • dang 2 hours ago

          People seem to like that their collapses persist across browsers and devices.

          • asalahli 2 hours ago

            That's me, I'm the people

            It's especially valuable to me for the "What are you working on?" posts where I want to go through all of the answers, but can't do it in one sitting

  • toomuchtodo 3 hours ago

    Thank you!

  • vivzkestrel an hour ago

    why doesnt HN implement a tagging system? like add tags like opinion, ai, gpt, llm, php, java, node, ruby, programming. some tags are more generic and some are more specific and every post has a combination of generic and specific tags

    • 4um an hour ago

      I am building "4um" an extension that tags all articles promoted to the front page (an a billion other features). I currently have 1 user (me) but if you want to test it out:

      https://4um.online/extensions

    • dang an hour ago

      We've always resisted adding tagging to HN (see e.g. https://news.ycombinator.com/item?id=22649809). The main value of it is if you want to shard the site into subsets, but on HN the idea has always been that everyone sees the same site.

      Nothing's forever and we could change that, but it would have to be clear why. And since tagging also adds noise, the benefit would have to exceed the cost.

      • vivzkestrel an hour ago

        the benefit would be you can use a tag exclusion filter like -ai (google allows this and so does stackoverflow) and suddenly exclude every article tagged AI on HN and drill down to topics that matter to you. You could even add a combination something like "[programmming] -[AI] -[GPT] -[LLM]" to show all articles on hn that deal with programming in some form but excluding everything tagged AI , GPT, LLM. could you enlighten me on how such a search would be done currently?