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

Design: data type factoring system (and apply to sizes) #50

Open
rrnewton opened this issue Mar 8, 2017 · 2 comments
Open

Design: data type factoring system (and apply to sizes) #50

rrnewton opened this issue Mar 8, 2017 · 2 comments

Comments

@rrnewton
Copy link
Member

rrnewton commented Mar 8, 2017

TBD - this is a placeholder. What's our initial idea on this front? Please fill me in.

@rrnewton
Copy link
Member Author

This is described as "future work" in the ECOOP camera ready.

@rrnewton rrnewton changed the title Design: data type factoring system Design: data type factoring system (and apply to sizes) Feb 17, 2018
@rrnewton
Copy link
Member Author

One question that came up in our last meeting was what if we take the extreme position of factoring out all payload fields. That is, the "main" serialized buffer would contain nothing but tags determining the structure of the data.

Here we have a tension where it would be very nice for factoring out size fields to use the same general mechanism as factoring out any fields. But sizes really are specially. We want to use special tricks in encoding the tags of a sized DataCon' vs the original DataCon, and we way want to "remember" the fact the equivalence between those two, allowing the compiler to convert between them where it desires. (For example, automatically "bottoming out" to non-sized constructors as the trees grow small near the leaves.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant