2 ms·
what if you could do something like the "pledge()" call that says "OK, this is it, I'm all set up, the dynamism is all done Someone did a study of their Python
by stcredzero 8y ago
what if you could do something like the "pledge()" call that says "OK, this is it, I'm all set up, the dynamism is all done
Someone did a study of their Python servers, and found that after an initial phase, almost no dynamic facilities were used at all!
it seems to me that it would also be feasible to go the other way, and allow users to define things as structs, and if you want to offer hash-like access it would be easy to lay down hash-like access to the struct members
I like that. Smalltalk kind of did this, but much less. Objects were just arrays of object references, but certain object references were adorned smallint values. People also wrote hash-like accessor implementations for objects. "Shape changes" to objects of a certain class would require a stop the world re-allocation of all such objects, however.