Home > Papers

 
 
GranuleJ: A Context Check-based Programming Language for Flexible Runtime Adaptation
ZENG Qing-Hua, ZHAO Yin-Liang *, SUN Li-Yu, WU Wen-Bin
Department of Electronic and Information Engineering, University of Xi'an Jiaotong, Xi'an 710049
*Correspondence author
#Submitted by
Subject:
Funding: Chinese National Natural Science Foundation(No.61640219)
Opened online:25 December 2017
Accepted by: none
Citation: ZENG Qing-Hua, ZHAO Yin-Liang, SUN Li-Yu.GranuleJ: A Context Check-based Programming Language for Flexible Runtime Adaptation[OL]. [25 December 2017] http://en.paper.edu.cn/en_releasepaper/content/4742867
 
 
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}\raggedrightModern applications tend to increasingly suffer from unpredicted context changes that may occur at any moment during the program execution, so it is urgently needed to adapt their behaviors to such frequently changing contexts dynamically. From the perspective of language-level, language extension is an efficient and prompt approach to conduct those adaptable applications. However, the existing context-based languages can only provide anticipated adaptation which is usually predefined at the initial design time, and they also lack appropriate programming language abstractions of dynamic flavor to support context uncertainty at runtime. In this paper, we present a novel programming language called \emph{GranuleJ}, which enables implicit context checks to be aware of the adaptation of the program and carry out program evolution when the program is no longer satisfied with the current context. GranuleJ introduces \emph{context variable} to identify context changes clearly, \emph{fitness tests} to detect the adaptation points where unsuitable program behaviors happen relying on context variables and \emph{granules} that modularize behavior variations as reuse building blocks to be freely assembled or disassembled at runtime. We have already implemented the language framework of GranuleJ and validated the feasibility and effectiveness of it through performance evaluation.
Keywords:programming language; granule oriented programming; fitness test; dynamic adaptation; context variable; similar granule substitution
 
 
 

For this paper

  • PDF (0B)
  • ● Revision 0   
  • ● Print this paper
  • ● Recommend this paper to a friend
  • ● Add to my favorite list

    Saved Papers

    Please enter a name for this paper to be shown in your personalized Saved Papers list

Tags

Add yours

Related Papers

Statistics

PDF Downloaded 32
Bookmarked 0
Recommend 0
Comments Array
Submit your papers