Live data from Hacker News

Svelte is the most beautiful web framework I've seen

thefutureoftheweb.com

31–40 of 210 posts

Re: Svelte is the most beautiful web framework I've seen

#32
post #8

Earlier quoted context omitted.

I get a 404

The site is hosted on Google Cloud Run, which seems to have been having some intermittent problems for the last couple of days. EDIT: some other people have had the same issue and the Cloud Run team are investigating

Sounds like a very Google-cloud/appengine issue. Maybe it's time to rewrite a bunch of things(very appengine again)

Re: Svelte is the most beautiful web framework I've seen

#33
post #17

Earlier quoted context omitted.

It's just more options. Svelte is new in that it actually compiles the components and logic into plain low-level JS code instead of having a "runtime". It's something most of these frameworks should have already done by now considering they need build steps but maybe it needed a new project to make it happen. It's a brand new release though so it'll take more time for uptake, and by people who think the opposite of w…

You're right that it's more options, but it's also one more box a "competent JS dev" is expected to tick. One of the best and worst things about the JS ecosystem is the plethora of choices available. On compilation, nope. Riot.js did it first, and this is literally the entire premise of typescript (I know typescript is a different language, but I see little difference here as it can mix with JS between writing only s…

> You're right that it's more options, but it's also one more box a "competent JS dev" is expected to tick.

Is that really true? React and/or Angular is something I would expect. If one uses anything more exotic then one should have a "they'll figure it out on the job" attitude.

> But I also don't see why they couldn't have submitted a PR to react/angular/ember/meteor/vue.

Do you honestly believe one can just leave a "here's a full static compiler for X" at the doorstep of these projects with some expectation of it actually being accepted?

That would basically be an entirely separate program to be maintained alongside the runtime and any design considerations on either side will affect the other side.

Re: Svelte is the most beautiful web framework I've seen

#34
post #24
post #9

Svelte is so great... so were react, angular, ember, meteor, and vue. I'm sorry, but I've got trouble seeing how having one more framework to learn is going to help any thing. There's a webcomic of some sort to which I can't find the link, which talks about this. Some one is sick of the bloat of x framework/tool/whatever, and decides to build it better. He works hard, and finally version 1.0 is released to dramatic m…

We should probably all just give up, eh?

We should probably settle. Other platforms afford a new UI framework maybe once a decade.

The Web Frontend, already running on top of an apparently inadequate framework called "HTML5", somehow needs to be reinvented every year and it's a huge cost factor.

Re: Svelte is the most beautiful web framework I've seen

#35

Earlier quoted context omitted.

The site is hosted on Google Cloud Run, which seems to have been having some intermittent problems for the last couple of days. EDIT: some other people have had the same issue and the Cloud Run team are investigating

Looks like this issue: https://issuetracker.google.com/issues/136539678

Yep — I added our details to it. I mentioned the problems we were having on Twitter and a Cloud Run PM came to help immediately! So I'm hopeful we'll get a resolution before long. (Aside from this glitch, Cloud Run has been great for us, and we're looking forward to it coming out of beta)

Re: Svelte is the most beautiful web framework I've seen

#36

I have a table of 100 rows x 10 columns mostly of numbers which change 10 times a second (think trading). The source data sits in an array of objects. On each update, I need to update the table cells with the latest values from the source array. The content of each cell can change, possibly it's css class too (from red it become blue for example). I'm using Vue/Bootstrap-Vue table at the moment, but it's quite slow.…

No matter which framework you describe, this is an iterative approach and will be inefficient. The optimized (or, at least faster) way to handle this would be to have a unique ID attached to a cell and offer a direct callback to it via the data.

E.g. the symbol for "GOOG" stored in a hash table, when GOOG updates; call that hash directly: "symbols[symbol].update(data)" then re-render the cell DOM element.

Re: Svelte is the most beautiful web framework I've seen

#37

I have a table of 100 rows x 10 columns mostly of numbers which change 10 times a second (think trading). The source data sits in an array of objects. On each update, I need to update the table cells with the latest values from the source array. The content of each cell can change, possibly it's css class too (from red it become blue for example). I'm using Vue/Bootstrap-Vue table at the moment, but it's quite slow.…

It's likely given Svelte's performance:

https://m.youtube.com/watch?t=1080

Re: Svelte is the most beautiful web framework I've seen

#38
post #16
post #5

Earlier quoted context omitted.

Using JS ternaries for conditional rendering doesn't feel natural to me at all

Using {#if} or v-if or whatever feels even less natural -- especially when these template languages are hyped as being "logicless".

I don't see why anyone would want a "logicless" templating language. Doesn't that sort of kill the point of it being a "language" to begin with?

/me goes back to happily "server side rendering" HTML with PHP

Re: Svelte is the most beautiful web framework I've seen

#39

I have a table of 100 rows x 10 columns mostly of numbers which change 10 times a second (think trading). The source data sits in an array of objects. On each update, I need to update the table cells with the latest values from the source array. The content of each cell can change, possibly it's css class too (from red it become blue for example). I'm using Vue/Bootstrap-Vue table at the moment, but it's quite slow.…

You probably can implement a more efficient diffing algorithm than the general one for vue. When new data comes in, patch the objects that have changed without overwriting the whole array.

Re: Svelte is the most beautiful web framework I've seen

#40
post #17

Earlier quoted context omitted.

You're right that it's more options, but it's also one more box a "competent JS dev" is expected to tick. One of the best and worst things about the JS ecosystem is the plethora of choices available. On compilation, nope. Riot.js did it first, and this is literally the entire premise of typescript (I know typescript is a different language, but I see little difference here as it can mix with JS between writing only s…

> But I also don't see why they couldn't have submitted a PR to react/angular/ember/meteor/vue. I see this sentiment a lot in open source. When I made Rollup — which is now used to build the most popular libraries in the JavaScript ecosystem, including some you just mentioned! — people asked why I didn't just submit a PR to webpack? I understand why people ask that. But it just doesn't work like that. Very often, to…

It's a shame that the site's down. Until then, you can (and I heartily recommend doing so) watch the "Rethinking reactivity" video here: https://www.youtube.com/watch?v=AdNJ3fydeao
Post reply on HN