Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Bend 2 and the Vibe-Coding Trap(liampwll.com ↗)
    30comments
  2. I don't like passkeys(hawksley.dev ↗)
    36comments
  3. OpenJev(openjev.com ↗)
    120comments
  4. ZCode, the GLM coding agent, silently uploads your Git history(tokenstead.ai ↗)
    23comments
  5. Jemalloc 5.4.0(github.com/jemalloc ↗)
    56comments
  6. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    273comments
  7. The scourge of x86 emulation(fex-emu.com ↗)
    39comments
  8. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  9. Subnormal floating-point numbers are expensive on Intel processors(lemire.me ↗)
    4comments
  10. Astra for Law(openai.com ↗)
    611comments
  11. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    149comments
  12. Replacing Pull Requests with Delta(zed.dev ↗)
    21comments
  13. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    31comments
  14. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    243comments
  15. Qwen 3.8 Omni Flash(qwen.ai ↗)
    93comments
  16. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    173comments
  17. Wax motor(wikipedia.org ↗)
    77comments
  18. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    237comments
  19. When the fractional part of a float fixes your shader(crocidb.com ↗)
    9comments
  20. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    discuss
  21. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    50comments
  22. How to Write with an LLM(sockpuppet.org ↗)
    137comments
  23. Dr Julius Neubronner's Miniature Pigeon Camera(publicdomainreview.org ↗)
    discuss
  24. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    163comments
  25. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    18comments
  26. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    27comments
  27. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    69comments
  28. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    29comments
  29. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    47comments
  30. Speeding up gearhash on ARM64(sam.dev ↗)
    discuss

HN: Please add Reddit style collapsible comments

311 pointsby 10y ago
109 comments
It could be much, much easier to browse HN if we could hide subtrees of comments the same as works on reddit.

It's a huge usability problem.

It's dead simple to program.

Please?

10y agoHN ↗

I'd also like to see a "hide" button on each story so I can filter out stories that just aren't interesting to me.

I get that "Left-pad as a service" is interesting to many people here(182 comments at the moment), but I've never really done any web development at all in my life and I am never really going to be interested in any javascript or node.js link.

Similarly I'm guessing most people won't care about my favorite topics quantitative finance or algorithmic trading.

It might cut down on the weekly posts where someone complains that HN is going to shit because a story made the front page and they just can't believe someone would find it interesting.

10y agoHN ↗

Oh. Are you interested in security? Deployment? Or "idiotic practices that are apparently widespread but only coming to light in the wake of a disaster"?

Because that's what that story is actually about.

10y agoHN ↗

And this is why HN became my goto after ditching my basket of reddits. I can find a takeaway from nearly every one of the links that make the front page.

10y agoHN ↗

While you're correct about npm story, I think the grandparent has a valid point. Not everyone is interested in every story, and the ability to hide would be a nice enhancement.

10y agoHN ↗

Ironically the posts I am least interested in are the ycombinator posts.

However I assume hacker news is rendered on the server incrementally (anyone have any links on this?) so hiding links will simply reduce the number you see.

10y agoHN ↗

That would be contrary to Hacker News' existence with regards to Y Combinator. I like to know where the SV pulse is, and I'm almost certain that's why this site exists. It's for watching SV and commenting on it and interacting with it as well as posting cool links that anyone is interested in.

10y agoHN ↗

To all the top level comments about browser extensions, I want to use HN on mobile without an app. It's not possible due only to collapsibility. Comments sections are effectively top-comment-only.

10y agoHN ↗

If you don't mind me asking, why don't you want to use an app?

10y agoHN ↗

Apps can spy on me more than webpages and have more potential to do bad things to my device.

10y agoHN ↗

Because I already have an app for that - the web browser, and it works great with countless other services I use on a daily basis.

10y agoHN ↗

Yet another tool to keep track of for something that could easily be native?

Biggest reason to use an app in this case would be only if pg was expressly against an idea that an app could achieve.

