Thanks for this great article! In the code just after “Let’s consider this concrete example,” should it say Object.preventExtensions(b)?
-
-
- Kraj razgovora
Novi razgovor -
-
-
So, I'm curious regarding that last bit - what are the alternatives to the (maybe/likely/soon/...?) deprecated shape migrations that V8 is looking into?
-
Basically it's to just do in-place transitions, defining field types as a lattice where each transition only increases the set of valid types (e.g. rather than Smi -> Double, have Smi -> DoubleOrSmi). Here's the design:https://docs.google.com/document/d/1VeKIskAakxQFnUBNkhBmVswgR7Vk6T1kAyKRLhqerb4/edit?usp=sharing …
Kraj razgovora
Novi razgovor -
-
-
Great post! Regarding the last advice about `null`, does it also apply for `undefined`? If the variable is initialized to `undefined` and then received an Smi, does v8 consider it an Smi?
- Još 6 drugih odgovora
Novi razgovor -
-
-
Nice article! I've always heard that typeof null was a bug in OG netscape, not a design choice. I wonder if anyone would know for sure.
-
this guy would know:
@BrendanEich - Još 1 odgovor
Novi razgovor -
-
-
YEEEAAAGH!!!Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Would it be interesting to have trace events for this kind of deoptimization/slow path?
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
The story of a
how are JavaScript values represented in memory?