12 points sillysaurusx 2 hours ago 4 comments
I had more things I wanted to do with this, but I should probably admit to myself I probably won't be.
The original idea was for https://news.ycombinator.lol to be "Hacker News, but all the comments are AI." Right now it's "Hacker News, but all the comments are the same as the real HN." Hence, it's completely pointless.
Special thanks to dang for collaborating -- he even suggested the name for the codebase, "sharc".
Development time was about four months of near daily work: https://github.com/shawwn/sharc/tree/main/docs/agents/handof... Some days I'd spend a solid 16 hours on this.
What's the point? None, really. Just to test the limits of my abilities and prove to myself that I could do what pg did.
It's an extremely efficient port of HN to Common Lisp. One of the project's goals was to be high performance. According to benchmarks, it can generate pages very slightly slower than real HN. (dang shared some timings on a particularly busy page, along with how many views it got over a certain time period, for benchmarking throughput. I never got around to verifying whether I can handle 24 million views a day, though, so I'd imagine something might break if you scale this up. On the other hand, I think it'll hold up.)
If you're particularly offended that this is copying your comments, claim your account by going to your profile (for example, I would go to https://news.ycombinator.lol/user?id=sillysaurusx) and then click "claim" at the bottom. It'll ask you to put a 6 digit code into your real HN profile, at which point you'll be able to reset your cloned profile's password. Log in, go to your profile page, and set "redact" to "yes", the same way you'd set "showdead" to "yes" on HN.
So, why make this? Eh, call it an art project. That's code for "It would've been a lot funnier with AI generated comments, but I seem to have stopped working on this for now." I'll post an update someday, if I can figure out how to do it without paying hundreds of dollars of API token prices.
/ask and /show are missing. Those were the only two features left to clone. But pretty much everything else is there. It's been running for a couple months now, so I suppose it's stable enough for a public showing.
Not that there's any reason to look. Shoo! Go find a more worthy project to devote your attention to. :)
Kind of melancholy admitting that I spent four months with only something pointless to show for it.
But then again, here's the punchline: go to any random comment on HN, then in the url change .com to .lol and you'll see an almost pixel perfect recreation. For example, https://news.ycombinator.lol/item?id=49995615
Sadly you can't form a loop, because if you edit your original comment with a link to itself, you'd only be able to go from HN to .lol to HN. But you could list both and switch between them as much as you want.
For example:
https://news.ycombinator.lol/item?id=49996495
https://news.ycombinator.com/item?id=49996495
This project was one of the most technically demanding things I've ever done. People look at HN and go oh, that? That looks easy. If you think so, I invite you to write it yourself -- it's an exercise that'll certainly make you a better programmer, and gain appreciation for how many subtle features we enjoy here on HN.
Ha, and I just discovered a new one. I mixed up the "title" and "url" boxes just now. HN popped up a nice looking overlay that said "please enter a URL", pointing to the actual url box. https://i.imgur.com/agFas7x.png The HN team is always adding something or another, even if it's not always visible. Normally I'd dive into this and find out how it works and clone it, but ... eh, I'll settle for a 95% exact clone.
ShinyLeftPad 47 minutes ago | parent
FWIW your pages seem to load at least 2 times slower here. no idea if real HN has some sort of CDN cache though.
johanam 46 minutes ago | parent
majorchord 35 minutes ago | parent
Does this comply with GDPR?
sfont 28 minutes ago | parent