Old comments about Java

Bruno Medeiros brunodomedeiros+spam at com.gmail
Fri Apr 29 08:58:45 PDT 2011


On 24/04/2011 00:43, bearophile wrote:
>      First, they impose a full word of overhead on each and every object, just in case someone somewhere sometime wants to grab a lock on that object. What, you say that you know that nobody outside of your code will ever get a pointer to this object, and that you do your locking elsewhere, and you have a zillion of these objects so you'd like them to take up as little memory as possible? Sorry. You're screwed.
>      [I have not yet understood why D shared this Java design choice.]

Huh? D hasn't shared that design choice at all: unlike Java, D has 
structs which can be used for lightweight data structures... Duh.

-- 
Bruno Medeiros - Software Engineer


More information about the Digitalmars-d mailing list