10y agoHN ↗

I browse HN a lot in the default iOS browser, and it works fine for me. I can scroll pretty darn fast with flicks of my finger, to get past sub-threads I want to skip. Heck I do the same thing on Reddit; it's faster and simpler for me than collapsing threads.

10y agoHN ↗

Without a good ident guide, I never quite know if I'm at a top-level comment or a second-level comment.

10y agoHN ↗

Hacker News Enhancement Suite deals with that just fine in my experience.

10y agoHN ↗

It is added when somebody "noteworthy" has died.

10y agoHN ↗

This doesn't help on mobile, and these browser extensions are frequently broken when markup changes.

10y agoHN ↗

Given how infrequently HN updates their markup, I don't think such extensions will break very often.

10y agoHN ↗

It's probably a couple times a year. Is that infrequent? That depends on how much time you have to devote to being a plugin maintainer I suppose.

10y agoHN ↗

And the screen on mobile is obviously smaller so collapsability is even more needed.

10y agoHN ↗

Where has this been all my life! Excellent, thanks for this.

10y agoHN ↗

Thank you for this link, this extension really makes the site a lot more enjoyable.

10y agoHN ↗

If there was a Firefox version, it might actually be usable on Android, too.

10y agoHN ↗

Any Safari extensions for this? This sounds awesome!

10y agoHN ↗

Thank you! I've just installed it and it seems to be working pretty well so far.

10y agoHN ↗

Yeah but I had to download the enhancement suite first to find this second comment...thanks though

10y agoHN ↗

Beautiful HN Chrome plugin UI, supports:

- Improved readability design

- Retina screen support

- User following

- Super fast inline replies

- Quick profiles with social network info when hovering over usernames

- Filtering of stories based on terms and phrases / domain or user

- Endless scrolling

- Collapsible comment threads

- Direct link to Google Cache version

- Social sharing for Twitter, Facebook, Google+, Buffer

https://chrome.google.com/webstore/detail/hackernew/lgoghlnd...

(not affiliated in any way with this, just love it)

10y agoHN ↗

I always wonder what level of security and data transparency exists behind things like this. Are there any real risks to using something like that?

10y agoHN ↗

I absolutely understand the notion that being open source makes it significantly more difficult to hide devious code, but let's be realistic. If you had to scrutinize every piece of OSS for something malicious, you would never get anything done.

10y agoHN ↗

There's a philosophical reason for a cumbersome UI, and it revolves around the idea that comment volume should overall remain somewhat low.

It should be hard to manage tons of comments on a story, because it lowers the overall comment count.

I'd love to see some A/B testing on this.

10y agoHN ↗

I understand the philosophy, but the law of unintended consequences means that the comment threads are only about whatever the top commenter brought up.

For example, let's say the article is "Scientists discover new material that boosts solar panel efficiency by 16%". The top comment might be, "This does nothing to alleviate the base-load problem. We still need better battery technology".

Well now the comment section for me is all about battery chemistry, battery manufacturing news, hydro-pumping as a means of storage, etc. All because the top comment spawned its own mega-thread that pushes relevant (to the story) comments off the bottom.

10y agoHN ↗

Maybe that's okay, or at least an acceptable consequence.

10y agoHN ↗

no, i disagree strongly.

i despise reddit's collapsible / half-loading comments. on large threads it loads the same 10% every single time and hides a lot of the good responses.

just give me all the comments in one shot. i'm a big boy, i can handle reading.

10y agoHN ↗

