{
  "id": "1e3324e81167",
  "url": "https://simonwillison.net/2025/Mar/2/hallucinations-in-code/",
  "title": "Hallucinations in code are the least dangerous form of LLM mistakes",
  "note": "That fact that code has to be structured right and executed by interpreters or compiled is the unlock that has made LLM's work for coding. LLMs get it wrong, but their partner, the compiler, tells them when they got it wrong and allows easy iterations. This is good and bad. Good in that you get super fast feedback loops to fix it. Bad though since syntax isn't the only thing that matters. Your code may compile, but is it actually right? That still takes the developer.",
  "voice": "jamie",
  "saved": "2025-03-04T03:08:42Z",
  "host": "simonwillison.net",
  "kind": "page",
  "tags": [],
  "record": "https://links.thingelstad.xyz/links/1e3324e81167/",
  "markdown": "https://links.thingelstad.xyz/links/1e3324e81167.md",
  "issues": [
    {
      "number": 312,
      "slug": "312",
      "title": "Weekly Thing 312 / Tangled, Graphing, Starlink",
      "date": "2025-03-08T12:00:00Z",
      "section": "Notable",
      "position": 0,
      "url": "https://weekly.thingelstad.com/archive/312/",
      "page": "https://links.thingelstad.xyz/issues/312/"
    }
  ],
  "connections": {
    "same_host": {
      "count": 61,
      "page": "https://links.thingelstad.xyz/hosts/simonwillison.net/",
      "nearest": [
        {
          "id": "718b0d97cb99",
          "title": "Run LLMs on macOS using llm-mlx and Apple’s MLX framework",
          "url": "https://simonwillison.net/2025/Feb/15/llm-mlx/",
          "record": "https://links.thingelstad.xyz/links/718b0d97cb99/"
        },
        {
          "id": "10d08223e87d",
          "title": "Here’s how I use LLMs to help me write code",
          "url": "https://simonwillison.net/2025/Mar/11/using-llms-for-code/",
          "record": "https://links.thingelstad.xyz/links/10d08223e87d/"
        },
        {
          "id": "f44b8768a2c3",
          "title": "CaMeL offers a promising new direction for mitigating prompt injection attacks",
          "url": "https://simonwillison.net/2025/Apr/11/camel/",
          "record": "https://links.thingelstad.xyz/links/f44b8768a2c3/"
        },
        {
          "id": "d0074f537816",
          "title": "Backfill your blog",
          "url": "https://simonwillison.net/2025/Apr/25/backfill-your-blog/",
          "record": "https://links.thingelstad.xyz/links/d0074f537816/"
        },
        {
          "id": "072f04967148",
          "title": "Expanding on what we missed with sycophancy",
          "url": "https://simonwillison.net/2025/May/2/what-we-missed-with-sycophancy/",
          "record": "https://links.thingelstad.xyz/links/072f04967148/"
        }
      ]
    },
    "same_week": {
      "count": 16,
      "nearest": [
        {
          "id": "71ee72c7495e",
          "title": "JavaScript Fatigue Strikes Back - Allen Pike",
          "url": "https://allenpike.com/2025/javascript-fatigue-ssr",
          "record": "https://links.thingelstad.xyz/links/71ee72c7495e/"
        },
        {
          "id": "b9c76462e149",
          "title": "Troubleshooting: The Skill That Never Goes Obsolete — The Autodidacts",
          "url": "https://www.autodidacts.io/troubleshooting/",
          "record": "https://links.thingelstad.xyz/links/b9c76462e149/"
        },
        {
          "id": "17e6494a9685",
          "title": "Trump administration retreats in fight against Russian cyber threats | US national security | The Guardian",
          "url": "https://www.theguardian.com/us-news/2025/feb/28/trump-russia-hacking-cyber-security",
          "record": "https://links.thingelstad.xyz/links/17e6494a9685/"
        },
        {
          "id": "49e8dd4b8c45",
          "title": "The $100 Trillion Disruption: The Unforeseen Economic Earthquake",
          "url": "https://wildfirelabs.substack.com/p/the-100-trillion-disruption-the-unforeseen",
          "record": "https://links.thingelstad.xyz/links/49e8dd4b8c45/"
        },
        {
          "id": "c609f13d9e99",
          "title": "Faster Go maps with Swiss Tables - The Go Programming Language",
          "url": "https://go.dev/blog/swisstable",
          "record": "https://links.thingelstad.xyz/links/c609f13d9e99/"
        }
      ]
    },
    "mentions": [],
    "mentioned_by": [],
    "saved_twice": []
  },
  "elsewhere": {
    "wayback": "https://web.archive.org/web/*/https://simonwillison.net/2025/Mar/2/hallucinations-in-code/"
  }
}
