From: Christoph Neubauer Date: 2004-06-29T21:57:55+09:00 Subject: Re: Object as an array or hash? "rolo" wrote in message news:ACEPLIKLBKEMDDIELPKIKEIACIAA.rohitlodha@hotwireindia.com... > Hi > > I am currently implementing a VM for Ruby. The code shall be compiled in my > case. > What implementation language do you use ? (C++, Java, ...) What's the 'compiler output' ? (executable binary, bytecode, ...) > Currently, the instance variables are implemented as an hash table. How is the hash table implemented right now ? Is it implemented all by yourself, ... e.g: What 'type' is the hash-key of ? (string, object identifier, ...) Where is the 'data content' of the object instance stored in ? (statically/dynamically allocated memory) .... or is there some element / interface / library of your implementation language you can use ? > In complied form it can be also implemented as an array. > Both of the methods have its only drawbacks and advantages but no > limitations on implementing the ruby language as it is currently. > > Has anyone thought about which might be better in case of compiled code? What do you mean with 'better', or, at least, where are your preferences ? Data Reliability ? Performance ? Memory usage ? Flexibility in internal data structure ? A lot of questions, I know. But 'better' depends on them. Kind regards, Chris > > Thanks and Regards, > > rolo > > > >