C++Now 2017 has ended
Back To Schedule
Friday, May 19 • 2:30pm - 4:00pm
No raw std::thread! - Live Tweet Analysis in C++

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
Slides: https://github.com/boostcon/cppnow_presentations_2017/blob/master/05-19-2017_friday/no_raw_std_thread_live_tweet_analysis_in_cpp__kirk_shoop__cppnow_05-19-2017.pdf
Video: https://www.youtube.com/watch?v=1-8gxwGN3S8

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.

avatar for Kirk Shoop

Kirk Shoop

Principal Software Engineer, Microsoft
Rx Cpp, Asynchronous Algorithms, catching code errors at compile time.

Friday May 19, 2017 2:30pm - 4:00pm MDT