Skip to content

Conversation

Xmader
Copy link
Member

@Xmader Xmader commented Apr 27, 2023

  • Python buffers (bytearray/memoryview/etc.) coerce to JS TypedArray, respecting the element type code
  • JS TypedArray coerces to Python memoryview, mapping TypedArray subtypes (Uint8Array, Float64Array, ...) to type codes
  • JS ArrayBuffer coerces to simple memoryview with unsigned bytes

This pull request resolves the following internal ticket:

Xmader added 30 commits April 3, 2023 14:12
@Xmader Xmader force-pushed the BF-40 branch 2 times, most recently from 8a17dbc to 7fa4232 Compare May 4, 2023 18:44
@Xmader Xmader marked this pull request as ready for review May 4, 2023 20:44
@Xmader Xmader requested a review from zollqir May 9, 2023 18:05
@Xmader Xmader changed the base branch from BF-41 to main May 30, 2023 20:03
Copy link
Collaborator

@zollqir zollqir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good. Only issues are those outlined in my comments for #16
regarding missing documentation for JobQueue, PromiseType, and PyEventLoop that share commits with this MR. The BufferType stuff is all excellent in this MR.

I am willing to merge this into main, and then have (#16) fix the documentation as outlined in my comments there.

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.

2 participants