CCC: An Aspect-Oriented Intermediate Language on.Net Platform Yingfei Xiong and Feng Wan University of Electronic Science and Technology of China, China.

Slides:



Advertisements
Similar presentations
AspectWerkz 2 - and the road to AspectJ 5 Jonas Bonér Senior Software Engineer BEA Systems.
Advertisements

Towards a Standard Interface for Runtime Inspection in AOP Environments OOPSLA Workshop on Tool for AOSD, Seattle, November 2002 Katharina Mehner and Awais.
Aspect Oriented Programming. AOP Contents 1 Overview 2 Terminology 3 The Problem 4 The Solution 4 Join point models 5 Implementation 6 Terminology Review.
ASTA Aspect Software Testing Assistant Juha Gustafsson, Juha Taina, Jukka Viljamaa University of Helsinki.
1 JAC : Aspect Oriented Programming in Java An article review by Yuval Nir and Limor Lahiani.
Software Engineering Laboratory, Department of Computer Science, Graduate School of Information Science and Technology, Osaka University 1 Modularization.
Presented by Vaibhav Rastogi.  Advent of Web 2.0 and Mashups  Inclusion of untrusted third party content a necessity  Need to restrict the functionality.
Each design pattern is designed to facilitate one kind of change, i.e. changes in one dimension. However, software evolution can happen in multiple dimensions.
University of British Columbia Software Practices Lab Fluid AOP Join Point Models Terry Hon Gregor Kiczales.
University of British Columbia Software Practices Lab 2005 CASCON A Fluid AOP Editor Terry Hon Gregor Kiczales.
An Untyped Calculus of Aspect- Oriented Programs Radha Jagadeesan Alan Jeffrey James Riely DEPAUL UNIVERSITY, CHICAGO.
Aspect-Oriented Programming: An Overview Brandon Wirick Feb
University of British Columbia Software Practices Lab CAS Seminar 06 Fluid AJ - A Simple Fluid AOP Tool Terry Hon Gregor Kiczales.
Names and Scopes CS 351. Program Binding We should be familiar with this notion. A variable is bound to a method or current block e.g in C++: namespace.
ISBN Chapter 1 Preliminaries. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.1-2 Chapter 1 Topics Motivation Programming Domains.
Executable XML Present by 吳昆澤. Outline  Introduction  Simkin  Jelly  o:XML  Conclusion.
Runtime Aspect Weaving Through Metaprogramming Jason Baker and Wilson Hsieh Handi-Wrap.
ISBN Lecture 01 Preliminaries. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.1-2 Lecture 01 Topics Motivation Programming.
A tour of new features introducing LINQ. Agenda of LINQ Presentation We have features for every step of the way LINQ Fundamentals Anonymous Functions/Lambda.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
Introduction to .NET Framework
Introduction to Aspect Oriented Programming Presented By: Kotaiah Choudary. Ravipati M.Tech IInd Year. School of Info. Tech.
Aspect Oriented Programming (AOP) in.NET Brent Krueger 12/20/13.
SALSA: Language and Architecture for Widely Distributed Actor Systems. Carlos Varela, Abe Stephens, Department of.
Spring core v3.x Prepared by: Nhan Le. History v3.0 Spring Expression Language Java based bean metadata v3.1 Cache Abstraction Bean Definition Profile.
Aspect Oriented Programming Razieh Asadi University of Science & Technology Mazandran Babol Aspect Component Based Software Engineering (ACBSE)
Session 2: AspectJ Mark Stobbe September 13,
VERIFICATION OF ASPECT ORIENTED MODELS BY DON MARTIN JAYASHREE VENKIPURAM PATHANGI PIYUSH SRIVASTAVA REFERENCES F. Mostefaoui and J. Vachon,” Design level.
Aspect Oriented Programming Scott Nykl CSSE 411 Senior Seminar.
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
Aspect Oriented Programming Sumathie Sundaresan CS590 :: Summer 2007 June 30, 2007.
March 27, 2007HPC 07 - Norfolk, VA1 C++ Reflection for High Performance Problem Solving Environments Tharaka Devadithya 1, Kenneth Chiu 2, Wei Lu 1 1.
Design Rules for Increasing Modularity with CaesarJ Carlos Eduardo Pontual Advisor: Paulo Borba 17/06/2010.
AOP-1 Aspect Oriented Programming. AOP-2 Aspects of AOP and Related Tools Limitation of OO Separation of Concerns Aspect Oriented programming AspectJ.
Procedure Basics Computer Organization I 1 October 2009 © McQuain, Feng & Ribbens Procedure Support From previous study of high-level languages,
1 An Aspect-Oriented Implementation Method Sérgio Soares CIn – UFPE Orientador: Paulo Borba.
Features of AOP languages AOP languages have the following main elements: –a join point model (JPM) wrt base PL –a specification language for expressing.
Aspect-Oriented Action Semantics Descriptions Luis Menezes University of Pernambuco
SE424 Languages with Context A Block Structured Language.
Inter-Type Declarations in AspectJ Awais Rashid Steffen Zschaler © Awais Rashid, Steffen Zschaler 2009.
Demeter Aspects We study techniques for the emerging area of Aspect-Oriented Software Development and focus on the following areas:  Aspectual Collaborations.
AOP-Driven Variability in Software Product Lines Vander Alves, Ayla Dantas, and Paulo Borba Informatics Center – UFPE – Brazil
Methods of Software Development Karl Lieberherr Spring 2007.
Inheritance 2 Mehdi Einali Advanced Programming in Java 1.
Aspect.NET — aspect-oriented toolkit for Microsoft.NET based on Phoenix and Whidbey Dmitry Grigoriev, PhD student Vladimir O. Safonov, Senior Member, IEEE,
By Mr. Muhammad Pervez Akhtar
Aspect Oriented Programming Adlux Consultancy Services Pvt Ltd
Comparison of Different AOP Approaches Presented by: Xiaojing Wang.
Multiple File Compilation and linking By Bhumik Sapara.
Aspect Security - RaviShekhar Gopalan - Prof. Lieberherr Software Security (CSG379)
Introduction to Yan Cui Aspect Oriented Programming by
CSC450 Software Engineering Devon M. Simmonds University of North Carolina, Wilmington 1.
AOP with AspectJ Awais Rashid, Steffen Zschaler © Awais Rashid, Steffen Zschaler 2009.
1 Aspectual Caml an Aspect-Oriented Functional Language Hideaki Tatsuzawa Hidehiko Masuhara Akinori Yonezawa University of Tokyo.
Presented by : A best website designer company. Chapter 1 Introduction Prof Chung. 1.
 Is a programming paradigm  Extends OOP  Enables modularization of cross cutting concerns.
