Designing aspects for side-effect localization

  • Authors:
  • Kung Chen;Jia-Yin Lin;Shu-Chun Weng;Siau-Cheng Khoo

  • Affiliations:
  • National Chengchi University, Taipei, Taiwan Roc;National Chengchi University, Taipei, Taiwan Roc;National Taiwan University, Taipei, Taiwan Roc;National University of Singapore, Singapore, Singapore

  • Venue:
  • Proceedings of the 2009 ACM SIGPLAN workshop on Partial evaluation and program manipulation
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Computation performed in many typical aspects involve side effects. In a purely functional setting, adding such aspects using techniques such as monadification will generally lead to crosscutting changes. This paper presents an approach to provide side-effecting aspects for purely lazy functional languages in a user transparent fashion. We propose a simple yet direct state manipulation construct for developing side-effecting aspects and devise a systematic monadification scheme to translate the woven code to a purely monadic style functional code.