Surely it has a knock on effect as well, newer features are often slower than more verbose old ways of doing things cause the old stuff was highly optimised cause of real world needs, then new features themselves get optimised.
-
-
let's remember React needs mandatory transpilation due JSX and everything else that has never been standardized. So there is no real-world optimization there, at least not for React, and that paper is explicitly about React. I don' want to wait for React to see better performance
1 reply 0 retweets 3 likes -
No one is claiming that people deploy untranspiled JSX...
1 reply 0 retweets 1 like -
No one is claiming V8 doesn't care. If you can read what I'm saying, dropping the advocate shield for a second, maybe you'll understand, well, what I am saying. React ships transpiled, that usually includes destructuring. It's sad we have to wait React to see these papers out.
1 reply 0 retweets 1 like -
What gets transpiled is a moving window. Saying “it doesn’t matter because people transpile today anyway” is shortsighted.
1 reply 0 retweets 2 likes -
Try to find that double quoted sentence in one of my tweets and ... guess what ... wow, nobody said that ever
Once again, I think it's sad V8 keeps React under its radar, without looking too much around.
We use daily for/of and it's not optimized for static lists neither
2 replies 0 retweets 0 likes -
Then what do you mean when you say “React ships transpiled”?
1 reply 0 retweets 0 likes -
it's their way to ship anything. They have bundlers by default 'cause JSX wouldn't work otherwise. Show me otherwise, please ...
1 reply 0 retweets 0 likes -
Replying to @WebReflection @mathias and
Mate, just because one thing is transpiled doesn't mean everything is. Just because I transpile JSX doesn't mean I also transpile array restructuring. Not everyone targets IE11.
1 reply 0 retweets 5 likes -
are you guys for real? try this ... npx create-react-app my-app cd my-app yarn start now write function rand() { const o = []; for(let i = 0, l = Math.random() * 5; i < l; i++) o.push(i); return o; } const [a, b] = rand(); now see the source. Now just stop there!pic.twitter.com/YjuR4E24Ch
4 replies 0 retweets 2 likes
It’s hard to tell which point you’re trying to make... create-react-app transpiles by default? Yeah, the doc says this already. Who are you arguing with?
-
-
I think it's time for *you* to show some counter data. So, I can demonstrate everyone using create-react-app (58K on GitHub) would transpile destructuring too. That's AFAIK the majority of React users due its handy boilerplate. Where is *your* data about destructuring usage?
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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.