TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Svelte is a language

129 pointsby r0xshalmost 2 years ago

12 comments

turtleyachtalmost 2 years ago
&gt; <i>Svelte is a language.</i><p>All Javascript frameworks may become implementations of SAT solvers, where rendering and state are scheduled constraints, i.e. tiny operating systems.<p><i>NPM uses CSS as a query language</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33136843">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33136843</a> - 9 months ago<p>Then apps may be instantiations of the framework.
评论 #36696218 未加载
xrdalmost 2 years ago
The really exciting thing about svelte is getting rid of the virtual Dom. Having everything just be explicit JavaScript code that modifies the Dom manually makes for really readable code. If you have not tried it, got to the svelte tutorial and look at the output code. It&#x27;s awesome.
评论 #36690551 未加载
评论 #36688162 未加载
评论 #36690962 未加载
评论 #36690447 未加载
Tade0almost 2 years ago
Using the label and block syntax for this was a stroke of genius.<p>Two great things about this &quot;thinking inside the box&quot; approach are:<p>1. You&#x27;re encouraged to use native APIs because they&#x27;re highly unlikely to clash with the framework.<p>2. You can a legible stack trace. After all, the only thing the compiler does to your JavaScript is add some instrumentation here and there.
lakomenalmost 2 years ago
Svelte Kit is great for static is &quot;classic&quot;-like websites.<p>I&#x27;ve converted my company website to svelte-kit from first Angular, then Vue.<p>But for SPA it&#x27;s bad. If you use oidc auth. There&#x27;s only Auth.JS and it&#x27;s a confidential client, for Svelte Kit.<p>If you&#x27;re not using svelte-kit you can use vite to create a Svelte SPA. There you can use your PCKE client as usual and burden the load on the client.<p>I have yet to experiment with how well it works with a graphql client. Apollo has its own cache but I&#x27;m not sure there is a svelte version of it. There is for Vue. Does it even need one? The default is for React. Is Apollo even needed? Questions over questions.<p>Why Svelte? Performance. Performance matters, a lot.<p>Svelte being a &quot;language&quot;. First time using a template system? I have to wonder.
评论 #36701388 未加载
评论 #36708153 未加载
monero-xmralmost 2 years ago
Svelte is a major improvement on vuejs. It is a pleasure to work with. I can’t stand react &#x2F; JSX. Highly recommend anyone who preferred vue over react to give svelte a try.
评论 #36690833 未加载
评论 #36708773 未加载
评论 #36690505 未加载
amadeuspagelalmost 2 years ago
I love the idea of &quot;thinking inside the box&quot;. It&#x27;s a great encapsulation of the hacker mindset. A fun talk about it in another context (impro theater): <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bz9mo4qW9bc">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bz9mo4qW9bc</a>
rmrfchikalmost 2 years ago
Give a quick glance to Svelte. Help me understand, how this syntax {#if expression}...{:else if expression}...{&#x2F;if} can be seriously invented in our... more civilized age?
评论 #36690544 未加载
评论 #36690740 未加载
评论 #36692569 未加载
评论 #36690281 未加载
gervwykalmost 2 years ago
Great insight. It feels like at some point reactivity as a language primitive should be built into js. Most frameworks start with this and then build out into a opinionated implementation, dissolving the ecosystem into framework fragments. Any known reasons why this is &#x2F; was never implemented?
评论 #36686119 未加载
评论 #36685877 未加载
评论 #36690607 未加载
fastballalmost 2 years ago
(2019), since there is a reference to &quot;Svelte 3 around the corner&quot; that is confusing otherwise.
评论 #36690559 未加载
blabla1224almost 2 years ago
I wish people stopped calling websites as applications and I wish web site developers spent more time learning how the world has been building great desktop apps for years. It’s just beneficial to get out of the bubble once in awhile to validate certain ideas
mark38848almost 2 years ago
If you want a good language that turns into Javascript I recommend PureScript
评论 #36690630 未加载
评论 #36701728 未加载
yamrzoualmost 2 years ago
(2018)