Can confirm. This makes it a nonstarter for Glimmer too. VDOM is an implementation detail not a programming model.
-
-
Replying to @wycats @justinfagnani and
Could the diffing primitive could be used in bytecode vm that glimmer uses?
1 reply 0 retweets 0 likes -
Replying to @TheLarkInn @wycats and
The reason bytecode is useful is because it is more specific than diffing. If you have to diff anyway you’ve lost benefits of bytecode.
1 reply 0 retweets 9 likes -
Replying to @dan_abramov @TheLarkInn and
Right. We have an update program we run that avoids the need to ever diff except at the string level (attribute value, text node)
1 reply 0 retweets 6 likes -
Replying to @wycats @dan_abramov and
That's what I've been experimenting on too in regards to React. Admittedly it's way harder to do with React, as we have to evaluate raw JS.
1 reply 0 retweets 2 likes -
Replying to @trueadm @dan_abramov and
It's worth exploring in react but much harder to get right because it's hard to enforce restrictions in "just js"
2 replies 0 retweets 3 likes -
Not really... template literals just do that for you
1 reply 0 retweets 0 likes -
Replying to @justinfagnani @trueadm and
JSX is not the same thing as template literals. And stitching together JS loops / conditionals with templates also doesn't work.
3 replies 0 retweets 2 likes -
Replying to @wycats @justinfagnani and
It does with statically analyzable tokens and expressions passed to them (aka Vue/angular directives)
1 reply 0 retweets 0 likes -
Replying to @TheLarkInn @justinfagnani and
Yes, if you eliminate the "just JS" part and add conditionals and loops to the template language, it works.
2 replies 0 retweets 0 likes
But remember people want to claim that JSX is intrinsically superior *precisely because they don't "reinvent a programming language"*
-
-
Replying to @wycats @justinfagnani and
I think the existence of both will be pretty key imo. Flexibility.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.