Solid 2.0

(solidjs.com)

170 points by pier253 hours ago

12 comments

  • wk_end2 hours ago
    What&#x27;s amusing and&#x2F;or interesting is that the stuff under &quot;Built to Be Written by Agents&quot; also would make it easier to write by hand, I imagine. It&#x27;s just better debug diagnostics; nothing really to do with agentic development specifically.<p>Maybe that&#x27;s just marketing, but it&#x27;s really intriguing how human best practices are also agent best practices; how, maybe, we&#x27;ve reached a point where even devs aren&#x27;t recognizing agent best practices as human best practices anymore; and how suddenly best practices are being prioritized in a way they often weren&#x27;t - humans could&#x2F;would&#x2F;were expected to suck it up and deal with poor devex, but agents simply can&#x27;t. A strange sort of victory for us folks who cared about it.
    • lemming1 hour ago
      A friend of mine who works a lot with AI commented that working with AI was making him develop like a grownup for the first time. Turns out that all the best practices really do carry over, but the consequence of not doing it is greater with agents.
    • novacrazy1 hour ago
      Kind of the same reason Rust works very well with agents, good error messages and strict type system. Harder to screw up for humans and bots alike.
      • snordgren1 hour ago
        If only Rust had compile times of Go. I often find myself with multiple agents stalling, all waiting for the cargo lock.
        • Bolwin1 hour ago
          Try C# as a middle ground. Compiles faster than Rust, runs faster than Go
  • pwmglenn2 hours ago
    Remix originally pitched itself as solving the &#x27;middle&#x27; layer between frontend and backend. Closing the gap. It never quite managed to do so imo.<p>Solid&#x27;s solution here is beautiful. The server RPC and &#x27;live&#x27; and &#x27;broadcast&#x27; are seamless, and feel much more natural to use than liveview or htmx&#x2F;datastar imo.
  • dmix31 minutes ago
    Still waiting for Vue 3.6 Vapor to be released which is supposed to be more competitive with these frameworks like Svelte and Solid in performance. Vue 3.5 came out in Sept 2024 and I&#x27;ve ported a lot of code off Vue since then.
    • pier2517 minutes ago
      Performance of Vapor mode is similar to Solid and Svelte.<p><a href="https:&#x2F;&#x2F;krausest.github.io&#x2F;js-framework-benchmark&#x2F;current.html" rel="nofollow">https:&#x2F;&#x2F;krausest.github.io&#x2F;js-framework-benchmark&#x2F;current.ht...</a><p>Between Solid, Vue, and Svelte it&#x27;s more a matter of features and personal preference than performance at this point.
  • maxloh3 hours ago
    There are still not many component libraries for Solid. But if I needed to build something from scratch, I would definitely try Solid.<p>It just feels like the right way React should be.
    • pwmglenn2 hours ago
      I disagree.<p>Vercel&#x27;s UI SDK just launched with Solid support.<p>Theres also Kobalte, Ark UI, Park UI, Solid UI, Shadcn Solid, Corvu, Material Design Solid, and more.
      • salah72522 hours ago
        Who’s still using Vercel after they met with Netanyahu..???
        • azangru1 hour ago
          Imagine people scrambling to migrate away from their nextjs or react codebases, because Guillermo Rauch met with Netanyahu...
        • giveaccountpls1 hour ago
          Who&#x27;s still voting Trump after he met with Netanyahu..???<p>I&#x27;m being facetious, but what would you expect?
    • dbbk3 hours ago
      These days are component libraries even necessary
      • robertlagrant2 hours ago
        Of course, if you want two applications to look the same.
        • dbbk1 hour ago
          That&#x27;s a design system. You can make that for your own apps yourself.
        • squidsoup2 hours ago
          not only look the same, but perhaps even more importantly, behave the same.
        • latchkey1 hour ago
          &quot;make these two applications look the same&quot; works surprisingly well.
  • pier253 hours ago
    Congrats to the Solid team. This is a monumental release.
  • baxuz25 minutes ago
    Solid has been my framework of choice for the past 5 years. Haven&#x27;t touched React since.
  • AlexErrant36 minutes ago
    The async graph is VERY cool. It does a great job of encapsulating async&#x27;s nature to cause &quot;colored&quot; functions by using the existing signal graph (which admittedly is its own color; but virtually every UI framework has similar coloring so at least Solid&#x27;s cutting a color&#x2F;making it composable).<p>Contrast that with React, where hooks are colored functions. You thought that hooks were just functions? Nope, if you have a hook, it MUST be called in a hook&#x2F;component... exactly like async. Did you want to load this TTS player conditionally? Hahah, you can&#x27;t. Have fun allocating memory for every TTS provider your app supports, even if the user uses only 1 player. <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=45257413">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=45257413</a><p>&quot;Thanks to async in the graph we can detect waterfalls, poorly constructed effect loops, poorly scaling graph shapes like wide graph fanouts and fan-ins.&quot; Incredibly cool. Apparently Tanstack Query has a waterfall detector <a href="https:&#x2F;&#x2F;github.com&#x2F;bamlab&#x2F;tanstack-query-detect-waterfall" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bamlab&#x2F;tanstack-query-detect-waterfall</a> so the other frameworks have something similar, but it won&#x27;t work with their state graphs.
    • nvme0n1p117 minutes ago
      &gt; Did you want to load this TTS player conditionally? Hahah, you can&#x27;t.<p>Um, you can? Just change this:<p><pre><code> if (tts) useState(() =&gt; loadTTS(tts)) </code></pre> to this:<p><pre><code> useState(() =&gt; tts &amp;&amp; loadTTS(tts))</code></pre>
  • prajaybasu1 hour ago
    Hoping the TanStack Solid 2 adapters are out soon. They&#x27;re the only blockers for me now.
  • _nothing2 hours ago
    I honestly don&#x27;t remember what drove me (and apparently a lot of the frontend JS community) to place my bets on Svelte over Solid, years ago now. It probably had something to do with Svelte feeling (and at the time, being) much simpler to develop in, looking on the surface like simple HTML and CSS with some JavaScript sprinkled in, and believing strongly in its magic compiler.<p>Honestly, I was probably just so tired of React that it felt refreshing to develop in something so un-React-like, and it ergonomically felt better at the time than writing something similar to React via Solid, even if the latter was still holding its own in performance on paper. If you&#x27;ve spent years learning French then it might feel more refreshing to start learning Japanese than Italian.<p>It turns out Solid had a lot of it right all along. And after using Svelte for a while, something starting feeling... weird. For all its complexity, something I always appreciated about React was that I was ultimately just writing JavaScript, and with Svelte it felt like I was writing in something only made to resemble JavaScript.<p>I still really appreciate Svelte, but I&#x27;m wondering if this would be a good time to see if Solid will feel more &quot;natural&quot; to me, having worked with JavaScript all these years. Curious if anyone can confirm if that would be the case.<p>Now might also be a good time to tinker with it myself before the coding models are fully up to date on 2.0 and I turn to laziness (&#x2F;efficiency) and have them handle the rest.
    • bottlepalm2 hours ago
      I also remember caring about frameworks, and having long debates on HN about what was better. Haven&#x27;t cared or done that in quite awhile now. It&#x27;s be like debating low level assembly instructions. We just no longer work at that level.
    • pier252 hours ago
      I used Svelte extensively since v3 but ended up switching to Solid this year. I just want to be able to write TS&#x2F;TSX without needing any extra tooling around it.
      • tancop2 hours ago
        What do you mean by extra tooling? It&#x27;s just a basic Vite setup.
        • DimmieMan13 minutes ago
          Solid is just JSX which is stock typescript tooling.<p>* Does not need any unique editor plugin like Svelte and Vue to provide a language server.<p>* Worked with Tsgo day 1.<p>* Works with oxfmt by default day 1.<p>* Works somewhat with oxlint out of the box day 1, eslint plugin is fully supported.<p>Svelte has a much more complicated build system and customised plugins that need regular upkeep, for basic usage it might just look like a vite plugin line and the eslint&#x2F;prettier config that gets generated as part of project init but as your app grows and you maintain it longer term you absolutely start feeling the deficiencies and weight of all the svelte tooling.<p>Solid has a compiler and an eslint plugin, but otherwise leverages the standard typescript tooling, it&#x27;s so much faster. Ryan&#x27;s looking at reactive script now but it was an extremely good decision to not take on the tooling maintenance of Svelte and Vue.
        • pier252 hours ago
          You&#x27;re probably using a lot more than that to write Svelte.
  • otherflavors1 hour ago
    They&#x27;ve gone all in on AI and Agents, how wonderful
  • ishritmadaan3 hours ago
    Hurray! Solid 2.0 is finally out!
  • ale3 hours ago
    &quot;Built to be written by agents&quot;? To me that would mean to drop the framework altogether: they&#x27;ve always just been an abstraction to bridge knowledge gaps in bigger teams and enforce coding patterns. But now that&#x27;s just the job of the agents, and instead you can prompt it to set up a proper server in any language you want.
    • ryansolid1 hour ago
      I&#x27;m working on something right now it&#x27;s called ReactiveScript which takes Solid&#x27;s constraints and makes them in the compiled language. Its still WIP but early results are promising. It can do better than vanillaJS because async bugs are compiler error by construction etc. It&#x27;s a bit like the Rust mentality. If the agent can&#x27;t write bad code if it won&#x27;t compile.<p>I think we will see more of this. Frameworks have been &quot;languages&quot; for years. Rich Harris of Svelte saw that. This is exactly the remaining gap right now. Peeling away the layers is also peeling away the guard rails. You can add those back with rigor of testing. But huge benefits to just encoding our learnings in the language itself.
      • nvme0n1p113 minutes ago
        Hey random question, does Solid these days have anything that lets you early return? I haven&#x27;t looked into that in a while
        • thomastill3 minutes ago
          Most used of early return can be replaced with Solid&#x27;s &lt;Show&gt;
    • rafram3 hours ago
      You could say that about some libraries, but LLMs haven&#x27;t made reactive frameworks obsolete; on the contrary, they&#x27;re very effective at using them, and they write better, more maintainable, and more consistent code with them than when they try to hand-write JS that renders to the DOM. Anything that can &quot;bridge knowledge gaps in bigger teams and enforce coding patterns&quot; can also help write code with agents!
      • squidsoup2 hours ago
        That&#x27;s certainly been my experience, agents perform better in well maintained code bases with obvious architectural patterns reinforced by frameworks.
        • jaapz1 hour ago
          How do you keep code well-maintained when agents are generating so much code nowadays? Have agents code review the agents?
    • aurareturn3 hours ago
      It’s November 2026. I haven’t written more than 2 lines of code in a day since January 2026.<p>So if a framework is made so that coding agents can use it well, why is it a negative?<p>I’m not going to be writing SolidJS by hand.
    • wpietri2 hours ago
      If anything, I think attention limits, token costs, and declining performance as size&#x2F;complexity increase means good abstractions are more necessary than ever.
    • kube-system2 hours ago
      Ask Claude to write a SaaS landing page for you in React&#x2F;Next.js<p>Then ask Claude to write a SaaS landing page for you in assembly.<p>Then compare the results.
    • croes3 hours ago
      So you want knowledge gaps between agents and the team.