3 ms·
Here's a web port of this: https://gistpreview.github.io/?76f03f49be58344bfa64c9d5d9f0ec29 https://gistpreview.github.io/?76f03f49be58344bfa64c9d5d9f0e... (sour
by simonw 2y ago
Here's a web port of this: https://gistpreview.github.io/?76f03f49be58344bfa64c9d5d9f0ec29 https://gistpreview.github.io/?76f03f49be58344bfa64c9d5d9f0e... (source code here: https://gist.github.com/simonw/76f03f49be58344bfa64c9d5d9f0ec29 https://gist.github.com/simonw/76f03f49be58344bfa64c9d5d9f0e... )
Created by pasting the entire Swift GitHub repo into Gemini 2.0 and asking it to port it to a web page: https://gist.github.com/simonw/b4aec4e879e50ac74f6f9cc6e1cdc0a1 https://gist.github.com/simonw/b4aec4e879e50ac74f6f9cc6e1cdc...
- jaennaet 2y agoThe bastard even added rudimentary error handling
- fragmede 2y agoInteresting. I asked Claude and ChatGPT-4o similar things and got quite a bit of variance. Using Aider and giving it your prompt, "Output a single HTML page with included JavaScript and CSS that fetches the latest levels of the urine tank on the ISS and displays it appropriately - it should be mobile friendly" and adding "use the same api as the swift code" worked in one shot. However, Claude could not one-shot it If I just asked for a "web page", and it took a couple more prompts to get it working. ChatGPT-4o kinda failed at the task. It hallucinated a URL to load lightstream.js from, but didn't realize that and I had to gasp debug the problem myself. I also tried with Copilot in VSCode since that's now free and got similar results. With such variance though, it now becomes much easier for me to see why the question of if LLMs are any good at coding is so contentious every time it comes up on HN. If, even for such a small, well defined task, there's such variance in behavior from seemingly small prompt changes, it's now easier for me to see why some people see it as the second coming and others think LLM-assisted program is all hot air.
- sumedh 2y ago> With such variance though I agree, I have noticed some prompts which work perfectly fine on Claude when used in WindSurf IDE which uses Claude the same prompt did not work. LLM models work fine for small scripts but when it comes to large Codebase I just cannot trust them.
- gloflo 2y agoEthical usage would include thankful attribution.
- simonw 2y agoYeah, that's fair - added "Adapted from pISSStream by Jännät" just now.
- varenc 2y agoI’m going to cite this web port whenever someone claims LLMs are no better than stackoverflow copy pasta.