4 ms·
Doesn't the V8 javascript engine do something like this? Where it builds C-structs instead of hashmaps if it can detect that your objects are being built in a c
by jes5199 14y ago
Doesn't the V8 javascript engine do something like this? Where it builds C-structs instead of hashmaps if it can detect that your objects are being built in a consistent way
- maggit 14y agoYes. They call it "hidden classes": https://developers.google.com/v8/design#prop_access https://developers.google.com/v8/design#prop_access
- gngeal 14y agoSelf-93, the language that pioneered this approach for dynamic native compilation, celebrates it 20th birthday this year.
- gsnedders 14y agoSo does PyPy, but only for objects (and not for hashmaps, i.e., the dict object).