Abstract
In a reversible language, any forward computation can be undone by a finite sequence of backward steps. Reversible computing has been studied in the context of different programming languages and formalisms, where it has been used for debugging and for enforcing fault-tolerance, among others. In this paper, we consider a subset of Erlang, a concurrent language based on the actor model, and formally introduce a semantics for reversible computation. To the best of our knowledge, this is the first attempt to define a reversible semantics for Erlang.
This work has been partially supported by the EU (FEDER) and the Spanish Ministerio de Economía y Competitividad (MINECO) under grants TIN2013-44742-C4-1-R and TIN2016-76843-C4-1-R, by the Generalitat Valenciana under grant PROMETEO-II/2015/013 (SmartLogic), and by COST Action IC1405 on Reversible Computation - extending horizons of computing.
Partially supported by the EU (FEDER) and the Spanish programs Ayudas para contratos predoctorales para la formación de doctores and Ayudas a la movilidad predoctoral para la realización de estancias breves en centros de I+D, MINECO (SEIDI), under FPI grants BES-2014-069749 and EEBB-I-16-11469.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
E.g., in the semantics of [21], at the expression level, the semantics of an expression containing a receive statement is, in principle, infinitely branching, since their formulation allows for an infinite number of possible queues and selected messages.
- 2.
Note that we use the notation \(\lceil \ldots \rceil \) to explicitly denote that a process is frozen, though it is not really necessary since no transition rule would be applicable anyway.
References
Armstrong, J., Virding, R., Williams, M.: Concurrent Programming in Erlang, 2nd edn. Prentice Hall, Englewood Cliffs (1996)
Bennett, C.: Logical reversibility of computation. IBM J. Res. Dev. 17, 525–532 (1973)
Bennett, C.: Notes on the history of reversible computation. IBM J. Res. Dev. 44(1), 270–278 (2000)
Caballero, R., Martn-Martn, E., Riesco, A., Tamarit, S.: A declarative debugger for concurrent Erlang programs (extended version). Technical report SIC-15/13, UCM (2013). http://maude.sip.ucm.es/~adrian/files/conc_cal_tr.pdf
Cardelli, L., Laneve, C.: Reversible structures. In: Proceedings of CMSB 2011, pp. 131–140. ACM (2011)
Carlsson, R., Gustavsson, B., Johansson, E., et al.: Core Erlang 1.0.3. language specification (2004). https://www.it.uu.se/research/group/hipe/cerl/doc/core_erlang-1.0.3.pdf
Danos, V., Krivine, J.: Reversible communicating systems. In: Gardner, P., Yoshida, N. (eds.) CONCUR 2004. LNCS, vol. 3170, pp. 292–307. Springer, Heidelberg (2004). doi:10.1007/978-3-540-28644-8_19
Danos, V., Krivine, J.: Transactions in RCCS. In: Abadi, M., Alfaro, L. (eds.) CONCUR 2005. LNCS, vol. 3653, pp. 398–412. Springer, Heidelberg (2005). doi:10.1007/11539452_31
Field, J., Varela, C.A.: Transactors: a programming model for maintaining globally consistent distributed state in unreliable environments. In: Proceedings of POPL 2005, pp. 195–208. ACM (2005)
Frank, M.P.: Introduction to reversible computing: motivation, progress, and challenges. In: Proceedings of 2nd Conference on Computing Frontiers, pp. 385–390. ACM (2005)
Giachino, E., Lanese, I., Mezzina, C.A.: Causal-consistent reversible debugging. In: Gnesi, S., Rensink, A. (eds.) FASE 2014. LNCS, vol. 8411, pp. 370–384. Springer, Heidelberg (2014). doi:10.1007/978-3-642-54804-8_26
Giachino, E., Lanese, I., Mezzina, C.A., Tiezzi, F.: Causal-consistent Reversibility in a Tuple Based Language. In: Proceedings of PDP 2015, pp. 467–475. IEEE Computer Society (2015)
Kuang, P., Field, J., Varela, C.A.: Fault tolerant distributed computing using asynchronous local checkpointing. In: Proceedings of AGERE! 2014, pp. 81–93. ACM (2014)
Landauer, R.: Irreversibility and heat generation in the computing process. IBM J. Res. Dev. 5, 183–191 (1961)
Lanese, I., Mezzina, C.A., Schmitt, A., Stefani, J.-B.: Controlling reversibility in higher-order Pi. In: Katoen, J.-P., König, B. (eds.) CONCUR 2011. LNCS, vol. 6901, pp. 297–311. Springer, Heidelberg (2011). doi:10.1007/978-3-642-23217-6_20
Lanese, I., Mezzina, C.A., Stefani, J.: Reversibility in the higher-order \(\pi \)-calculus. Theor. Comput. Sci. 625, 25–84 (2016)
Lienhardt, M., Lanese, I., Mezzina, C.A., Stefani, J.-B.: A reversible abstract machine and its space overhead. In: Giese, H., Rosu, G. (eds.) FMOODS/FORTE -2012. LNCS, vol. 7273, pp. 1–17. Springer, Heidelberg (2012). doi:10.1007/978-3-642-30793-5_1
Matsuda, K., Hu, Z., Nakano, K., Hamana, M., Takeichi, M.: Bidirectionalization transformation based on automatic derivation of view complement functions. In Proceedings of ICFP 2007, pp. 47–58. ACM (2007)
Nishida, N., Palacios, A., Vidal, G.: Reversible term rewriting. In: Proceedings of FSCD 2016. Leibniz International Proceedings in Informatics (2016)
Phillips, I., Ulidowski, I.: Reversing algebraic process calculi. J. Log. Algebr. Program. 73(1–2), 70–96 (2007)
Svensson, H., Fredlund, L.A., Earle, C.B.: A unified semantics for future Erlang. In: Proceedings of the 9th ACM SIGPLAN workshop on Erlang, pp. 23–32. ACM (2010)
Thomsen, M.K., Axelsen, H.B.: Interpretation and programming of the reversible functional language RFUN. In: Proceedings of IFL 2015, p. 8:1–8:13. ACM (2016)
Tiezzi, F., Yoshida, N.: Reversible session-based pi-calculus. J. Log. Algebr. Meth. Program. 84(5), 684–707 (2015)
Yokoyama, T.: Reversible computation and reversible programming languages. Electron. Notes Theor. Comput. Sci. 253(6), 71–81 (2010). Proceedings of the Workshop on Reversible Computation (RC 2009)
Yokoyama, T., Axelsen, H.B., Glück, R.: Principles of a reversible programming language. In: Proceedings of the 5th Conference on Computing Frontiers, pp. 43–54. ACM (2008)
Acknowledgements
We would like to thank Ivan Lanese and the anonymous reviewers for many useful suggestions to improve this paper.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Nishida, N., Palacios, A., Vidal, G. (2017). A Reversible Semantics for Erlang. In: Hermenegildo, M., Lopez-Garcia, P. (eds) Logic-Based Program Synthesis and Transformation. LOPSTR 2016. Lecture Notes in Computer Science(), vol 10184. Springer, Cham. https://doi.org/10.1007/978-3-319-63139-4_15
Download citation
DOI: https://doi.org/10.1007/978-3-319-63139-4_15
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-63138-7
Online ISBN: 978-3-319-63139-4
eBook Packages: Computer ScienceComputer Science (R0)