-
Notifications
You must be signed in to change notification settings - Fork 41
BF-40: Py buffers (bytearray
/memoryview
/etc.) to JS TypedArray, JS TypedArray/ArrayBuffer to Py memoryview
coercion
#20
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
Conversation
…ks` (offThreadPromiseState shutdown)
…been set when SpiderMonkey fails
(not implemented yet)
…ueToPyEventLoop` method
…ts to the callback, as spec-ed
…ument as the global object
…TypedArray, although we don't officially support numpy yet
8a17dbc
to
7fa4232
Compare
…emoryview coercion
…jsTypeFactory` may also raise exceptions
…verting a string constant to ‘char*’`
…emoryview coercion
…d on GC in `handleSharedPythonMonkeyMemory`
There was a problem hiding this 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.
bytearray
/memoryview
/etc.) coerce to JSTypedArray
, respecting the element type codeTypedArray
coerces to Python memoryview, mappingTypedArray
subtypes (Uint8Array
,Float64Array
, ...) to type codesArrayBuffer
coerces to simple memoryview with unsigned bytesThis pull request resolves the following internal ticket: