Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime type identification and tagged ptr types #31

Open
pliniker opened this issue Jul 20, 2020 · 0 comments
Open

Runtime type identification and tagged ptr types #31

pliniker opened this issue Jul 20, 2020 · 0 comments
Labels
data structures Area: internal data structures medium Some experience and/or subject matter knowledge required

Comments

@pliniker
Copy link
Member

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 pliniker added hard Experience and/or subject matter knowledge required data structures Area: internal data structures medium Some experience and/or subject matter knowledge required and removed hard Experience and/or subject matter knowledge required labels Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data structures Area: internal data structures medium Some experience and/or subject matter knowledge required
Projects
None yet
Development

No branches or pull requests

1 participant