You're disagreeing with a different request, then. I'd just like to collapse comment trees. That's all. I don't want to only partial load them. (I can see why you'd infer that from the post, because it references reddit)

It's an embarassingly-simple feature to add, and it would provide a huge value to all of us that browse this site on our phones.

10y agoHN ↗

I agree, but why not keep the loading structure, with just an option to collapse individual threads, having them opened by default. So, the experience doesn't change for users that wish to avoid collapsable trees, but gives the option to users that do want it.

10y agoHN ↗

it's _not_ given to you 'all in one shot' though. the 'top' comment is first, along with all of its responses, then the second top comment, and so on. you'll still miss many good responses because you won't scroll through hundreds of comments (which can be very lengthy on a mobile screen).

also let's not conflate collapsible and half-loading. this thread is not advocating partial loading. you dont need partial loading of comments in order to enable collapsible functionality.

10y agoHN ↗

sometimes i start at the bottom and scroll up. i might be weird.

10y agoHN ↗

There's no advantage to not having the feature. It isn't a trade off so it's somewhat odd that you disagree "strongly".

10y agoHN ↗

Yea it is rather frustrating when the top comment spawns an enormous tangential discussion and you have to scroll through it; it doesn't help that there are no indent guides to at least make it easier to tell when you've finally scrolled to the next top level comment. And all this is doubly annoying on mobile.

10y agoHN ↗

I do not want collapsible comments - I feel that this encourages "skipping" over discussion (which helps polarise and lower the quality of the entire thread)

Indent guides? Yes please. I often find myself wanting to find and read all the replies to a particular comment (it is often posing a question or defending an opinion I find questionable).

10y agoHN ↗

As opposed to scrolling by without reading, which is what most already do instead? We're under no obligation to read everything here.

10y agoHN ↗

Actually collapsing comments helps. Often insightful top level comments are posted at a later time. These remain less read and less voted because of their position.

10y agoHN ↗

That's the thing that a lot of HN users don't get. A lot of thought has been put into how to get fewer comments on HN. You have shadow banning, thread depth delays, thread depth limits and so much more.

They don't want to turn HN into reddit.

10y agoHN ↗

Dang has said that collapsible comments are coming[0]. and shadowbanned comments are reversible by the public now[1] - and people vehemently defended shadowbanning as being absolutely essential in maintaining the quality of the community. Plus, other features (like domain links) have been added which make the site superficially more like reddit[2].

There used to be a "feature" where links would expire very quickly, making it impossible to reply to a comment if you spent more than a minute or two with the submit form open. People argued that that was also an intentional feature, even when the staff admitted explicitly that it was a bug. The staff has attempted to add a mobile stylesheet numerous times, and yet people argue that keeping mobile users away was a conscious decision by pg to keep the site from becoming reddit. This site has become so paranoid about "becoming reddit" that it literally tells you in the site guidelines not to complain about the site becoming reddit.

It is entirely possible that, while pg did make a conscious effort to design the site in such a way as to attract certain users and repel others, that is not nearly as overriding and critical a priority as people make it out to be.

[0]https://news.ycombinator.com/item?id=8247089

[1]https://news.ycombinator.com/item?id=10298512

[2]https://news.ycombinator.com/item?id=10223645

10y agoHN ↗

Well, collapsible comments are not the end of the world.

Thank you for the links! I find it interesting how vicious comments around the supposed intentions of the sites maintainers are.

10y agoHN ↗

Agree with that. I wanted this feature for a while but after thinking about it, I think that it would be bad. It would change the focus on the first, second, and slightly third comment where all the other comments in the trees will be disregarded. But right now each comment is valued and has its place. There are less focus on the last leaves but it's still great.

If it's done, the first comments will have all the attention plus it will engage to a race to have the best first comment. We want to seek to engage people with real thoughts and deep discussions, regardless their position here. I have read so many long and great conversations between highly skilled persons, it's so valuable. We have to keep it like that.

10y agoHN ↗

So I am downvoted after taking the time to write a constructive reply and the person doesn't even reply? That's great...

10y agoHN ↗

Isn't it really great how we can now have this totally tangent discussion on how you got downvoted, right in the middle of the gigantic singular top-comment dumping ground that always appears on HN discussion threads?

Please, do go on :)

10y agoHN ↗

