Open brucehsu opened 10 years ago
https://github.com/brucehsu/GobiesVM/commit/d2f5a21faaf9b40fa72f0922037f0b53b658a6ba
Now every object and even class is a RObject
instance. This lead to more simplified internal type inferences. Meanwhile, objects that comes within a bytecode instruction are now primitive types, such as int64
or string
in Go, for less overhead.
Currently every object is internally a instance of certain
struct
. For example, a string is created as aRString
instance, which distinguish itself from otherRString
instances. Thus no shared data, class variable for example, can fit in this schema. Ideally, it should work just like that in the MRI, split hierarchy into classes and meta-classes.