@nikomatsakis Does __slots__ have actual semantic impact, or just performance impact?
Does Ruby have any equivalent to Python's __slots__? What about other dynamic languages?
-
-
-
@samth I believe objects with slots are "sealed" (in the js sense) - 14 more replies
New conversation -
-
-
@nikomatsakis not as a language. But, JRuby does this. I think rbx does it as well. MRI does limited optimization.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@nikomatsakis IMO this is a wrong path, placing unreasonable and actually unnecessary burden on programmer. Easily figured out by VM.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@nikomatsakis At least ruby and jruby (via the jvm) optimize accessors without needing programmer intervention.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.