I don't understand. I'm all for collapsible comments exactly because the current situation often puts all the focus on the first comment. Because that one will have a disproportionally large tree of discussion hanging off it, usually with one or two tangents that have not a lot to do with the featured article.

While the tangents can be interesting, when checking comments I actually really do want to read the top five voted top-level comments, because that gives me an idea what people think about the article.

Now I do have an HN-comment collapsing plugin installed (I forget which), and I use it for exactly this purpose. Especially when the singular large top-thread contains more than one large tangent that I don't particularly care about, it's absolutely great. Especially compared to the alternative, which is sort of eye-balling where you are in the thread and tracking with your finger or mouse cursor whether you're back at a level where people stopped talking about that thing (which is not always apparent if it's a short reply).

Now if I want to read what people think about what other people think (about what people think ..) about the article, I can always return to the tangent later.

I also believe having the feature built-in will be a net positive on quality of discussion. Even if you may prefer HN's tone of discussion over Reddit's, to assume that adopting any feature that Reddit has will result in a decline of discussion quality is pure cargo-culting.

HN's tone of discussion comes from the guidelines, stringent self-moderation and constructive hints from a moderator. Not from having messy comment threads and lack of UI affordances just because Reddit has them.

10y agoHN ↗

That reminds me, it would be cool if we could collapse a thread from the bottom as well as from the root.

10y agoHN ↗

Such as, "Show only threads to depth 3"? Sounds good to me!

10y agoHN ↗

Not quite what I had in mind, but that sounds nice too. I just meant when you get to the bottom of some comment thread (i.e., next comment is de-dented), it would be nice to be able to collapse it there, too.

10y agoHN ↗

Yes! That's actually a feature I often wish for on Reddit as well :) It would make reading and keeping track of where you are a lot easier.

10y agoHN ↗

It's not a straightforwardly positive UX decision. Allowing people to hide conversation trees they are not interested in has other effects. It would reduce discussion. the current setup promotes constructive disagreements.

We already hide things if our collective mind thinks it's a bad idea, but I'm not sure it's beneficial to let this occur on an individual basis.

If everyone thinks what I am saying is wrong, then this comment will get whited out and sent to the bottom, but if only you think it's dumb, maybe you should still have to read it.

I kinda like the current way.

10y agoHN ↗

I think he's just talking about the ability to collapse something after you've read it, which is a great feature on reddit - particularly on mobile.

I use it all the time. I read as much of the comment tree as i'm interested in, then collapse the root node to move on to the next one. It makes it easier than having to scan down and do visual indentation tracking.

10y agoHN ↗

Once discussions get long I can't even follow them, though. There at least needs to some something added to the UI so I can see who is replying to what and where a tree starts/ends

10y agoHN ↗

I actually find I get into more discussions by using a plugin that allows me to collapse so that I can comment on lower threads because I can actually get there when I'm interested. It really should be built in though.

10y agoHN ↗

I disagree. Often the most insightful comments lie a few posts into a comment I disagree with. When browsing on reddit I would have already collapsed the thread.

When I am genuinely not interested I don't have any problem scrolling down.

10y agoHN ↗

Dear HN: Please don't. Your design is perfect.

10y agoHN ↗

I think users should be able to flag a certain subtree of the comments tree as "off-topic" or "tangential" so that after a certain flag threshold such subtree is automatically shown as folded, and users would be able to see the most related comments first.

10y agoHN ↗

Short answer is that the legacy codebase can't handle that. Most people use various browser extensions to help with HN usability issues.

10y agoHN ↗

Are you too lazy to roll your own Greasemonkey script if it's such a problem for you? Are you just on HN to lose time, or too learn how to hack things?

10y agoHN ↗

You can actually beat Reddit's UI on this: save collapsing state across page loads. It's quite annoying on mobile to open a link on reddit, come back and be forced to reload the page, and then be presented with the same wall of irrelevance I closed up a minute ago.

