You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
universe_version and the tree s-expression wrapper being the new things here. The version would apply to all domains in the type domain since changing one domain can impact any domain that permutes from it.
This helps us to deal with some of the challenges that arise when loading data from an older type universe into a newer generated domain.
When the s-expressions are created by the generated code, they must be wrapped in a tree node with the same version numbers as the type universe file it was generated from. When converting back from s-expressions, the generated code must ensure that the major version is the same and that the minor version is equal or less than the same in the type universe file. The only caveat is that the major and minor versions must be manually maintained--and we'll have to consider carefully if the changes we make should be a major or minor version bump.
The text was updated successfully, but these errors were encountered:
For the version number, I would recommend defining it at the top of the PIG type universe file to indicate that it belongs to all the permuted PIG domains.
PIG domains could be given semantic versioning to help with identifying their persisted instances.
Example:
When converted to s-expressions, they might look like this:
universe_version
and thetree
s-expression wrapper being the new things here. The version would apply to all domains in the type domain since changing one domain can impact any domain that permutes from it.This helps us to deal with some of the challenges that arise when loading data from an older type universe into a newer generated domain.
When the s-expressions are created by the generated code, they must be wrapped in a
tree
node with the same version numbers as the type universe file it was generated from. When converting back from s-expressions, the generated code must ensure that the major version is the same and that the minor version is equal or less than the same in the type universe file. The only caveat is that the major and minor versions must be manually maintained--and we'll have to consider carefully if the changes we make should be a major or minor version bump.The text was updated successfully, but these errors were encountered: