nice talk, thank you. is the summary recommendation - "instantiate objects with literal syntax & don't add/remove fields later. stick to the same structure" and from your earlier optimization talk: "only use the same type of objects in arrays" ?
-
-
-
There’s a “take-aways” section: https://mathiasbynens.be/notes/shapes-ics#takeaways … It’s more important that you initialize objects in the same way than that you use object literals. But sure, if you have the choice, go with object literals.
- 2 more replies
New conversation -
-
-
Excellent article! Kudos! Nit: [[Configurable]] does more than mentioned. Not only (dis)allows delete, but also switching type (data<->accessor) and changing [[attributes]]. Perhaps purposeful simplification.
-
You’re absolutely right! We had a screenshot of the spec text saying as much in the presentation, but indeed simplified it in our speech and in the written blog post.
End of conversation
New conversation -
-
-
Awesome! I also found another similar and informative article about object shapes https://draft.li/blog/2016/12/22/javascript-engines-hidden-classes/ …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This is so cool! Thanks for writing it up!!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thank you for this article. I learned somethings !
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
The transformation part should be named "Shape shifter" :-)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Awesome, thanks for sharing!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. 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.
JavaScript engine fundamentals: Shapes and Inline Caches