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

It sounds like what is needed is an `optimising compiler' for the entire front end that would spot patterns like those you mention and rewrite them into something better, and that would tree-shake out unused stuff.

Does anything like that exist?



That seems like it's going to work in very specific situations only and/or be extremely hard to implement.


I'm curious if Svelte is headed in this direction.


That strikes me as a heavy handed option given the prevalence of linters and performance tools which can already detect some of these issues.




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

Search: