Live data from Hacker News

I replaced all our blog thumbnails using DALL·E 2

deephaven.io

51–60 of 338 posts

Re: I replaced all our blog thumbnails using DALL·E 2

#51

Earlier quoted context omitted.

It's coming for us, too. It won't be long before most software engineer positions are eliminated while some are replaced by software "technicians" with enough expertise to command AI to generate working code. Perhaps the technicians will be tasked with building tests and some automation, but even that stuff can be delegated to AI to an extent. This may seem far off because the present economy is accustomed to paying…

> software "technicians" with enough expertise to command AI to generate working code People keep trying to make simplified programming environments for significantly less-trained people and they keep failing. Is mixing in an AI actually going to make it easier to get a result that has no crippling bugs?

No, but when have crippling bugs ever stopped software businesses from shipping it anyway?

Re: I replaced all our blog thumbnails using DALL·E 2

#52
post #45

Earlier quoted context omitted.

Fwiw, in my experience you don't actually need a CDN just to survive HN. It may be enough to just make sure you're not hitting a DB on every request; ideally you'd be caching the HTML output wholesale (via static site generator or otherwise) For reference: with cached HTML, my single Node.js process running on Heroku's cheapest tier has weathered the front page multiple times without breaking a sweat

I switched backends a bunch of times because everything I tried (Go stdlib HTTP, Tornado, etc.) kept getting taken out whenever I would hit the front page, either due to CPU overload or some sort of resource leak. I ended up using Warp+Wai+Servant ( https://github.com/yesodweb/wai ) and it has been smooth sailing since then off my $3/mo VPS. It can take thousands of req/sec without flinching (which is higher than wha…

Did you use some software/service for load-testing the alternatives?

Re: I replaced all our blog thumbnails using DALL·E 2

#53
post #41
post #22

Earlier quoted context omitted.

Just curious, is there any general number range for how much traffic a front page post might get? Less than 10k, 10-100,000, 100,000+, etc

I'll see on the order of 10k-25k hits (hard to say exactly, most of HN uses adblockers/tracker blockers and I use CloudFlare for caching) from an article on the HN frontpage. It's not that bad, and I could almost certainly serve it off my colo'd server without any trouble - bandwidth just isn't that high. But as my blog is entirely static (except for the comment threads, hosted on my Discourse forum), I just let Clou…

> Then I can go even more oldskool and parse my server logs for stats and referrers and such!

Expect to see a bunch of bots. I tried setting up server-side analytics for a WordPress-based website, but I had to get rid of it as the bot traffic made it essentially useless.

Re: I replaced all our blog thumbnails using DALL·E 2

#54
An important lesson: >99% of your blog readers will visit during If your goal is to allow people to read the stuff you write, you must be capable of serving your content to >1000 people per second.

Use a good backend (I recommend Servant+Warp or Snap - the only two I've tried that could handle it, out of probably 15 popular options tested) or a good caching reverse proxy (insofar as such a thing can be said to exist) and/or a CDN.

Re: I replaced all our blog thumbnails using DALL·E 2

#58
post #9

Am I one of the few people who finds these generated pictures really bad? They often have weird and unsettling details when you look closely. I mean, it’s an incredible achievement in AI that we can generate images at this level, but I don’t want them shown to me on a daily basis while I’m reading blogs.

For maximum coherency, you have to make batches of 50 - 100 and pick the best one. Which can be time consuming and expensive.

Re: I replaced all our blog thumbnails using DALL·E 2

#59
post #52
post #45

Earlier quoted context omitted.

I switched backends a bunch of times because everything I tried (Go stdlib HTTP, Tornado, etc.) kept getting taken out whenever I would hit the front page, either due to CPU overload or some sort of resource leak. I ended up using Warp+Wai+Servant ( https://github.com/yesodweb/wai ) and it has been smooth sailing since then off my $3/mo VPS. It can take thousands of req/sec without flinching (which is higher than wha…

Did you use some software/service for load-testing the alternatives?

Yes, I first tested locally with httperf and some other tools. I took it as a good sign when the load testing tools crashed before my server did. Then, I found a few services by searching for something like "website load test" and using their free tier (which would typically generate something like a few hundred req/sec - sufficient to simulate HN).

Re: I replaced all our blog thumbnails using DALL·E 2

#60
post #22
post #6

You should've invested in CloudFront first because your site isn't loading.

Just curious, is there any general number range for how much traffic a front page post might get? Less than 10k, 10-100,000, 100,000+, etc

Second place for a few hours and ~1k points resulted in around 50k unique visits.

If your website is a collection of static files and you're hosting them on S3+CloudFront or something similar (GitHub pages works too), then it'll work without any issues and cost pennies for the whole thing.

Post reply on HN