Skip to content

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.

3 participants