‹ BackHN Continuity

Thread

SvelteKit 3

408 points · 179 comments · sampsn

  1. blakeashleyjr · · focus · HN ↗
    Sveltekit has been a breath of fresh air for me over the last few years.

    I've had to work on a Next.js for work and much prefer Sveltekit. Excited to try this release!

    1. 383toast · · focus · HN ↗
      what's the point of svelte in a world where the llm is much better at react due to massively more available training data?
      1. jitl · · focus · HN ↗
        In my experience LLMs write mediocre React code: it works, but is the most naive implementation possible for a given task. It needs to be bullied extensively to write performant React that considers prop stability, does updates in event handlers instead of convoluted useEffect chains, etc. I haven't tried Svelte in a while but "lots of React in training data" doesn't feel like a huge boon to me.
        1. casper14 · · focus · HN ↗
          Tells you something about the average React code
          1. ceejayoz · · focus · HN ↗
            Or that there are a lot of very basic React tutorials out there.

            Like how half of PHP's problem for a while was w3schools.

            1. jack_pp · · focus · HN ↗
              tutorials are probably less than 0.1% of the training data compared to actual code, or you mean average project is influenced by basic tutorials?
              1. ceejayoz · · focus · HN ↗
                Tutorials are often written in an imperative style that's a little like prompt injection. There's a lot more writing out there on "how to make a todo app demo" than for the complex shit.
            2. DonHopkins · · focus · HN ↗
              More than half of PHP's problem was PHP's own online manuals that allowed any Bozo to confidently post idiotic answers and copy other Bozos' idiotic confident answers. It's not like confident idiocy is a new thing with LLMs -- they were trained on it.

              Then React turned that confidently idiotic folklore into an ecosystem: every confident answer depends on which year it was posted, which version it assumes, and which of six abandoned libraries it recommends. The LLM blends them into a seventh approach that never existed.

              For now, I suspect Svelte's shorter, cleaner history with fewer wrong paths taken and retreated from will mean there are fewer incoherent competing approaches for LLMs to blend together into confident hallucinations.

              Perhaps less contradictory training data is better than more incoherent training data.

              LLMs may not experience the mind-expanding joy that humans do from using Svelte or the mind-numbing frustration that humans do from using React, but they can inherit the coherent focus of Svelte and incoherent confusion of React without sharing Svelte's pleasure or React's pain.

          2. dale-cooper · · focus · HN ↗
            Imo, it tells you how many footguns there are in regards to performance in React.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.