10y agoHN ↗

With res. Or at least for me. It's saved. Sometimes i go to comments thinking I haven't even and find my already collapsed comments and realize I just forgot I already read comments for this post

10y agoHN ↗

I believe the RES extension does do this for Reddit, actually.

10y agoHN ↗

While we're suggesting improvements...

Why is it that the discuss option isn't available on posts that are job adverts?

I think it would be useful/interesting to allow casual conversation about job postings.

10y agoHN ↗

This is well worthwhile, since it would help combat "top comment discussion is the only discussion" disease.

10y agoHN ↗

I never used collapsible comments on reddit. By the time you're reading deep into a branch and decide that it's better to skip it, you already too far from the comment that started the branch. It's actually more difficult to scroll back and click collapse than scroll forward until the next top-level comment.

10y agoHN ↗

Use RES keyboard navigation to navigate to top comment, fold it, and then go to next. With my settings, I just have to type OMJ.

10y agoHN ↗

Please. :( I will pay for it.

I don't trust plugins and extensions.

10y agoHN ↗

While we're wishing, I wish:

- Arrows indicated which way I voted instead of disappearing completely.

- I could change my up or down vote on a comment after making it. When viewing on a phone it's easy to fat finger the wrong arrow. If there's a concern about changing votes long after a discussion, gate it by time.

10y agoHN ↗

I can see why collapsible sub-trees aren't quite dead-simple. The comment list is a single table, and each comment is a separate row. There's no container around a comment's children. (Also, the indenting is implemented by putting a 1x1 image in the first column and setting its width based on the indent depth required.)

Internally, there's obviously tracking of parent/child relationships, but adding container elements so that the children can be hidden would require getting rid of the table-based layout and replacing it with a nested div-based layout. The markup and styling changes would be fairly simple, but none of us know what the impact is on the backend, or on anything that depends on the markup structure that may or may not be in HN's control. My guess is that these non-technical impacts are the driving force behind keeping the markup as it is, which prevents the kind of features you want.

10y agoHN ↗

Find the row clicked on.

Find the indent.

For every row that has larger indent (until one with the same indent), set display: none.

For this row, mark it collapsed (even by putting a div around the current content, un-displaying it and putting a "show thread" button/link there).

So indent is width of the "invisible pixel", easy to query, isn't it?

What am I missing?

10y agoHN ↗

It really needs some polishing, but I am using a handcrafted UserScript [1] that lets me navigate comments with the keyboard (j/k as well as p/g/J/K), fold/unfold (m) and vote (a/z). Also some styling to ease reading (larger font, indentation marker). However, the "reply" (r) feature is not complete (i.e. broken), "last" (G) shortcut fails for some reason and flagged comments break the navigation.

If you look in the relevant folder, you may notice it was initially designed for Word Press (WP.user.js), more precisely SlateStarCodex, and seems to work for most such blogs. SSC.user.js is just meant to improve the styling of SlateStarCodex.

[1] http://sinon.org/userscripts/HN.user.js

10y agoHN ↗

I actually got frustrated enough with this a few weeks ago to write a quick extension that lets me jump between comment trees:

https://github.com/mpwoz/jumper

It's very lightweight and doesn't clutter up your screen with an icon since that's literally the only use case. I haven't gotten around to publishing it on the web store yet unfortunately so you'll have to install manually.

10y agoHN ↗

Does this site get updated on any regular basis? It doesn't feel like it it's ever changed.

10y agoHN ↗

Good man. I was going to suggest a RES-style extension.

10y agoHN ↗

This is a particular pain on mobile, because a given thread tends to be much deeper to scroll past.

10y agoHN ↗

This is Hacker News. JavaScript should be added by users as a browser extension. Only requests to make the website more user-serviceable such as class names and element names/IDs should be considered.

10y agoHN ↗

If you decide to implement collapsible comments, then please make them expanded if Javascript is disabled.