DEV Community

Discussion on: A Look at Compilation in JavaScript Frameworks

Collapse
 
cjsmocjsmo profile image
Charlie J Smotherman

I agree compilers are the future. Nice read very informative.

Collapse
 
chrisczopp profile image
chris-czopp • Edited

Same here. I think Virtual DOM is a nice episode which gave foundation (it popularised) for declarative UI development. Since there are already build-time diffing tools, we have a proof it can be done. And since we transpile our JS/TS anyway, it feels obvious to expect the tools to spit out the most performant code that doesn't require any runtime housekeeping like DOM diffing.

Obviously, it's more complex and there are times when runtime diffing can be useful e.g. rendering dynamically generated code in web based code editors. And I don't know how it's in Svelte, but Solid comes up with HyperScript version which gives that "edge-case" alternative.