This is impressive work, especially for a one man show! One thing that stood out to me was the graph of the sentiment analysis over time, I hadn't seen something like that before and it was interesting to see it for Rust. What were the most positive topics over time? And were there topics that saw very sudden drops? I also found this sentence interesting, as it rings true to me about social media "there seems to be a…
I actually did a blog post a few months ago where I analyzed HN commenter sentiment across AI, blockchain, remote work and Rust. The final graph at the very end of the post is the relevant one on this topic! https://openpipe.ai/blog/hn-ai-crypto
Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
141–150 of 171 posts
Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#142Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#143Earlier quoted context omitted.
HN is a pretty toxic place indeed.
> HN is a pretty toxic place indeed This may be a personal style difference, but I find HN to be the least toxic of all social media I’ve tried. LinkedIn would be my example of ultra toxicity – the aggressive positivity there is unbearable. At least on HN people tell you what they think and even use a constructive decently argumented approach to doing so. HN to me feels like a good technical discussion where people t…
Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#144I'm not in the ML/AI arena yet, so I couldn't fully understand the second half of the article except for having a general idea about Embeddings and their potential, but the first part is what interests me as a software engineer.
Following are some of the challenges the author came across, was able to overcome each of them, and published the full source code.
Downloading HN database
> There's also a maxitem.json API, which gives the largest ID. As of this writing, the max item ID is over 40 million. Even with a very nice and low 10 ms mean response time, this would take over 4 days to crawl, so we need some parallelism.
> I've exported the HN crawler [1] (in TypeScript) to its own project, if you're ever in need to fetch HN items.
Fetching and parsing linked URLs' HTML for metadata and text
> For text posts and comments, the answer is simple. However, for the vast majority of link posts, this would mean crawling those pages being linked to. So I wrote up a quick Rust service [2] to fetch the URLs linked to and parse the HTML for metadata (title, picture, author, etc.) and text. This was CPU-intensive so an initial Node.js-based version was 10x slower and a Rust rewrite was worthwhile. Fortunately, other than that, it was mostly smooth and painless, likely because HN links are pretty good (responsive servers, non-pathological HTML, etc.).
Recovering missing/dead links
> A lot of content even on Hacker News suffers from the well-known link rot: around 200K resulted in a 404, DNS lookup failure, or connection timeout, which is a sizable "hole" in the dataset that would be nice to mend. Fortunately, the Internet Archive has an API that we can use to use to programmatically fetch archived copies of these pages. So, as a final push for a more "complete" dataset, I used the Wayback API to fetch the last few thousands of articles, some dating back years, which was very annoying because IA has very, very low rate limits (around 5 per minute).
Finding a cost-effective cloud provider for GPUs
> Fortunately, I discovered RunPod, a provider of machines with GPUs that you can deploy your containers onto, at a cost far cheaper than major cloud providers. They also have more cost-effective GPUs like RTX 4090, while still running in datacenters with fast Internet connections. This made scaling up a price-accessible option to mitigate the inference time required.
This is the type of content that makes HN stands out from the crowd.
_____________________________
1. https://github.com/wilsonzlin/crawler-toolkit-hn/
2. https://github.com/wilsonzlin/hackerverse/tree/master/crawle...
Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#145Earlier quoted context omitted.
Thanks! Yeah I'd like to dive deeper into the sentiment aspect. As you say it'd be interesting to see some overview, instead of specific queries. The negative sentiment stood out to me mostly because I was expecting a more "clear-cut" sentiment graph: largely neutral-positive, with spikes in the positive direction around positive posts and negative around negative posts. However, for almost all my queries, the sentim…
The sentiment issue is a curious one to me. For example, a lot of humans I interact with that are not devs take my direct questioning or critical responses to be "negative" when there is no negative intent at all. Pointing out something doesn't work or anything that the dev community encounters on a daily basis isn't an immediate negative sentiment but just pointing out the issues. Is it a meme-like helicopter parent…
Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#146Earlier quoted context omitted.
Hey, thanks for the kind words. I wasn't able to mention the costs in the post (might follow up in the future) but it was in the hundreds of dollars, so was reasonably accessible as a hobby project. The GPUs were surprisingly cheap, and was only scaled up mostly because I was impatient :) --- the entire cluster only ran for a few hours. Do you have any links to your work? They sound interesting and I'd like to read m…
"Hundreds of dollars" sounds a bit painful as an EU engineer and entrepreneur :), but I guess it's all relative. We would think twice about investing this much manpower and compute for such an exploratory project even in a commercial setting if it was not directly funded by a client. But your technical skill is obvious and very impressive. If you want to read more, my old bachelor's thesis is somewhat related, from w…
Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#147Absolutely wonderful project and even more so the writeup! Feedback: on my iOS phone, once you select a dot on the map, there is no way to unselect it. Preview card of some articles takes full screen, so I can’t even click to another dot. Maybe add a “cross” icon for the preview card or make that when you tap outside of a card, it hides whole card strip?
Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#148Earlier quoted context omitted.
Thanks! Yeah I'd like to dive deeper into the sentiment aspect. As you say it'd be interesting to see some overview, instead of specific queries. The negative sentiment stood out to me mostly because I was expecting a more "clear-cut" sentiment graph: largely neutral-positive, with spikes in the positive direction around positive posts and negative around negative posts. However, for almost all my queries, the sentim…
The sentiment issue is a curious one to me. For example, a lot of humans I interact with that are not devs take my direct questioning or critical responses to be "negative" when there is no negative intent at all. Pointing out something doesn't work or anything that the dev community encounters on a daily basis isn't an immediate negative sentiment but just pointing out the issues. Is it a meme-like helicopter parent…
Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#149Re: Show HN: Exploring HN by mapping and analyzing 40M posts and comments for fun
#150Earlier quoted context omitted.
HN is a pretty toxic place indeed.
How did you get from negative sentiment to toxicity? Are those the same to you? It may be a cultural thing, but I think many people see negative sentiment as a constructive tool and a demonstration of trust and respect among people who recognize each others as robust and capable peers. Avoiding it is something you do with people who you believe need special delicacy: whether because they've told you so, because they…