Live data from Hacker News

SvelteKit Is in Public Beta

svelte.dev

21–30 of 119 posts

Re: SvelteKit Is in Public Beta

#21
post #14

Out of curiosity, how does SvelteKit differ from Sapper? I haven't been involved with Svelte for some time. Looks cool by the way, I think Svelte is a really great product.

This blog post gives a bit more information on that: https://svelte.dev/blog/whats-the-deal-with-sveltekit, though the section on Snowpack is out of date. Basically, SvelteKit is serverless-first (whereas Sapper made you choose between a Node server and prerendered HTML), and because it's powered by Vite has a much nicer developer experience.

It also fixes a few of the rough design edges in Sapper. This migration guide gives you an idea of the scope of the changes: https://kit.svelte.dev/migrating

Re: SvelteKit Is in Public Beta

#22
What is SvelteKit? The linked page assumes I already know and have just been waiting for an announcement.

I have heard a bit about Svelte. I love the analogy with spreadsheets, where original spreadsheets reevaluated every cell whenever any cell changed. Modern spreadsheets maintain a dependency graph, so when something changes, only the direct dependencies are even evaluated. If any of them change, then only their dependencies are evaluated, etc., recursively. So React's repeated full virtual DOM diff at runtime vs. Svelte's focused dependency graph, created at compile time. Very interesting.

But that's Svelte, or at least I think it is. So what is SvelteKit?

Re: SvelteKit Is in Public Beta

#23

Forgot to mention what SvelteKit is ...

> If you have a app that you'd like to migrate to SvelteKit, you'll find instructions at .

Ok can't copy/paste anchor text apparently, but yeah I'm confused as well. I just read a bit about Sapper the other day, is this a replacement? :shrug:

Re: SvelteKit Is in Public Beta

#24
post #22

What is SvelteKit? The linked page assumes I already know and have just been waiting for an announcement. I have heard a bit about Svelte. I love the analogy with spreadsheets, where original spreadsheets reevaluated every cell whenever any cell changed. Modern spreadsheets maintain a dependency graph, so when something changes, only the direct dependencies are even evaluated. If any of them change, then only their d…

For anyone interested, follow the first link in the announcement and read the second section, named What is SvelteKit?

Re: SvelteKit Is in Public Beta

#25
post #14

Out of curiosity, how does SvelteKit differ from Sapper? I haven't been involved with Svelte for some time. Looks cool by the way, I think Svelte is a really great product.

Check out the creator's first posts and videos of sveltekit when he introduced the alpha version: https://www.youtube.com/watch?v=qSfdtmcZ4d0

The way I understand it is it's an evolution of sapper to be more versatile, especially with respect to the backend. Out of the box it can work more easily with serverless providers that give you static file hosting + some kind of basic API gateway and serverless function platform. So you can write full stack client and server-side code all using the same framework (like you can with sapper). But the key difference from sapper is that you're not stuck using a node.js backend, with sveltekit you can swap in different backend implementations, like one targeting a serverless/lambda system.

Re: SvelteKit Is in Public Beta

#26
post #15

Earlier quoted context omitted.

And why did this warrant death? Just so everyone knows, few people even give a fuck about Svelte. Let’s not be babies.

In isolation, maybe it doesn’t, but reading through the comment history, the site will be better without these contributions.

That’s up to us to decide. I have said some pretty insane things, and I often don’t get downvotes.

If we reach scale, HN is doomed in general. Until then, we should pick the organic route.

Most people are lurkers, so if they even had something to say, it would be one liners.

Re: SvelteKit Is in Public Beta

#28
post #22

What is SvelteKit? The linked page assumes I already know and have just been waiting for an announcement. I have heard a bit about Svelte. I love the analogy with spreadsheets, where original spreadsheets reevaluated every cell whenever any cell changed. Modern spreadsheets maintain a dependency graph, so when something changes, only the direct dependencies are even evaluated. If any of them change, then only their d…

Here's the blogpost from a few months ago: https://svelte.dev/blog/whats-the-deal-with-sveltekit

TL;DR, it is the new officially recommended way to build apps with the Svelte framework. Compared to its predecessor, it promises much faster local development based atop Vite and ESBuild, and it can be deployed as a static site, or a node server, or as serverless functions (whereas previously you only had either server or static site options). There are a ton of other small new features as well in the docs.

Re: SvelteKit Is in Public Beta

#29
post #14

Out of curiosity, how does SvelteKit differ from Sapper? I haven't been involved with Svelte for some time. Looks cool by the way, I think Svelte is a really great product.

I haven't used Sapper, but I've read a bit about SvelteKit. Afaik the main reasons for the rewrite were to clean up the code, and make the framework platform agnostic. This means that you can use different adapters for SvelteKit to make it usable in places where Sapper wasn't optimal, such as serverless hosts.

For more in depth info, refer to this page: https://kit.svelte.dev/migrating

Post reply on HN