"Not saying it's aliens but, it's aliens"
HN user
thecr0w
yeah actually would love to hear more. what problems have you been working on, what did you try, and tell me more about the solution. Super curious.
Oh you're right. I read it a bit too quickly this morning and thought it had just done that initially to compare planet placement. Too bad.
yep, this is what I used.
ha this is awesome. I'm going to link this comment in the post. Great work. lmk if you end up pushing it up to github.
yeah that sucks. I also linked it to the top of my post so folks can take a look.
Hey! You did it! I'm going to update my original blog post linking this one.
I think it probably gets you 80% but the last 20% of pixel perfection seems to evade Claude. But I'm pretty new to writing prompts so if you can nail it let me know and I'll link you in the post.
Interestingly it made a comment about this but didn't do anything about it
Classic.
This is awesome. Great work. Please follow up again if you happen to nail it.
Oh what the heck. That worked really well for you. Would you be willing to recreate all the html and push it up to github? I'll drop the repo at the top of the blog post. It would be really cool for me to see this completely done and a great way to finish out the blog post. I obviously couldn't do it.
This is really cool.
Ok! will give it a shot. In a few iterations I gave him screenshots, i have given him the ability to take screenshots, and I gave him the Playwright MCP. I kind of gave up on the path you're suggesting (though I didn't get super far along) because I felt like I would run into this problem eventually of needing a model to figure out what a planet is, where the edge of the planet is, etc.
But if that could be done deterministically, I totally agree this is the way to go. I'll put some more time into it over the next couple weeks.
I learned recently that this is still how a lot of email html get generated.
Yeah, still trying to build my intuition. Experiments/investigations like this help me. Any other blogs or experiments you'd suggest?
Great, thanks for that suggestion!
Whoops, I'm very dumb. It's Opus 4.1. I updated the blog post and credited you for the correction. Thank you!
Thanks, my friend. I added a strike through of the error, a correction, and credited you.
I'm keeping it in for now because have made some good jokes about the mistake in the comments and I want to keep that context.
Thanks, my friend. I added a strike through of the error, a correction, and credited you.
I'm keeping it in for now because people have made some good jokes about the mistake in the comments and I want to keep that context.
I think this is a reasonable take. I think for me, I like to investigate limitations like this in order to understand where the boundaries are. Claude isn't impossibly bad at analyzing images. It's just pixel perfect corrections that seem to be a limitation. Maybe for some folks it's enough to just read that but for me, I like to feel like I have some good experiential knowledge about the limitations that I can keep in my brain and apply appropriately in the future.
lol, that is fair criticism
As a couple other comments pointed out, it's also not fair to judge Claude based on a one shot like this. I sort of assume these limitations will remain even if we went back and forth but to be fair, I didn't try that more than a few times in this investigation. Maybe on try three it totally nails it.
We should check the Wayback Machine, but in my memory this was built with an image map. Maybe like, 10 years ago or something. I was googling around when writing this post and saw that there are folks still tasked with making sure it's up and running. I wonder if they migrated it to tables at some point in the last decade.
lololol
The stuff about not being able to download it is a bit of a joke and I don't think the tone landed with everybody haha. This was just an experiment to see if Claude could recreate a simple website from a screenshot, of course to your point you could download it if you wanted.
lol
You know, you're totally right and I didn't even think about that.
Hm, I didn't try exactly this, but I probably should!
Wrt unit test script, let's take Claude out of the equation, how would you design the unit test? I kept running into either Claude or some library not being capable of consistently identifying planet vs non planet which was hindering Claude's ability to make decisions based on fine detail or "pixel coordinates" if that makes sense.
thank you! I'll try this
ya, this is true. Another commenter also pointed out that my intention was to one-shot. I didn't really go too deeply into trying to try multiple iterations.
This is also fairly contrived, you know? It's not a realistic limitation to rebuild HTML from a screenshot because of course if I have the website loaded I can just download the HTML.
Not a homework assignment, and no deliberate attempt to conceal information, just very long and repetitive logs. A lot of the same "insights" so I just didn't provide them here.
That's not how to successfully use LLM's for coding in my experience.
Yeah agree. I think I was just a little surprised it couldn't one-shot given the simplicity.