News for hackers. Stuff that matters.
Re:Chess, but neither player moves first by gershy on Monday November 14, 2022 @05:25PM (#33602181)
Hope you don't break my site :)
Re:Chess, but neither player moves first by mensetmanusman on Monday November 14, 2022 @05:37PM (#33602346)
Seems broken, is this a simultaneous move interface for chess? sounds interesting!
Re:Chess, but neither player moves first by shric on Monday November 14, 2022 @05:39PM (#33602371)
That already exists: https://www.kfchess.com/
Re:Chess, but neither player moves first by gershy on Monday November 14, 2022 @05:40PM (#33602386)
It's not the same!
Re:Chess, but neither player moves first by shric on Monday November 14, 2022 @05:42PM (#33602411)
I believe you :) Just pointing out what the parent described.
Re:Chess, but neither player moves first by jojobas on Monday November 14, 2022 @05:45PM (#33602450)
This is realtime chess with cooldown, OP seems to have made the "lock in a move for simultaneous execution" (nobody seems to have seen it).
Re:Chess, but neither player moves first by mensetmanusman on Monday November 14, 2022 @05:48PM (#33602474)
Yes, this is what I was asking about. A lock-in move mechanism.
Re:Chess, but neither player moves first by palata on Monday November 14, 2022 @05:53PM (#33602529)
kjchess is pretty fun, just tried!
Re:Chess, but neither player moves first by jojobas on Monday November 14, 2022 @05:37PM (#33602347)
Aaaaand it's down.
Re:Chess, but neither player moves first by gershy on Monday November 14, 2022 @05:40PM (#33602383)
Oy vey... working on it
Re:Chess, but neither player moves first by subroutine on Monday November 14, 2022 @05:58PM (#33602596)
Hurry gershy!

In the meanwhile, others might be interested in visualizing a Reddit (and HN) hug of death:

https://www.tylermw.com/visualizing-a-reddit-hug-of-death-an...

Re:Chess, but neither player moves first by Shared404 on Monday November 14, 2022 @06:26PM (#33602924)
Looking forward to checking your site later gershy (and placing this comment as a reminder :P ), but I'll admit I'm glad in a horrible sort of way that it means I was able to see this article.
Re:Chess, but neither player moves first by gershy on Monday November 14, 2022 @06:06PM (#33602671)
This is a great article, thanks! :)
Re:Chess, but neither player moves first by Player6225 on Tuesday November 15, 2022 @08:14AM (#33608741)
eyes on the road, gershy! :P
Re:Chess, but neither player moves first by tomglynch on Monday November 14, 2022 @05:37PM (#33602342)
too bad. it's broken.
Re:Chess, but neither player moves first by ummonk on Monday November 14, 2022 @06:53PM (#33603173)
I have to point out that this was an entirely predictable outcome of submitting it to hacker news…
Re:Chess, but neither player moves first by Retr0id on Monday November 14, 2022 @07:01PM (#33603250)
It is possible to survive HN traffic.
Re:Chess, but neither player moves first by danuker on Monday November 14, 2022 @07:03PM (#33603270)
Even my dedicated Apache server threw errors for static pages every now and then, when serving gigabytes per hour.
Re:Chess, but neither player moves first by ummonk on Monday November 14, 2022 @07:10PM (#33603353)
It’s trivial to survive HN traffic with a static site (assuming you know in advance that the site needs to be prepared for HN traffic) - just stick it behind a CDN.
Re:Chess, but neither player moves first by pifm_guy on Monday November 14, 2022 @07:25PM (#33603492)
I found HN front-page to still be less than about 1 user action per second. Ie. Pageload.

That means if your site loads fast, you typically won't ever be serving more than a single user at once, so unless you're serving it on a burstable CPU and you run out of burst capacity, you should be fine.

Re:Chess, but neither player moves first by nicoburns on Monday November 14, 2022 @08:27PM (#33604063)
Yeah, my site which is hosted on fly.io's smallest VM with 256MB RAM and only part of a CPU core was on the HN front page the other day and I was surprised to see that it barely even registered the resource usage: consuming just 50MB RAM with a 0.2 load average.

It is a fairly simple webpage, and it's rendered in Rust so it's probably more efficient than most. And perhaps it didn't get as much traffic as other things on the front page, but I was still expecting worse given how much some sites seem to struggle.

Re:Chess, but neither player moves first by danuker on Monday November 14, 2022 @08:07PM (#33603861)
Re:Chess, but neither player moves first by ummonk on Monday November 14, 2022 @11:10PM (#33605163)
Then use a performant webserver like Nginx and beef up your server hardware.
Re:Chess, but neither player moves first by nathell on Monday November 14, 2022 @09:26PM (#33604496)
I host my static sites on a single cheap VPS from Scaleway, and it handles frontpage HN traffic just fine without CDNs.
Re:Chess, but neither player moves first by jsjohnst on Monday November 14, 2022 @09:41PM (#33604577)
> It’s trivial to survive HN traffic with a static site

It’s fairly trivial to survive HN traffic, full stop. I’ve seen the RPS live from several “#1 on homepage” posts with hundreds of comments (let alone upvotes) and as another commenter stated, it’s at most single digit requests per second.

Re:Chess, but neither player moves first by nicoburns on Monday November 14, 2022 @08:20PM (#33604003)
Isn't Apache infamously slow? If you're serving a lot of traffic I'd consider switching to a faster server (nginx or similar).
Re:Chess, but neither player moves first by nomel on Monday November 14, 2022 @10:42PM (#33604988)
> If you're serving a lot of traffic I'd consider switching to a faster server

I don't think anyone with a small personal site should spend too much time planning for that single, improbable, day when traffic might increase by several orders of magnitude.

With most hosts I've had, that type of increase would just trigger DDOS protection and/or take down the site with its itty bitty quota limits.

Re:Chess, but neither player moves first by julian_sark on Tuesday November 15, 2022 @02:29AM (#33606306)
1. host website with AWS

2. Get featured on HN

3. Suddenly Jeff can hire all the folks back he's laying off, from the bandwidth proceeds.

Re:Chess, but neither player moves first by cellis on Monday November 14, 2022 @08:24PM (#33604038)
Not with hub and spoke sockets, it aint (not easy at least).
Re:Chess, but neither player moves first by danuker on Monday November 14, 2022 @07:01PM (#33603256)
Only if it's sufficiently successful.
Re:Chess, but neither player moves first by gershy on Monday November 14, 2022 @10:41PM (#33604984)
It was a learning experience :')
Re:Chess, but neither player moves first by noduerme on Tuesday November 15, 2022 @01:26AM (#33605954)
Can't access it, but what's the server running?
Re:Chess, but neither player moves first by gershy on Wednesday November 16, 2022 @01:57AM (#33619819)
A framework I wrote from scratch! (https://github.com/Gershy/hut in case you're curious)
Re:Chess, but neither player moves first by joshxyz on Tuesday November 15, 2022 @01:50AM (#33606071)
still on the front page, good luck with that haha