Questions tagged [stream]
A stream is a series of data elements (characters, bytes or complex packets) which can be accessed or made accessible in a serial fashion. Random access is not possible.
323 questions
6
votes
2
answers
141
views
WebRTC Data Channel over WHATWG Streams
There's been talk about implementing WebRTC Data Channel over WHATWG Streams for a while
https://github.com/w3c/webrtc-pc/issues/1732
https://github.com/w3c/webrtc-nv-use-cases/issues/44
https://...
9
votes
2
answers
628
views
Transliterate wide-character input
One shortcoming of GNU's implementation of the tr utility is that it operates on bytes rather than characters. As the man page says under BUGS:
Full support is ...
5
votes
2
answers
983
views
An AsyncStreamWriter that allows to asynchronously write to a Stream
I'm hoping this should be mostly asynchronous, looking to make this close to 100%, if not 100%, so. This class was created to ease converting image formats, but it has an unlimited number of use cases....
5
votes
4
answers
983
views
Very simple CSV-parser in Java
Please take a look at my method for parsing a CSV string.
I am looking for a simple approach without using an external library.
Is throwing a RuntimeException ...
5
votes
6
answers
490
views
Search values by priority in a Stream
I have a simple list of results, and I need to return only one value depending on content, for example:
...
4
votes
1
answer
436
views
Java: Benchmark findFirst() and findAny() methods on non-parallel streams
I would like to know how representative the following benchmark is? Can we infer from it that findFirst is much slower than ...
6
votes
2
answers
385
views
To markup a C++ std::ostream and delegate formatting of markuped text
I want to create a system that marks up text with tags inserted into a stream. Each tag frames a part of the text, creating a tree-like structure, just as in classic markup languages (HTML, XML...). I ...
1
vote
2
answers
138
views
Python - streaming file
I need to download and upload around 1000 files.
The file is first downloaded from one webserver and then uploaded to another. My first approach was to save each file on disk and then upload - but as ...
3
votes
1
answer
126
views
In Java, replace for loop with condition with lambdas [closed]
I want to replace a for loop with a break/return condition inside with a lambda.
I think I have a good replacement, but I want ...
5
votes
2
answers
327
views
ostream that counts and discards the characters written to it
The code below implements a class, CountingOStream, whose job is to
count the number of characters written to it while also discarding those
characters and ...
3
votes
1
answer
351
views
Implementation of java.util.stream.Stream (and friends) that reads lines from the internet without requiring you to manage the resources
This streams lines of information over the internet using BufferedReader::lines.
However, what makes this special (and thus, extraordinarily complicated imo) is ...
4
votes
1
answer
137
views
Video transcoding using ffmpeg
I am transcoding video to different quality using ffmpeg using subprocess in Python. I want to make my transcoding faster. I tried multi-threading but it didn't help. Hardware acceleration is not ...
2
votes
2
answers
155
views
Find all line numbers of prefix duplicates with streams
All line indices of lines from a text that begin with the same line prefix should be found. The prefixes and the corresponding line numbers should be returned. Streams and lambdas should be used as ...
5
votes
2
answers
170
views
Print the three most occurring chars in Java using streams
The three characters that occurs most in a given string should be printed by using streams/lambdas (functional programming). The order of characters that occur equally often should be preserved.
My ...
1
vote
0
answers
2k
views
Streaming Parquet file in chunks for write operation
I am taking beginner steps into DE and was tinkering with writing an ingestion script which does the following tasks:
Reads data from a source (in this case a remote parquet file)
Writes it to local ...