Better HN
topnewbestaskshowjobs
Log inSign up

_I_

2 karma · joined Apr 4, 2015 (11y ago) · 3 submissions

Submissions

comment 11y ago · link · parent

Exactly. This is in fact done in some languages to mark generations for garbage collection.

comment 11y ago · link · parent

Again, I have only used Java a little bit, but I don't see how a language that allows you do pointer arithmetic (flipping one of the bits in the pointer), and then de-reference the modified pointer, could be type safe. I understood that Java was pretty much type safe, so I assumed it doesn't allow this in general.

comment 11y ago · link · parent

Their implementation is in Java. I am not too familiar with Java, but I don't think that is possible; it's a tradeoff of memory efficiency for type safety.