Home > Papers

 
 
Dynamic Granule Substitution and Granule Tree in GranuleJS
ZENG Qing-Hua, WU Wen-Bin, ZHAO Yin-Liang *, SUN Li-Yu
Department of Electronic and Information Engineering, University of Xi'an Jiaotong, Xi'an 710049
*Correspondence author
#Submitted by
Subject:
Funding: 国家自然科学基金(No.61640219)
Opened online:25 December 2017
Accepted by: none
Citation: ZENG Qing-Hua, WU Wen-Bin, ZHAO Yin-Liang.Dynamic Granule Substitution and Granule Tree in GranuleJS[OL]. [25 December 2017] http://en.paper.edu.cn/en_releasepaper/content/4742873
 
 
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}\raggedrightModern software systems are usually running at various external environments, and are required to automatically maintain their behaviors to adapt the changed surrounding environments. To deal with the problem, Granule oriented programming was proposed and GranuleJ built top of Java was designed and implemented by language extensions. However, such static language infrastructure implementation often has an expensive cost and a petty high performance overhead in granule substitution, where granules as compositional code units are to be composed at runtime. In this paper, we propose an extension language called GranuleJS based on dynamic language JavaScript by fully leveraging dynamic nature of JavaScript's behaviors. We design granule tree for granule substation in two optimized ways, lazy chain approach and marking approach respectively. Moreover, since the dynamic feature of granule tree can cause the dissatisfaction of the invariance of context variable string path, we designed a fast similar granule search algorithm. The performance evaluation has shown that GranuleJS have fairly low performance overhead.
Keywords:Programming language implementation; Granule-oriented programming;Javascript; JavaScript interpreter; granule, granule tree, similar similar 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 17
Bookmarked 0
Recommend 0
Comments Array
Submit your papers