Skip to content

Decouple Array<T> from ArrayBufferView #1121

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

Merged
merged 2 commits into from
Mar 14, 2020
Merged

Decouple Array<T> from ArrayBufferView #1121

merged 2 commits into from
Mar 14, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Feb 21, 2020

After wasting a lot of time trying to refactor ArrayBufferView incl. updating all of stdlib, tests and the compiler internals at once, this PR just implements the bare minimum of changes to decouple Array<T> from the ArrayBufferView interface as a basis.

This keeps dataStart for now on both ABVs and Array, since updating it to buffer + byteOffset turned out to have just so many implications, especially where dataStart is used to obtain unsafe pointers, that spotting any problems introduced by refactoring became nearly impossible.

Based on that I suggest to first replace those usages of dataStart in stdlib and tests with a new FixedArray concept as discussed on Slack, and only then continue from there.

Supersedes #1112

@dcodeIO dcodeIO requested a review from MaxGraey March 13, 2020 23:08
@dcodeIO dcodeIO merged commit b794620 into master Mar 14, 2020
dcodeIO added a commit that referenced this pull request Mar 14, 2020
@dcodeIO dcodeIO deleted the arrayabv branch March 15, 2020 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants