book icon indicating copy to clipboard operation
book copied to clipboard

Runtime type identification and tagged ptr types

Open pliniker opened this issue 5 years ago • 0 comments

Instead of the enum TypeList in interpreter/src/headers.rs, we should explore better type identifier means.

For example, can we generate a compile-time const for each object type that can be used to map to a trait object, where the trait object provides core runtime functions for each object type? This would be less verbose than the enums and mapping between tagged pointer types, possibly at some cost. Perhaps some combination of the two approaches would make sense?

pliniker avatar Jul 20 '20 12:07 pliniker