Leveraging Functional Programming for Real-Time Systems: A Literature Review
DOI:
https://doi.org/10.63199/an-nahdhah.v2i1.96Keywords:
Functional Programming; Real-Time Systems; Worst-Case Execution Time; Memory Management; Immutability; Temporal Predictability.Abstract
Real-time systems impose stringent temporal requirements in which the correctness of computation depends not only on the accuracy of results but also on their timely execution. Although functional programming (FP) offers important advantages through immutability, referential transparency, and compositional design, its suitability for real-time computing remains constrained by challenges associated with execution-time predictability, memory management, and resource utilization. This study systematically reviews the application of functional programming in real-time systems, focusing on the relationship between functional abstractions and temporal predictability. The retrieved from IEEE Xplore, ACM Digital Library, Scopus, SpringerLink, and Google Scholar. Following predefined eligibility criteria, the selected studies were analyzed using thematic synthesis, with particular attention to programming languages and runtime environments, application domains, memory management strategies, concurrency mechanisms, and real-time performance characteristics. The synthesis identifies three interconnected dimensions: the benefits of functional abstractions for controlling shared state and improving concurrency reasoning; the implementation-related challenges associated with memory allocation, garbage collection, and runtime overhead; and the limitations of establishing temporal guarantees, particularly worst-case execution time (WCET) and deadline compliance. The findings suggest that immutability and referential transparency can improve reasoning about program behavior but do not independently guarantee deterministic execution or hard real-time schedulability. The practical suitability of functional programming therefore depends on runtime architecture, memory management strategies, compiler support, and the temporal constraints of the target application. This review contributes an analytical framework for evaluating functional programming in real-time environments and identifies research priorities concerning WCET-aware compilation, bounded memory allocation, predictable garbage collection, and hybrid programming architectures.
References
Burns, A., & Wellings, A. (2009). Real-time systems and programming languages: Ada, real-time Java and C/real-time POSIX (4th ed.). Addison-Wesley.
Grogono, P. D. (1988). Real-time functional programming. In R. Radharamanan (Ed.), Robotics and factories of the future ’87: Proceedings of the Second International Conference, San Diego, California, USA, July 28–31, 1987 (pp. 743–750). Springer. https://doi.org/10.1007/978-3-642-73890-6_89
Haller, P., & Axelsson, L. (2017). Quantifying and explaining immutability in Scala. Electronic Proceedings in Theoretical Computer Science, 246, 21–27. https://doi.org/10.4204/EPTCS.246.5
Hammond, K. (2005). Is it time for real-time functional programming? In S. Gilmore (Ed.), Trends in functional programming (Vol. 4, pp. 1–18). Intellect Books.
Hammond, K., Ferdinand, C., Heckmann, R., Dyckhoff, R., Hofmann, M., Jost, S., Loidl, H.-W., Michaelson, G., Pointon, R., Scaife, N., Sérot, J., & Wallace, A. (2006). Towards formally verifiable WCET analysis for a functional programming language. In Proceedings of the 6th International Workshop on Worst-Case Execution Time Analysis (WCET 2006) (Vol. 4). Schloss Dagstuhl – Leibniz-Zentrum für Informatik. https://doi.org/10.4230/OASIcs.WCET.2006.677
Hu, Z., Hughes, J., & Wang, M. (2015). How functional programming mattered. National Science Review, 2(3), 349–370. https://doi.org/10.1093/nsr/nwv042
Kitchenham, B., & Charters, S. (2007). Guidelines for performing systematic literature reviews in software engineering (Version 2.3; EBSE Technical Report EBSE-2007-01).
Minaeva, A., & Hanzálek, Z. (2021). Survey on periodic scheduling for time-triggered hard real-time systems. ACM Computing Surveys, 54(1), Article 23. https://doi.org/10.1145/3431232
Murphy, J. C., Shivkumar, B., Pritchard, A., Iraci, G., Kumar, D., Kim, S. H., & Ziarek, L. (2019). A survey of real-time capabilities in functional languages and compilers. Concurrency and Computation: Practice and Experience, 31(4), Article e4902. https://doi.org/10.1002/cpe.4902
Page, M. J., McKenzie, J. E., Bossuyt, P. M., Boutron, I., Hoffmann, T. C., Mulrow, C. D., Shamseer, L., Tetzlaff, J. M., Akl, E. A., Brennan, S. E., Chou, R., Glanville, J., Grimshaw, J. M., Hróbjartsson, A., Lalu, M. M., Li, T., Loder, E. W., Mayo-Wilson, E., McDonald, S., ... Moher, D. (2021). The PRISMA 2020 statement: An updated guideline for reporting systematic reviews. BMJ, 372, n71. https://doi.org/10.1136/bmj.n71
Sarkar, A., Svensson, B. J., & Sheeran, M. (2022). Synchron—An API and runtime for embedded systems. In K. Ali & J. Vitek (Eds.), 36th European Conference on Object-Oriented Programming (ECOOP 2022) (Vol. 222, pp. 17:1–17:29). Schloss Dagstuhl – Leibniz-Zentrum für Informatik. https://doi.org/10.4230/LIPIcs.ECOOP.2022.17
Shivkumar, B., Murphy, J., & Ziarek, L. (2021). Real-time MLton: A Standard ML runtime for real-time functional programs. Journal of Functional Programming, 31, Article e19. https://doi.org/10.1017/S0956796821000174
Suzuki, G., Watanabe, T., & Moriguchi, S. (2023). Implementation and evaluation of an interpreter for functional reactive programming on small embedded devices. In Companion Proceedings of the 7th International Conference on the Art, Science, and Engineering of Programming (pp. 12–16). Association for Computing Machinery. https://doi.org/10.1145/3594671.3594674
Taha, W., Hudak, P., & Wan, Z. (2001). Directions in functional programming for real(-time) applications. In T. A. Henzinger & C. M. Kirsch (Eds.), Embedded software (pp. 185–203). Springer. https://doi.org/10.1007/3-540-45449-7_14
Yokoyama, A., Moriguchi, S., & Watanabe, T. (2021). A functional reactive programming language for small-scale embedded systems with recursive data types. Journal of Information Processing, 29, 685–706. https://doi.org/10.2197/ipsjjip.29.685
Yokoyama, A., Moriguchi, S., & Watanabe, T. (2022). Towards introducing asynchronous tasks to an FRP language for small-scale embedded systems. In Proceedings of the 9th ACM SIGPLAN International Workshop on Reactive and Event-Based Languages and Systems (pp. 1–12). Association for Computing Machinery. https://doi.org/10.1145/3563837.3568338
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Eddie Jr Cenita (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
