Questions tagged [streams]
The streams tag has no summary.
13 questions
1 vote
4 answers
356 views
Synchronized Web Audio Playback on Multiple Smartphones Using Timestamped Chunks and Manual Time Shifting
Note: I am not super knowledgeable web javascript or streaming, but I have read this and this and this I am proposing an alternate idea and just trying to verify whether I have a sound starting point ...
6 votes
4 answers
2k views
Separate unidirectional streams vs single bidirectional stream
Over the years I've run into (and created) APIs around device communication (Serial, USB, TCP, Bluetooth, etc). At the bottom of these APIs are usually byte streams that can send data to the device ...
2 votes
2 answers
187 views
How to protect class invariants when using the extraction operator?
The C++ "standard" method for serializing and deserializing a data type is to use streams with the insertion (<<) and extraction (>>) operators. This has some flaws, but it does ...
5 votes
3 answers
640 views
How to visualize a Stream object (and some other data types)?
I want to make a small programming tutorial which will have a number of images visualizing various data types, but I am not sure how to draw these images of the data types. Assume that I have a ...
2 votes
4 answers
2k views
Is the Java Stream API intended to replace loops?
I mean the question in the sense of: Should the occurrence of simple loops on collections in code in Java 8 and higher be regarded as code smell (except in justified exceptions)? When it came to Java ...
1 vote
1 answer
873 views
What is the relationship between reactive programming and stream processing engines?
When would I use reactive programming libraries like RX Java and Project Reactor compared to stream processing engines such as Storm and Flink? I am aware that these concepts might not be directly ...
1 vote
2 answers
2k views
How to refactor function chains for Java 8 Streams
I have a stream of data recordStream that I am collecting into a Map. Using a chain like this. recordStream .filter(Objects::nonNull) .map(RoomSchedule::new) .map(...