<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://mw.hh.se/wg211/index.php?action=history&amp;feed=atom&amp;title=WG211%2FM7Smaragdakis</id>
	<title>WG211/M7Smaragdakis - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://mw.hh.se/wg211/index.php?action=history&amp;feed=atom&amp;title=WG211%2FM7Smaragdakis"/>
	<link rel="alternate" type="text/html" href="http://mw.hh.se/wg211/index.php?title=WG211/M7Smaragdakis&amp;action=history"/>
	<updated>2026-04-05T20:57:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>http://mw.hh.se/wg211/index.php?title=WG211/M7Smaragdakis&amp;diff=245&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://mw.hh.se/wg211/index.php?title=WG211/M7Smaragdakis&amp;diff=245&amp;oldid=prev"/>
		<updated>2011-12-12T10:06:28Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:WG211]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;Expressive and Safe Static Reflection with MorphJ&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Yannis Smaragdakis&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Recently, language extensions have been proposed for Java and C#&lt;br /&gt;
to support pattern-based reflective declaration. These extensions&lt;br /&gt;
introduce a disciplined form of meta-programming and aspect-oriented&lt;br /&gt;
programming to mainstream languages: They allow members&lt;br /&gt;
of a class (i.e., fields and methods) to be declared by statically&lt;br /&gt;
iterating over and pattern-matching on members of other classes.&lt;br /&gt;
Such techniques, however, have been unable to safely express simple,&lt;br /&gt;
but common, idioms such as declaring getter and setter methods&lt;br /&gt;
for fields.&lt;br /&gt;
&lt;br /&gt;
We present a mechanism that addresses the lack of&lt;br /&gt;
expressiveness in past work without sacrificing safety. Our technique&lt;br /&gt;
is based on the idea of nested patterns that elaborate the&lt;br /&gt;
outer-most pattern with blocking or enabling conditions. We implemented&lt;br /&gt;
this mechanism in a language, MorphJ. We demonstrate&lt;br /&gt;
the expressiveness of MorphJ with real-world applications. In particular,&lt;br /&gt;
the MorphJ reimplementation of DSTM2, a software transactional&lt;br /&gt;
memory library, reduces 1,107 lines of Java reflection and&lt;br /&gt;
bytecode engineering library calls to just 374 lines ofMorphJ code.&lt;br /&gt;
At the same time, the MorphJ solution is both high level and safer,&lt;br /&gt;
as MorphJ can separately type check generic classes and catch errors&lt;br /&gt;
early. We present and formalize the MorphJ type system, and&lt;br /&gt;
offer a type-checking algorithm.&lt;br /&gt;
&lt;br /&gt;
* [[Media:smaragdakis-libspec-wg09.pdf | smaragdakis-libspec-wg09.pdf ]]: Slides on cJ&lt;br /&gt;
&lt;br /&gt;
* [[Media:smaragdakis-morphj-wg09.pdf | smaragdakis-morphj-wg09.pdf ]]: Slides on morphJ&lt;br /&gt;
&lt;br /&gt;
==File Attachments== &lt;br /&gt;
&lt;br /&gt;
*[[Media:smaragdakis-libspec-wg09.pdf | smaragdakis-libspec-wg09.pdf]]&lt;br /&gt;
*[[Media:smaragdakis-morphj-wg09.pdf | smaragdakis-morphj-wg09.pdf]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>