Live data from Hacker News

I failed to recreate the 1996 Space Jam website with Claude

j0nah.com

91–100 of 483 posts

Re: I failed to recreate the 1996 Space Jam website with Claude

#91

> here's no other way to do it besides getting Claude to recreate it from a screenshot And > I'm an engineering manager I can't tell if this is an intentional or unintentional satire of the current state of AI mandates from management.

Honest question: does he know about F5? Or was it intentional to use screenshots when source is available?

Re: I failed to recreate the 1996 Space Jam website with Claude

#92
post #42

Ok, so here is an interesting case where Claude was almost good enough, but not quite. But I’ve been amusing myself by taking abandoned Mac OS programs from 20 years ago that I find on GitHub and bringing them up to date to work on Apple silicon. For example, jpegview, which was a very fast and simple slideshow viewer. It took about three iterations with Claude code before I had it working. Then it was time to fix so…

> Ok, so here is an interesting case where Claude was almost good enough, but not quite.

You say that as if that’s uncommon.

Re: I failed to recreate the 1996 Space Jam website with Claude

#93

Claude/LLMs in general are still pretty bad at the intricate details of layouts and visual things. There are a lot of problems that are easy to get right for a junior web dev but impossible for an LLM. On the other hand, I was able to write a C program that added gamma color profile support to linux compositors that don't support it (in my case Hyprland) within a few minutes! A - for me - seemingly hard task, which w…

> Claude/LLMs in general are still pretty bad at the intricate details of layouts and visual things

Because the rendered output (pixels, not HTML/CSS) is not fed as data in the training. You will find tons of UI snippets and questions, but they rarely included screenshots. And if they do, the are not scraped.

Re: I failed to recreate the 1996 Space Jam website with Claude

#94
post #42

Ok, so here is an interesting case where Claude was almost good enough, but not quite. But I’ve been amusing myself by taking abandoned Mac OS programs from 20 years ago that I find on GitHub and bringing them up to date to work on Apple silicon. For example, jpegview, which was a very fast and simple slideshow viewer. It took about three iterations with Claude code before I had it working. Then it was time to fix so…

> Ok, so here is an interesting case where Claude was almost good enough, but not quite. You say that as if that’s uncommon.

This should be the strap line for all AI (so far)

Re: I failed to recreate the 1996 Space Jam website with Claude

#95
post #70

I checked the source of the original (like maybe many of you) to check how they actually did it and it was... simpler than expected. I drilled myself so hard to forget tables as layout... And here it is. So simple it's a marvel.

And they do hacky things like space elements vertically using
tags.

Re: I failed to recreate the 1996 Space Jam website with Claude

#96
post #44

Curious if you've tested something such as: - "First, calculate the orbital radius. To do this accurately, measure the average diameter of each planet, p, and the average distance from the center of the image to the outer edge of the planets, x, and calculate the orbital radius r = x - p" - "Next, write a unit test script that we will run that reads the rendered page and confirms that each planet is on the orbital ra…

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.

Do you give Claude the screenshot as a file? If so I’d just ask it to write a tool to diff each asset to every possible location in the source image to find the most likely position of each asset. You don’t really need recognition if you can brute force the search. As a human this is roughly what I would do if you told me I needed to recreate something like that with pixel perfect precision.

Re: I failed to recreate the 1996 Space Jam website with Claude

#97
Context is king. The problem is that you are the one currently telling Claude how close it is and what to do next. But if you give it the tools to do that itself, it will make a world of difference.

Give Claude a way to iteratively poke at what it created (such as a playwright harness), and screenshot of what you want, and maybe a way to take a screenshot in Playwright and I think you will get much closer. You might even be able to one shot it.

I’ve always wondered what would happen if I gave it a screenshot and told it to iterate until the Playwright screenshot matched the mock screenshot, pixel perfect. I imagine it would go nuts, but after a few hours I think it would likely get it. (Either that or minor font discrepancies and rounding errors would cause it to give up…)

Re: I failed to recreate the 1996 Space Jam website with Claude

#98

Earlier quoted context omitted.

Yes, this is a key step when working with an agent—if they're able to check their work, they can iterate pretty quickly. If you're in the loop, something is wrong. That said, I love this project. haha

I'm trying to understand why this comment got downvoted. My best guess is that "if you're in the loop, something is wrong" is interpreted as there should be no human involvement at all. The loop here, imo, refers to the feedback loop. And it's true that ideally there should be no human involvement there. A tight feedback loop is as important for llms as it is for humans. The more automated you make it, the better.

Yes, maybe I goofed on the phrasing. If you're in the feedback loop, something is wrong. Obviously a human should be "in the loop" in the sense that they're aware of and reviewing what the agent is doing.
Post reply on HN