News for hackers. Stuff that matters.
Re:What is gained and lost with 63-bit integers? (2014) by gpderetta on Saturday August 12, 2023 @10:36AM (#37100610)
It is still not clear to me why it is necessary to store the type information inline. I'm absolutely not an expert, but I thought that some GC'd languages had stack layout metadata, to figure out the type of each stack slot. Similarly heap allocated data should have an associated type layout info.

[1] possibly static and indexed by the instruction pointer, not unlike DWARF unwind info.

Re:What is gained and lost with 63-bit integers? (2014) by ithkuil on Saturday August 12, 2023 @11:23AM (#37101101)
It's not necessary. Indeed there are many GCs that use type information (as a sibling comment says, Go GC is now precise). But it's more complicated, so it's a tradeoff. You may pay some little cost in dealing with tagged arithmetic but you gain a simpler GC codebase, one perhaps that can work with both the AOT and bytecode compilers (just speculating)