%0 Conference Proceedings %T Composable Actor Behaviour %+ Vrije Universiteit Brussel (VUB) %A van den Vonder, Sam %A de Koster, Joeri %A de Meuter, Wolfgang %< avec comité de lecture %( Lecture Notes in Computer Science %B 19th IFIP International Conference on Distributed Applications and Interoperable Systems (DAIS) %C Kongens Lyngby, Denmark %Y José Pereira %Y Laura Ricci %I Springer International Publishing %3 Distributed Applications and Interoperable Systems %V LNCS-11534 %P 57-73 %8 2019-06-17 %D 2019 %R 10.1007/978-3-030-22496-7_4 %K Actors %K Delegation %K Active Objects %K Code reusability %Z Computer Science [cs] %Z Computer Science [cs]/Networking and Internet Architecture [cs.NI]Conference papers %X Code reusability is the cornerstone of object-oriented programming. Reuse mechanisms such as inheritance and trait composition lay at the basis of a whole range of software engineering practices with the goal to improve software quality and reliability. In this paper we investigate code reuse mechanisms for actors, and find that it is currently difficult to specify the behaviour of an actor out of reusable parts. We discuss different kinds of code reuse mechanisms in different kinds of actor model, and we motivate why these mechanisms are currently unsatisfactory. As a possible solution we define a new reuse mechanism based on delegation-based trait composition. In a nutshell, the mechanism allows programmers to compose the behaviour of actors, and every time a compound behaviour is spawned into an actor, it will cause multiple actors to be spawned (one for each independent behaviour). Some messages will be automatically delegated to the actor that implements the desired functionality. We provide an implementation of this model in a prototype Active Object language called Stella, and we formalise a subset of Stella using a small-step operational semantics to unambiguously define the different steps involved in our reuse mechanism. %G English %Z TC 6 %Z WG 6.1 %2 https://inria.hal.science/hal-02319570/document %2 https://inria.hal.science/hal-02319570/file/485766_1_En_4_Chapter.pdf %L hal-02319570 %U https://inria.hal.science/hal-02319570 %~ IFIP-LNCS %~ IFIP %~ IFIP-TC %~ IFIP-WG %~ IFIP-TC6 %~ IFIP-WG6-1 %~ IFIP-DAIS %~ IFIP-DISCOTEC %~ IFIP-LNCS-11534