-
Notifications
You must be signed in to change notification settings - Fork 19
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
Async iterator streams wip #271
Closed
H-Plus-Time
wants to merge
14
commits into
kylebarron:main
from
H-Plus-Time:async-iterator-streams-wip
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
082939b
Re-enable content_length in read_row_group, implement a wrapper JsPa…
H-Plus-Time 7aa06de
*Carefully* bump web-sys, enable unstable web apis, minimal logic for…
H-Plus-Time 5ed5f3d
Fast-forward to latest version of arrow (w/ export adaptions), satisf…
H-Plus-Time 2da4734
wip ffi for arrow1
kylebarron ab7c571
add make_array
kylebarron e4b630e
Merge remote-tracking branch 'upstream/main' into async-iterator-stre…
H-Plus-Time 8e477e5
Address stylistic feedback
H-Plus-Time c490fde
Complete (rough) low-level streaming for arrow2 (the whole stream mat…
H-Plus-Time ec51142
Implement AsyncWrite trait wrapper for ReadableStreamController, reas…
H-Plus-Time 18bdf74
Apply cargo fmt, switch to pull-based stream for arrow1, add close fo…
H-Plus-Time 4cc7468
Add streaming read tests
H-Plus-Time d3e7204
Merge remote-tracking branch 'upstream/main' into async-iterator-stre…
H-Plus-Time 83079e0
Merge remote-tracking branch 'upstream/kyle/wip-arrow1-ffi' into asyn…
H-Plus-Time aa6b38e
Reasonably functional ReadableStream of FFIArrowRecordBatch structs
H-Plus-Time File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build] | ||
rustflags = ["--cfg=web_sys_unstable_apis"] | ||
|
||
[target.wasm32-unknown-unknown] | ||
rustflags = ["--cfg=web_sys_unstable_apis"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What does this mean? Is this unstable on the Rust side or JS side? Are there browser implications? Does this work on all browsers that support Wasm?
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.
Unstable on the rust side - it's required for use of the
web_sys::ReadableStreamDefaultController
(ReadableStream
itself doesn't require it). It looks like the controller class isn't globally defined on browsers older than ~Feb 2020 (~7% in most jurisdictions), but callingnew ReadableStream({start, pull, cancel})
works as far back as at least Chrome 57 (Firefox 52-65 and Edge 16-18 appear to be the only versions where WebAssembly support was available before ReadableStream constructors). Eyeballing the caniuse figures, its about 0.1% of browsers with !ReadableStream && Webassembly.I was a little leery of the potential for the Rust side method names to change, but it looks like the web-sys codegen for optional arguments (<original_method_name>with) is pretty stable.