Arrays with non-constant lengths - #1325
Draft
eponier wants to merge 29 commits into
Draft
Conversation
Contributor
Author
|
Comments:
|
Contributor
Author
|
Also the feature was added on top of the |
eponier
force-pushed
the
array_unknown_size2
branch
from
January 28, 2026 15:00
e6b4ea9 to
5e0cdf4
Compare
eponier
force-pushed
the
array_unknown_size2
branch
from
February 16, 2026 09:57
5e0cdf4 to
36fd5e2
Compare
eponier
force-pushed
the
array_unknown_size2
branch
2 times, most recently
from
February 25, 2026 22:40
14579db to
6a14aec
Compare
As long as it is evaluated to positive instead of Z, having a Sub case is painful.
compiles until stack alloc
env returns option Z
In pretyping, we generate directly a prog
Including non-polynomial ones that are only half supported: is this a good idea?
eponier
force-pushed
the
array_unknown_size2
branch
from
March 24, 2026 14:42
6a14aec to
987d5a5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I open this to get some feedback. This is still early draft, in particular no proof has been tried.
The length of an array is no longer an integer, but a simple arithmetic expression (with additions and multiplications).
This change is used to implement some kind of templating for functions (cf.
tests/template) as a POC.