News for hackers. Stuff that matters.
Re:The AI cost of JavaScript frameworks by skrebbel on Sunday November 01, 2026 @03:55AM (#50323766)
It scores well here because Astro is for “content-driven websites” and that’s what the benchmark app was. I’d be curious how different the results would be if the app was highly interactive, with nontrivial realtime/async stuff going on etc.
Re:The AI cost of JavaScript frameworks by csnweb on Sunday November 01, 2026 @05:26AM (#50324258)
And then you just use your favorite js framework with Astro and it will still be good. I use Astro with react and heroui a lot. Since the latter does not need any js for many components anymore you still get zero js builds unless you actually need interactivity.
Re:The AI cost of JavaScript frameworks by OtherShrezzing on Monday November 02, 2026 @02:46AM (#50334157)
I actually find that agents are not especially performant with the “use Astro plus whatever” approach.

They seem to struggle to reason about the boundary between the two.

Re:The AI cost of JavaScript frameworks by iainmerrick on Monday November 02, 2026 @11:00AM (#50338699)
I haven't found that. I use Astro + SolidJS and it seems to work very well.

I intentionally avoid hydration (which I've always found to be flaky) and hydration-based frameworks like SolidStart, so possibly that helps. Or maybe that's just my own bias!

Re:The AI cost of JavaScript frameworks by elxr on Sunday November 01, 2026 @05:40AM (#50324348)
Agreed. Go with solidstart (who just released a big V2 upgrade a few months back) if you want an extremely elegant solution to async, error handling and heavily concurrent behaviors.

Very easy to setup and way more readable than the equivalent React code.

Re:The AI cost of JavaScript frameworks by mplewis on Monday November 02, 2026 @02:10AM (#50333933)
Even for highly interactive projects, Astro is still my favorite build system. Just toss the SPA component into the single Astro file and you're done.