Skip to content

Vector Type Specification - #1085

Closed
Kronos3 wants to merge 570 commits into
feature/variable-size-arraysfrom
variable-size-arrays-spec
Closed

Kronos3 wants to merge 570 commits into
feature/variable-size-arraysfrom
variable-size-arrays-spec

Conversation

@Kronos3

@Kronos3 Kronos3 commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Closes #1080

I churned a bit on the spec here initially trying to fold the original "Variable sized array" proposal that I made as a sub-case of the array type. As I got further in the implementation I realized that they are distinct types and it would be much cleaner to treat them completely separately.

This PR specifies a new "Vector type" which is similar to array type but has two distinct differences:

  • Vector types include both a "length" and a "maximum size".
  • Values can include [0, max size] elements

Vector types also have a notion of size-prefix type which must be a type whose underlying type is an unsigned integer. This prefix type is used only during serialization to serialize the length of the vector.

@Kronos3
Kronos3 marked this pull request as draft August 24, 2026 20:22
@bocchino

bocchino commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

To avoid cluttering the board, I would like to have at most one PR per issue that is not under active review.

@bocchino bocchino closed this Sep 9, 2026
@bocchino bocchino reopened this Sep 9, 2026
bocchino and others added 26 commits September 28, 2026 11:39
bocchino and others added 29 commits October 22, 2026 09:58
Move Dependencies from Expansion to Definition
Add tests for state machine enums in template definitions
22.04 is also deprecated
Revise dependency algorithm and implementation
@Kronos3 Kronos3 closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants