2 ms·
The core Self concepts washed up in Javascript. The most influential thing about Self turned out to be the optimization technique called "code splitting", wher
by ncmncm 6y ago
The core Self concepts washed up in Javascript.
The most influential thing about Self turned out to be the optimization technique called "code splitting", where you identify a "happy path" and hoist out all the expensive lookups along that path, with maybe just checks for whether you are still on it. So, for example, you emit code for one loop that just does fixed-size integers, and another one for all the other numeric types. Then at runtime, the code first checks for an int32, and then (in practice) always ends up in the fast one.