Hi all, just recently read the task concurrency manifesto:
https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9f782#part-2-actors-eliminating-shared-mutable-state
Where they describe how in swift the language could be extended to support actors.
One thing i like how they consider turning regular classes with almost zero boilerplate into actors.
So i started writing an annotation processor to do the same in Kotlin:
https://github.com/uluckas/s2s-KActorAnnotations
A class annotated with KActor receives a twin class containing an actor and all methods mirrored to send messages to that actor which then calls the original method.
This is a first shot and it comes with little documentation except one small demo use case in the KActorTest module.
I would really appreciate, if some of you would take a look and conmment on the idea.
Do you want something like this? How could it be made even more useful? ...