Features of AOP languages AOP languages have the following main elements: –a join point model (JPM) wrt base PL –a specification language for expressing.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Heath Carroll Bill Hanczaryk Rich Porter.  A Theory of Type Polymorphism in Programming ◦ Robin Milner (1977)  Milner credited with introducing the.
Java Methods and Applications CSIS 3701: Advanced Object Oriented Programming.
Chapter 1 Introduction.
Aspect-Oriented Programming with the Eclipse AspectJ plug-in
Chapter 1 Introduction.
Array Array is a variable which holds multiple values (elements) of similar data types. All the values are having their own index with an array. Index.
Demeter Aspects Who We Are Aspectual Collaborations
Introduction to C# AKEEL AHMED.
Java Programming Language
Structuring Adaptive Applications using AspectJ and AOM
Aspect Oriented Software Design
Presentation transcript:

CCC: An Aspect-Oriented Intermediate Language on.Net Platform Yingfei Xiong and Feng Wan University of Electronic Science and Technology of China, China

Organization  The motivation of the system  The simple Hello-world program  The workflow of the system  The language features  Future work

Motivation  AOP develops slowly on.Net platform.  language-independent tools Aspect-oriented code and non-aspect-oriented code are separated No inter-type declaration  Language-specific tools Too much duplicated work to do in weaver implementation

Motivation  Our solution: Intermediate language provide an aspect-oriented intermediate language to which the aspect-oriented code can be easily transformed. Other high-level languages first transfer to the intermediate language and then weave by the intermediate language weaver Avoid all problems above  CCC: Cross language Cross Cutter

A Hello World Sample

The workflow of the system  The compiler reads the source code, separating them into aspect-oriented part and non-aspect- oriented part.  The non-aspect-oriented part is compiled into MSIL in a temporary assembly.  The aspect-oriented part is compiled into an XML file according to CCC syntax.  The CCC compiler reads the temporary assembly and the xml file, generating the final assembly.

The language features  Primitive pointcuts  Static join point model  Context binding specified by advice.

Primitive Pointcuts  In many aspect-oriented languages, pointcuts are not primitive. Call(int *.print*(String,..)) Easy to write, but not suitable for an intermediate language  Every pointcut defined in CCC is primitive Convient for transforming multiple languages,,,,,

Static Join Point Model  Dynamic Join Point Model some properties of the join point can only be determined at run-time.  pointcut a() : args(String)  selects not only the method whose first formal parameter type is String, but also the method which will be called with String argument at runtime. has significant effect towards system performance.  the system has to type-check the arguments of methods programmers are unlikely to realize this overhead.

Static Join Point Model  Static Join Point Model all properties of the join point can be statically determined at compile-time.   1   System.String   1  No overheads programmers have more control over the system’s behavior. one can easily simulate the dynamic join point model by writing a little code.

Context Binding Specified by Advice  Specifying context binding by pointcuts pointcut a(int arg1) : call(* print(...)) && args(arg1); The binding declaration is separated from the parameter declaration Parameter binding must be explicitly checked  Parameter Unbound: pointcut a(int arg1) : call(* print(…))  binding arguments not provided: pointcut a() : args(arg1) Ambiguous expression could be formed  pointcut a(int arg1) : call(* SomeMethod(..)) || args(arg1);

Context Binding Specified by Advice  CCC specifies context binding by advice <Advice Behaviour="SomeBehaviorMethod" Type="Before"> print System.Int32

Future Work  Binary form of CCC language  Aspect reuse on binary level