Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Instead, Svelte runs at build time, converting your components into highly efficient imperative code that surgically updates the DOM.

So, Svelte is compiled into web assembly? If not, given the emitted imperative code is less efficient than emitted web assembly and the emitted imperative code is less concise than the original declarative code, then what would be the advantage of an imperative translation of the declarative Javascript code compared to emitted web assembly or the original?



See here for a discussion of WASM https://youtu.be/AdNJ3fydeao?t=1410


Are you mixing up code you write vs the code emitted?

The code you write in Svelte is reactive/declarative, emitted code is regular imperative JS.


Though the idea has been bounced around a few times in the Svelte forums for compiling to web assembly




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: