User loginNavigation |
Of Generics and Erasure and, of all things, GC and memory layoutI'm trying to grok the difference in generics implementation between Java and C++, specifically the implications of type erasure in Java. Most of the info I'm finding is blogger stuff, so I'm wondering if there's any better-than-most analysis of the issue out there. This issue also makes me wonder about the impact of having to store type info along with data - a required "vtable pointer" in C# lingo if I get that right - on some traditional memory layout schemes. Does this put an end to BIBOP like value typing schemes, if many small words are type parameterized? Box[T], Pair[T,U] and so on??? Or how about the two word Cons cell tricks (via distinguished non-Cons object header word) vs. List[T] where one needs a vtable word in every Cons cell along with head/tail (car/cdr whatever), which with 2 word alignment is going to make for big fat 4 word cons cells? Inquiring minds want to know :-) Scott By scottmcl at 2008-07-07 18:51 | LtU Forum | previous forum topic | next forum topic | other blogs | 4885 reads
|
Browse archives
Active forum topics
|
Recent comments
9 weeks 5 days ago
13 weeks 6 days ago
15 weeks 4 days ago
15 weeks 4 days ago
18 weeks 2 days ago
22 weeks 6 days ago
22 weeks 6 days ago
23 weeks 2 days ago
23 weeks 2 days ago
26 weeks 1 day ago