-
Notifications
You must be signed in to change notification settings - Fork 13
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
Continuation type encoding #97
Comments
IIRC, negative type indices are reserved for 'standard' tyoes. While at the moment we don't have any standard continuation types, I think it is prudent to not shut out that potential for the future. Hence, I support s33. |
I still prefer using |
@tlively, the room for possible future extensions is a bit broader than that. For example, in all places where we use s33 as part of a larger type expression, we could consistently allow inlining type definitions in the future, such that e.g. not every one-off composite type needs to be its own definition. It's a code "hygiene" consideration related to keeping all type codes different, even where they inhabit disjoint spaces today, so that they can still be regrouped later. |
Sure, but we still currently use s33 only where abstract heap types or numeric types would be allowed. We also don’t use s33 as an expansion point for any other kind of index. |
This is a tracking issue to continue the discussion in #89.
We can encode the type
(cont $ft)
in different ways. The interesting part is the encoding of the type index$ft
. Some possible ways we can encode the type index:u32
,u8
followed by au32
,s33
.The latter two options give a natural "extension" point, enabling us to attach additional metadata to continuation types in the future.
The text was updated successfully, but these errors were encountered: