Skip to content

Add some array builtins for more efficient array programming#5908

Draft
dolio wants to merge 9 commits intotrunkfrom
topic/array-ops
Draft

Add some array builtins for more efficient array programming#5908
dolio wants to merge 9 commits intotrunkfrom
topic/array-ops

Conversation

@dolio
Copy link
Copy Markdown
Contributor

@dolio dolio commented Sep 30, 2025

This PR adds a new UnboxedArray type and various operations on it and ImmutableArray that allow for more efficient bulk operations on arrays. The array operations are described here.

Most operations have just been added as new builtins, and will need to be wrapped in e.g. @unsion/base. However, I added ImmutableArray.toList (a.k.a Array.Raw.toList) as a function replacement, because it was already a predef in IOSource.

This could use some more thorough testing by @SystemFw and @pchiusano , but I'll add the examples from the spec as a transcript.

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.

1 participant