tetris

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tetris [2009/10/19 17:58]
aspectscript
tetris [2009/10/26 17:35] (current)
aspectscript
Line 3: Line 3:
 This is a demonstration of how the overhead introduced by AspectScript in an interactive application is negligible. Please try the game and let us know if you feel any noticeable difference! This is a demonstration of how the overhead introduced by AspectScript in an interactive application is negligible. Please try the game and let us know if you feel any noticeable difference!
  
-At the left it is the [[http://www.gosu.pl/tetris/|original tetris]] game, unmodified. +On the left it is the [[http://www.gosu.pl/tetris/|original tetris]] game, unmodified. 
-At the right it is the instrumented version, with one global aspect deployed this way:+On the right it is the instrumented version, with one global aspect deployed this way (the pointcut matches all the join points it sees and the advice just proceeds):
  
 <code java> <code java>
 var pointcut = function(){ return true; }; var pointcut = function(){ return true; };
-var advice   = function(jp) { return jp.proceed();};+var advice   = function(jp) { return jp.proceed(); };
 AspectScript.around(pointcut, advice); AspectScript.around(pointcut, advice);
 </code> </code>
  • tetris.1255975125.txt.gz
  • Last modified: 2009/10/19 17:58
  • by aspectscript