An empirical study of multi-threading paradigms Reactive programming vs continuation-passing style
Authors:
Open Access
- 5 August 2020
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 37-41
Abstract
This paper compares two popular multi-threading paradigms: reactive programming and continuation-passing style as today there are many software paradigms which could be replaced by each other, and programmers sometimes have dilemma which one to choose. . To conduct the comparison, the paper proposes a method for evaluating software paradigms in regards to Maintainability, Performance and Testability quality attributes, chosen due to their importance in modern software development. RxJava and Kotlin Coroutines serve as the specific implementations of the two paradigms, since both enjoy popularity in the industry and have proven themselves in real-world projects. As a result, the paper identifies that both frameworks have similar characteristics in regards to performance and testability, however Kotlin Coroutines demonstrates better maintainability. Moreover, the paper establishes a multi-dimensional evaluation method for comparing the frameworks, and identifies what factors should be taken into account when selecting a particular programming paradigm, also these findings could be used in software patterns comparison with some improvements and modifications.Keywords
This publication has 5 references indexed in Scilit:
- A Survey of Asynchronous Programming Using Coroutines in the Internet of Things and Embedded SystemsACM Transactions on Embedded Computing Systems, 2019
- Towards comparing programming paradigms2017
- An empirical study on program comprehension with reactive programming2014
- On Automatically Collectable Metrics for Software Maintainability Evaluation2014
- The application of software maintainability models in industrial software systemsJournal of Systems and Software, 1995