C++Now 2017: Kirk Shoop "No raw std::thread! - Live Tweet Analysis in C++"
Channel: CppNow
Date: 2017-06-13

http://cppnow.org
—
Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/boostcon/cppnow_presentations_2017
—
No raw loops is the clarion call for applying the existing std algorithms to values-distributed in space. 
No raw std::thread is the same call to apply algorithms to values-distributed-in-space.
The live tweet analysis app, explored here, provides a working example of how complex interactions between; a live stream of tweets, REST api calls, and the main rendering loop can be expressed by applying concurrent algorithms instead of raw std::thread and std::mutex. 
The app will request the twitter stream, parse out each tweet, call a Machine Learning REST API to return the sentiment of each tweet (positive or negative) display the tweets with search, display a word cloud and eventually attach the sentiment back to the correct tweet when the REST API completes. 
The app uses algorithms for values distributed in time to batch values in space, distribute values to different threads and coordinate values through time. When the values are distributed in space then the range-v3 algorithms library is used to process the batch of values. 
— 
Kirk Shoop
Principal Software Engineer, Microsoft
Rx Cpp, Asynchronous Algorithms, catching code errors at compile time.
—
Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
---

*--*

---