https://github.com/renestein/Rstein.AsyncCppPR, stars, opinions, issues are more than welcome! Thanks!
Added threadless actors:
Functional style actors* - with state/without state | with reply/without reply | synchronous/asynchronous processing logic.
Object style actors* - developer inherits his own class from the ActorPolicy class and delegates the work to the ScheduleFunction method that returns Task<T>.
Simple examples. (extracted from tests).https://github.com/renestein/Rstein.AsyncCpp#threadless-actors-in-process-agents
Map/Reduce actors - counting word frequency in Shakespeare.https://github.com/renestein/Rstein.AsyncCpp/tree/master/Samples/MapReduceActors
Dynamic proxy for simplified creation of actors from classes with an interface that contains only void returning or/and Task<T> returning methods. AFAIK C++ does not have support for the "dynamic" proxy. "Classic" smart proxy may be used only for pre-processing and post-processing of the method call in the "real" subject.
Asynchronous logic (support for co_await/co_return) in "OOP style" actors.
The context for messages (a reference to a sender, a reply address, etc.)
* What is an actor? https://en.wikipedia.org/wiki/Actor_model
Wednesday, September 2, 2020 11:18:57 AM (Central Europe Standard Time, UTC+01:00)
Comments  C++
© Copyright 2004-2021 René Stein
Design Bryan Bell, , upravil René Stein
newtelligence dasBlog 1.9.7174.0Page rendered at Friday, September 17, 2021 6:34:29 PM (Central Europe Standard Time, UTC+01:00)