<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Concurrent Affair &#187; Publications</title>
	<atom:link href="http://www.concurrentaffair.org/category/publications/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.concurrentaffair.org</link>
	<description>Blog about Mathias' work and play.</description>
	<lastBuildDate>Tue, 09 Feb 2010 02:40:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Presentation: Mint: A Multi-stage Extension of Java</title>
		<link>http://www.concurrentaffair.org/2010/02/08/presentation-mint-a-multi-stage-extension-of-java/</link>
		<comments>http://www.concurrentaffair.org/2010/02/08/presentation-mint-a-multi-stage-extension-of-java/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 20:27:21 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Mint]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=1546</guid>
		<description><![CDATA[Mint: A Multi-stage Extension of Java
(PowerPoint, PDF, view embedded)

Where: Rice University Computer Science Department, COMP 600 Graduate Seminar
When: February 8, 2010

Multi-stage programming (MSP) provides a safe way of generating code
at run-time. In mostly-functional languages like MetaOCaml, this has
been used to reduce the performance penalties of abstractions such as
loops, recursion or interpretation. The main advantage of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/mint/download/COMP600-Ricken-Mint-2010-02-08.ppt">Mint: A Multi-stage Extension of Java</a><br />
(PowerPoint, <a href="http://www.cs.rice.edu/~mgricken/research/mint/download/COMP600-Ricken-Mint-2010-02-08.pdf">PDF</a>, <a href="http://www.cs.rice.edu/~mgricken/view-pdf.shtml?http://www.cs.rice.edu/~mgricken/research/mint/download/COMP600-Ricken-Mint-2010-02-08.ppt">view embedded</a>)</p>

<p>Where: Rice University Computer Science Department, <a href="http://www.owlnet.rice.edu/~comp600/">COMP 600 Graduate Seminar</a><br />
When: February 8, 2010</p>

<p>Multi-stage programming (MSP) provides a safe way of generating code
at run-time. In mostly-functional languages like MetaOCaml, this has
been used to reduce the performance penalties of abstractions such as
loops, recursion or interpretation. The main advantage of MSP compared
to other techniques, such as string or LISP quotations, is that MSP
guarantees type safety for the generated code statically, at the time
the program is compiled.</p>

<p>Unfortunately, MSP is difficult to combine with imperative features
found in most mainstream languages like Java. The central problem is
&#8220;scope extrusion&#8221;, which may accidentally move variables outside the
scopes in which they are bound, leading to run-time errors in the
generated code. This problem can be prevented if code in escapes (or
&#8220;anti-quotes&#8221;) is &#8220;weakly separable&#8221;, i.e. the computational effects
occurring inside an escape that are visible from the outside do not
involve code.</p>

<p>We have formalized a type system, based on Lightweight Java, that uses
weak separability to prevent scope extrusion, and we have proved that
the type system is sound. We have also developed an implementation
called Mint to demonstrate the expressivity of the type system and the
performance benefits MSP can provide in an imperative setting. Since
our implementation extends the Java language, our work is accessible
to mainstream programmers.</p>

<p>This talk is based on work done in collaboration with Edwin Westbrook,
Jun Inoue, Yilong Yao, Tamer Abdelatif, and Walid Taha. A paper titled
&#8220;Mint: Java Multi-stage Programming Using Weak Separability&#8221; has been
accepted for publication in the Proceedings of the 2010 ACM SIGPLAN
Conference on Programming Language Design and Implementation (<a href="http://www.cs.stanford.edu/pldi10/">PLDI
2010</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2010/02/08/presentation-mint-a-multi-stage-extension-of-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paper: Mint: Java Multi-stage Programming Using Weak Separability</title>
		<link>http://www.concurrentaffair.org/2010/01/31/paper-mint-java-multi-stage-programming-using-weak-separability/</link>
		<comments>http://www.concurrentaffair.org/2010/01/31/paper-mint-java-multi-stage-programming-using-weak-separability/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 01:21:58 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Mint]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=1523</guid>
		<description><![CDATA[Mint: Java Multi-stage Programming Using Weak Separability

2010 ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI 2010)

Multi-stage programming (MSP) provides a disciplined approach
to run-time code generation. In the purely functional setting, it
has been shown how MSP can be used to reduce the overhead
of abstractions, allowing clean, maintainable code without paying
performance penalties. Unfortunately, MSP is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/mint/download/pldi2010-mint.pdf">Mint: Java Multi-stage Programming Using Weak Separability</a></p>

<p>2010 ACM SIGPLAN Conference on Programming Language Design and Implementation (<a href="http://www.cs.stanford.edu/pldi10/pldi2010_home.html">PLDI 2010</a>)</p>

<p>Multi-stage programming (MSP) provides a disciplined approach
to run-time code generation. In the purely functional setting, it
has been shown how MSP can be used to reduce the overhead
of abstractions, allowing clean, maintainable code without paying
performance penalties. Unfortunately, MSP is difﬁcult to combine
with imperative features, which are prevalent in mainstream
languages. The central difﬁculty is scope extrusion, wherein free
variables can inadvertently be moved outside the scopes of their
binders. This paper proposes a new approach to combining MSP
with imperative features that occupies a &#8220;sweet spot&#8221; in the design
space in terms of how well useful MSP applications can be expressed and how easy it is for programmers to understand. The key
insight is that escapes (or &#8220;anti-quotes&#8221;) must be <em>weakly separable</em>
from the rest of the code, i.e. the computational effects occurring
inside an escape that are visible outside the escape are guaranteed
to not contain code. To demonstrate the feasibility of this approach,
we formalize a type system based on Lightweight Java which we
prove sound, and we also provide an implementation, called Mint,
to validate both the expressivity of the system and the performance
gains attainable by using MSP in this setting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2010/01/31/paper-mint-java-multi-stage-programming-using-weak-separability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paper: Test-First Java Concurrency for the Classroom</title>
		<link>http://www.concurrentaffair.org/2009/10/24/paper-test-first-java-concurrency-for-the-classroom/</link>
		<comments>http://www.concurrentaffair.org/2009/10/24/paper-test-first-java-concurrency-for-the-classroom/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 20:47:27 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=1273</guid>
		<description><![CDATA[Test-First Java Concurrency for the Classroom

41st Technical Symposium on Computer Science Education (SIGCSE 2010)

Concurrent programming is becoming more important due to the growing dominance of multi-core processors and the prevalence of graphical user interfaces (GUIs). To prepare students for the concurrent future, instructors have begun to address concurrency earlier in their curricula. Unfortunately, test-driven development, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/concutest/download/SIGCSE2010-Ricken-Test-First-Java-Concurrency-for-the-Classroom.pdf">Test-First Java Concurrency for the Classroom</a></p>

<p>41st Technical Symposium on Computer Science Education (<a href="http://sigcse.org/sigcse2010">SIGCSE 2010</a>)</p>

<p>Concurrent programming is becoming more important due to the growing dominance of multi-core processors and the prevalence of graphical user interfaces (GUIs). To prepare students for the concurrent future, instructors have begun to address concurrency earlier in their curricula. Unfortunately, test-driven development, which enables students and practitioners to quickly develop reliable single-threaded programs, is not as effective in the domain of concurrent programming. This paper describes how ConcJUnit can simplify the task of writing unit tests for multi-threaded programs, and provides examples that can be used to introduce students to concurrent programming.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2009/10/24/paper-test-first-java-concurrency-for-the-classroom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation: ConcJUnit: Unit Testing for Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2009/08/29/presentation-concjunit-unit-testing-for-concurrent-programs-2/</link>
		<comments>http://www.concurrentaffair.org/2009/08/29/presentation-concjunit-unit-testing-for-concurrent-programs-2/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 06:06:07 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=994</guid>
		<description><![CDATA[ConcJUnit: Unit Testing for Concurrent Programs...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/concutest/download/PPPJ2009-Ricken-ConcJUnit-2009-08-28.ppt">ConcJUnit: Unit Testing for Concurrent Programs</a></p>

<p>Where: The 7th International Conference on the Principles and Practice of Programming in Java (<a href="http://pppj09.cpsc.ucalgary.ca/">PPPJ 2009</a>)<br />
When: August  28, 2009</p>

<p>In test-driven development, tests are written for each program unit before the code is written, ensuring that the code has a comprehensive unit testing harness. Unfortunately, unit testing is much less effective for concurrent programs than for conventional sequential programs, partly because extant unit testing frameworks provide little help in addressing the challenges of testing concurrent code. In this paper, we present ConcJUnit, an extension of the popular unit testing framework JUnit that simplifies the task of writing tests for concurrent programs by handling uncaught exceptions and failed assertions in all threads, and by detecting child threads that were not forced to terminate before the main thread ends.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2009/08/29/presentation-concjunit-unit-testing-for-concurrent-programs-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation: ConcJUnit: Unit Testing for Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2009/08/24/presentation-concjunit-unit-testing-for-concurrent-programs/</link>
		<comments>http://www.concurrentaffair.org/2009/08/24/presentation-concjunit-unit-testing-for-concurrent-programs/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 18:41:38 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=989</guid>
		<description><![CDATA[ConcJUnit: Unit Testing for Concurrent Programs...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/concutest/download/COMP600-Ricken-2009-08-24.ppt">ConcJUnit: Unit Testing for Concurrent Programs</a></p>

<p>Where: Rice University Computer Science Department, COMP 600 Graduate Seminar<br />
When: August  24, 2009</p>

<p>In test-driven development, tests are written for each program unit before the code is written, ensuring that the code has a comprehensive unit testing harness. Unfortunately, unit testing is much less effective for concurrent programs than for conventional sequential programs, partly because extant unit testing frameworks provide little help in addressing the challenges of testing concurrent code. In this paper, we present ConcJUnit, an extension of the popular unit testing framework JUnit that simplifies the task of writing tests for concurrent programs by handling uncaught exceptions and failed assertions in all threads, and by detecting child threads that were not forced to terminate before the main thread ends.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2009/08/24/presentation-concjunit-unit-testing-for-concurrent-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tech Report: Multi-stage Programming for Mainstream Languages (TR09-02)</title>
		<link>http://www.concurrentaffair.org/2009/07/14/tr09-02/</link>
		<comments>http://www.concurrentaffair.org/2009/07/14/tr09-02/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 20:39:51 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Mint]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=923</guid>
		<description><![CDATA[Multi-stage Programming for Mainstream Language...]]></description>
			<content:encoded><![CDATA[<p><a href="http://compsci.rice.edu/TR/TR_Download.cfm?SDID=267">Multi-stage Programming for Mainstream Languages (TR09-02)</a>
(<a href="http://www.cs.rice.edu/~mgricken/research/mint/download/techreport.pdf">local mirror</a>)</p>

<p>Technical Report TR09-02, Department of Computer Science, Rice University</p>

<p>Multi-stage programming (MSP) provides a disciplined approach to run-time code generation. In the purely functional setting, it has been shown how MSP can be used to reduce the overhead of abstractions, allowing clean, maintainable code without paying performance penalties. Unfortunately, MSP is difficult to combine with imperative features, which are prevalent in mainstream languages. The central difficulty is scope extrusion, wherein free variables can inadvertently be moved outside the scopes of their binders. This paper proposes a new approach to combining MSP with imperative features that occupies a &#8220;sweet spot&#8221; in the design space in terms of how well useful MSP applications can be expressed and how easy it is for programmers to understand. The key insight is that escapes (or &#8220;anti-quotes&#8221;) must be weakly separable  from the rest of the code, i.e. the computational effects occurring inside an escape that are visible outside the escape are guaranteed to not contain code. To demonstrate the feasibility of this approach, we formalize a type system based on Lightweight Java which we prove sound, and we also provide an implementation, called Mint, to validate both the expressivity of the system and the performance gains attainable by using MSP in this setting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2009/07/14/tr09-02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paper: ConcJUnit: Unit Testing for Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2009/06/05/paper-concjunit-unit-testing-for-concurrent-programs/</link>
		<comments>http://www.concurrentaffair.org/2009/06/05/paper-concjunit-unit-testing-for-concurrent-programs/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 20:33:08 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=918</guid>
		<description><![CDATA[ConcJUnit: Unit Testing for Concurrent Programs...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/concutest/download/PPPJ2009-Ricken-ConcJUnit.pdf">ConcJUnit: Unit Testing for Concurrent Programs</a></p>

<p>7th International Conference on the Principles and Practice of Programming in Java (<a href="http://pppj09.cpsc.ucalgary.ca/program.php">PPPJ 2009</a>)</p>

<p>In test-driven development, tests are written for each program unit 
before the code is written, ensuring that the code has a 
comprehensive unit testing harness. Unfortunately, unit testing is 
much less effective for concurrent programs than for conventional 
sequential programs, partly because extant unit testing 
frameworks provide little help in addressing the challenges of 
testing concurrent code. In this paper, we present ConcJUnit, an 
extension of the popular unit testing framework JUnit that 
simplifies the task of writing tests for concurrent programs by 
handling uncaught exceptions and failed assertions in all threads, 
and by detecting child threads that were not forced to terminate 
before the main thread ends.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2009/06/05/paper-concjunit-unit-testing-for-concurrent-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book: A Framework for Concurrent Unit Testing: Concutest</title>
		<link>http://www.concurrentaffair.org/2009/05/24/book-a-framework-for-concurrent-unit-testing-concutest/</link>
		<comments>http://www.concurrentaffair.org/2009/05/24/book-a-framework-for-concurrent-unit-testing-concutest/#comments</comments>
		<pubDate>Sun, 24 May 2009 22:43:13 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=935</guid>
		<description><![CDATA[A Framework for Testing Concurrent Programs: Co...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/Framework-Testing-Concurrent-Programs-Concutest/dp/3639150740/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1248734404&#038;sr=8-1">A Framework for Testing Concurrent Programs: Concutest (Paperback)</a></p>

<p>Republished MS thesis. VDM Verlag</p>

<p>Incremental, test-driven development is sweeping the software industry, elevating testing from an ancillary activity to an integral part of the programming process. Unfortunately, in our recent experience developing production programs in Java, unit testing has only proven effective in assuring the reliability of code with a single thread of control; it is much less effective in concurrent programs. To facilitate the development of concurrent programs, we have developed: 1. An extension of the JUnit framework that actively supports the developer by treating tests that could silently ignore failures in auxiliary threads as test errors; 2. A lightweight Java annotation language that can be used to specify and check the threading invariants of both existing and new code; 3. A testing framework that can record and analyze the schedules of unit tests, detect deadlocks, and run the tests using modified schedules, increasing the likelihood that concurrency problems are discovered.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2009/05/24/book-a-framework-for-concurrent-unit-testing-concutest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation: Java Annotations for Types and Expressions</title>
		<link>http://www.concurrentaffair.org/2008/10/24/presentation-java-annotations-for-types-and-expressions/</link>
		<comments>http://www.concurrentaffair.org/2008/10/24/presentation-java-annotations-for-types-and-expressions/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 16:00:54 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=692</guid>
		<description><![CDATA[Java Annotations for Types and Expressions]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/xajavac/download/Java%20Annotations%20for%20Types%20and%20Expressions.ppt">Java Annotations for Types and Expressions</a></p>

<p>Where: Rice University Computer Science Department, RAP Seminar<br />
When: October 24, 2008</p>

<p>As defined in Java 1.5, Java annotations can only be attached to very few targets: Classes, methods, method parameters, fields, and other annotations. The Java community intends to extend the list of targets and has issued Java Specification Request (JSR) 308, &#8220;Annotations on Types&#8221;. The current proposal for JSR 308 is considering allowing annotations on statements, but not on expressions.</p>

<p>In this talk, I discuss how the changes proposed by JSR 308 and its Checker Framework allow programmers to enhance Java&#8217;s type system and provide additional static guarantees. Additionally, I demonstrate that the same mechanism proposed for annotations on statements can be used to describe multi-stage programs in Java.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2008/10/24/presentation-java-annotations-for-types-and-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poster: Invariant Specification and Multi-Staging using Java Annotations</title>
		<link>http://www.concurrentaffair.org/2008/10/16/poster-invariant-specification-and-multi-staging-using-java-annotations/</link>
		<comments>http://www.concurrentaffair.org/2008/10/16/poster-invariant-specification-and-multi-staging-using-java-annotations/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 18:00:20 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=747</guid>
		<description><![CDATA[Invariant Specification and Multi-Staging using Java Annotations]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/xajavac/download/annotation-poster-2008.pdf">Invariant Specification and Multi-Staging using Java Annotations</a></p>

<p>Where: <a href="http://compsci.rice.edu/news.cfm?doc_id=12717">Rice University Computer Science Department, Corporate Affiliates Meeting 2008</a><br />
When: October 16, 2008</p>

<p>Java annotations allow programmers to attach metadata to programs. During normal execution, the annotations are ignored, but in contrast to comments in the source code, annotations can be manipulated programmatically at compile- or run-time. We propose two extensions &#8212; subtyping and expression annotations &#8212; for consideration in the Java specification request for annotations, and show how annotations can be used to express program invariants and multi-stage programs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2008/10/16/poster-invariant-specification-and-multi-staging-using-java-annotations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation: Java Annotations for Invariant Specification</title>
		<link>http://www.concurrentaffair.org/2008/09/22/presentation-java-annotations-for-invariant-specification/</link>
		<comments>http://www.concurrentaffair.org/2008/09/22/presentation-java-annotations-for-invariant-specification/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 16:00:13 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=689</guid>
		<description><![CDATA[Java Annotations for Invariant Specification]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/xajavac/download/Java%20Annotations%20for%20Invariant%20Specification.ppt">Java Annotations for Invariant Specification</a></p>

<p>Where: Rice University Computer Science Department, RAP Seminar<br />
When: September 22, 2008</p>

<p>Java annotations allow programmers to attach metadata to programs. During normal execution, the annotations are ignored, but in contrast to comments in the source code, annotations can be manipulated programmatically at compile- or run-time.</p>

<p>In this talk, I provide a brief introduction to Java annotations and show how limited their use currently is. I then describe a framework for specifying program invariants using Java annotations, and how extending Java to support subtyping for annotations allows programmers to write the invariants in a succinct manner.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2008/09/22/presentation-java-annotations-for-invariant-specification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thesis: A Framework for Testing Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2007/10/30/thesis-a-framework-for-testing-concurrent-programs/</link>
		<comments>http://www.concurrentaffair.org/2007/10/30/thesis-a-framework-for-testing-concurrent-programs/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 18:00:04 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=738</guid>
		<description><![CDATA[A Framework for Testing Concurrent Programs]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.concutest.org/download/MSThesis-Ricken.pdf">A Framework for Testing Concurrent Programs</a></p>

<p><center>Rice University</p>

<p>A Framework for Testing Concurrent Programs<br />
by<br />
Mathias Guenter Ricken</p>

<p>A thesis submitted<br />
in partial fulfillment of the<br />
requirements for the degree</p>

<p>Master of Science</center></p>

<p>Incremental, test-driven development is sweeping the software industry, elevating testing from an ancillary activity to an integral part of the programming process. Unfortunately, in our recent experience developing production programs in Java, unit testing has only proven effective in assuring the reliability of code with a single thread of control; it is much less effective in concurrent programs.</p>

<p>To facilitate the development of concurrent programs, we are developing:</p>

<ol>
    <li>An extension of the JUnit framework that actively supports the developer by treating tests that could silently ignore failures in auxiliary threads as test errors;</li>
    <li>A lightweight Java annotation language that can be used to specify and check the threading invariants of both existing and new code;</li>
    <li>A testing framework that can record and analyze the schedules of unit tests, detect deadlocks, and run the tests using modified schedules, increasing the likelihood that concurrency problems are discovered.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2007/10/30/thesis-a-framework-for-testing-concurrent-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation: Testing Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2007/10/04/presentation-testing-concurrent-programs/</link>
		<comments>http://www.concurrentaffair.org/2007/10/04/presentation-testing-concurrent-programs/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 17:00:00 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=700</guid>
		<description><![CDATA[Testing Concurrent Programs]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.concutest.org/download/RCSC-20071004/RCSC-20071004-Ricken.ppt">Testing Concurrent Programs</a></p>

<p>Where: Rice University Computer Science Department, Rice Computer Science Club<br />
When: October 4, 2007</p>

<p>A talk directed mostly at undergraduate students.</p>

<p><a href="http://www.concutest.org/download/RCSC-20071004/listings">Programming examples</a> from the presentation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2007/10/04/presentation-testing-concurrent-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation: A Framework for Testing Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2007/08/27/presentation-a-framework-for-testing-concurrent-programs/</link>
		<comments>http://www.concurrentaffair.org/2007/08/27/presentation-a-framework-for-testing-concurrent-programs/#comments</comments>
		<pubDate>Mon, 27 Aug 2007 17:00:53 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=702</guid>
		<description><![CDATA[A Framework for Testing Concurrent Programs]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.concutest.org/download/COMP600-Ricken.ppt">A Framework for Testing Concurrent Programs</a></p>

<p>Where: Rice University Computer Science Department, PhD Student Lunch Seminar<br />
When: August 27, 2007</p>

<p>Incremental, test-driven development is sweeping the software industry, elevating testing from an ancillary activity to an integral part of the programming process. Unfortunately, in our recent experience developing production programs in Java, unit testing has only proven effective in assuring the reliability of code with a single thread of control; it is much less effective in concurrent programs. To facilitate the development of concurrent programs, we are developing:</p>

<ol>
    <li>An extension of the JUnit framework that actively supports the developer by treating tests that could silently ignore failures in auxiliary threads as test errors;</li>
    <li>A lightweight Java annotation language that can be used to specify and check the threading invariants of both existing and new code;</li>
    <li>A testing framework that can record and analyze the schedules of unit tests, detect deadlocks, and run the tests using modified schedules, increasing the likelihood that concurrency problems are discovered.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2007/08/27/presentation-a-framework-for-testing-concurrent-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defense: A Framework for Testing Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2007/06/14/defense-a-framework-for-testing-concurrent-programs/</link>
		<comments>http://www.concurrentaffair.org/2007/06/14/defense-a-framework-for-testing-concurrent-programs/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 18:00:05 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=722</guid>
		<description><![CDATA[A Framework for Testing Concurrent Programs]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.concutest.org/download/MSThesis-Ricken.ppt">A Framework for Testing Concurrent Programs</a></p>

<p><center>Rice University<br />
The Department of Computer Sciece<br />
<br />
presents<br />
<br />
Mathias Guenter Ricken<br />
Master of Science Thesis Defense<br />
<br />
A Framework for Testing Concurrent Programs<br /></center></p>

<p>When: July 14, 2007</p>

<p>ABSTRACT</p>

<p>Incremental, test-driven development is sweeping the software industry, elevating testing from an ancillary activity to an integral part of the programming process. Unfortunately, in our recent experience developing production programs in Java, unit testing has only proven effective in assuring the reliability of code with a single thread of control; it is much less effective in concurrent programs.</p>

<p>To facilitate the development of concurrent programs, we are developing:</p>

<ol>
    <li>An extension of the JUnit framework that actively supports the developer by treating tests that could silently ignore failures in auxiliary threads as test errors.</li>
    <li>A lightweight Java annotation language that can be used to specify and check the threading invariants of both existing and new code.</li>
    <li>A testing framework that can record and analyze the schedules of unit tests, detect deadlocks, and run the tests using modified schedules, increasing the likelihood that concurrency problems are discovered.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2007/06/14/defense-a-framework-for-testing-concurrent-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poster: Practical Tools for Testing Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2006/10/06/poster-practical-tools-for-testing-concurrent-programs/</link>
		<comments>http://www.concurrentaffair.org/2006/10/06/poster-practical-tools-for-testing-concurrent-programs/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 19:30:52 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=753</guid>
		<description><![CDATA[Practical Tools for Testing Concurrent Programs]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.concutest.org/download/concutest-poster-2006.pdf">Practical Tools for Testing Concurrent Programs</a></p>

<p>Where: <a href="http://cohesion.rice.edu/engineering/computerscience/research.cfm?doc_id=9581">Rice University Computer Science Department, Corporate Affiliates Meeting 2006</a><br />
When: October 5, 2006</p>

<p>In our experience with developing production programs in Java,
unit testing has proven effective in assuring the reliability of code with a single thread of control. Unfortunately, unit testing has proved much less effective in assuring the reliability of code with multiple threads of control, often simply because the JUnit testing framework silently ignores failures in auxiliary threads. Java libraries and user programs frequently make assumptions about the threading context in which they execute, but these assumptions are rarely enforced by the actual code and typically only appear in program documentation.  Since thread scheduling is non-deterministic, a unit test can succeed on one run and fail on the next, or repeatedly succeed on one platform and occasionally fail on another.</p>

<p>To improve test-driven development for concurrent programs, we are developing</p>

<ol>
    <li>an extension of the JUnit framework, actively supporting the developer by treating tests that could silently ignore failures in auxiliary threads as test errors;</li>
    <li>a lightweight annotation language, which can be used to specify and check the threading properties of both existing and new code; and</li>
    <li>a testing framework that can execute unit tests according to a specified set of recorded or generated schedules, elevating the unit testing of concurrent programs to a rigorous, deterministic process.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2006/10/06/poster-practical-tools-for-testing-concurrent-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paper: Programming for Change</title>
		<link>http://www.concurrentaffair.org/2006/06/30/paper-programming-for-change/</link>
		<comments>http://www.concurrentaffair.org/2006/06/30/paper-programming-for-change/#comments</comments>
		<pubDate>Sat, 01 Jul 2006 04:59:11 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[OOP Book]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=743</guid>
		<description><![CDATA[Programming for Change - Nifty Assignment]]></description>
			<content:encoded><![CDATA[<p><a href="http://cnx.org/content/m16219/latest/">Programming for Change &#8211; Nifty Assignment</a></p>

<p>OOPSLA 2006 Educators Symposium</p>

<p>The development of any piece of software begins with a set of specifications describing in some detail the problems to be solved. Almost invariably, the specifications change during the development of the software. Trying to anticipate all possible changes and write a program that does everything is a futile undertaking. However, it is not unreasonable to expect that programs be written in such a way that an &#8220;epsilon&#8221; (read &#8220;small&#8221;) change in the specifications will only necessitate a &#8220;delta&#8221; (read &#8220;manageable&#8221;) change in code.</p>

<p>Programming for change is a continual process in which software is designed over many iterations to capture the problem&#8217;s essence and express. At the heart of this process is the effort to identify those elements that can vary (variants) and delineate them from those that do not &#8211; the invariants. A properly designed software system should strive to decouple the variants from the invariants in order to facilitate the re-use of the invariants and allow modifications to the variants with minimal perturbation to the existing code.</p>

<p>To illustrate the importance of programming for change to students, we guide them through the development of a program that converts temperature measurements. The assignment consists of a series of small exercises, each of which imposes a small change in the requirements and forces appropriate modifications of the code. To promote code re-use, we apply the Janus Principle and require that the programs must be written in a way that supports multiple distinct user interfaces. For certain specification changes, we ask students to identify the variants and the invariants and make appropriate modifications to the code. In several situations, we require the students to modify their code in more than one way and discuss the pros and cons.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2006/06/30/paper-programming-for-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Workshop: Object-Oriented Design Festival</title>
		<link>http://www.concurrentaffair.org/2006/03/01/workshop-object-oriented-design-festival/</link>
		<comments>http://www.concurrentaffair.org/2006/03/01/workshop-object-oriented-design-festival/#comments</comments>
		<pubDate>Thu, 02 Mar 2006 00:00:23 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[OOP Book]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=741</guid>
		<description><![CDATA[Object-Oriented Design Festival]]></description>
			<content:encoded><![CDATA[<p>Object-Oriented Design Festival</p>

<p>SIGCSE 2006</p>

<p>Object-oriented (OO) programming begins with analysis and design that produce a model describing the objects in the problem domain,
their relationships, creation and interactions. The workshop covers fundamentals of OO analysis and design such as abstraction, separation of variants from invariants and decoupling of system components, via appropriate applications of composition, inheritance, polymorphism, and design patterns. The workshop will progress from a small design example illustrating the principles to a larger design problem to be solved by small teams of participants. Their solutions will be discussed in terms of design goals and compared against a solution provided by the presenters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2006/03/01/workshop-object-oriented-design-festival/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poster: Unit Testing for Concurrent Programs</title>
		<link>http://www.concurrentaffair.org/2005/09/20/poster-unit-testing-for-concurrent-programs/</link>
		<comments>http://www.concurrentaffair.org/2005/09/20/poster-unit-testing-for-concurrent-programs/#comments</comments>
		<pubDate>Tue, 20 Sep 2005 20:30:14 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[Concurrent Unit Testing]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=756</guid>
		<description><![CDATA[Unit Testing for Concurrent Programs]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.concutest.org/download/concutest-poster-2005.pdf">Unit Testing for Concurrent Programs</a></p>

<p>Where: <a href="http://compsci.rice.edu/news.cfm?doc_id=8006">Rice University Computer Science Department, Corporate Affiliates Meeting 2005</a><br />
When: September 20, 2005 and December 5, 2005</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2005/09/20/poster-unit-testing-for-concurrent-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation: Design Patterns for Parsing</title>
		<link>http://www.concurrentaffair.org/2005/02/27/presentation-design-patterns-for-parsing/</link>
		<comments>http://www.concurrentaffair.org/2005/02/27/presentation-design-patterns-for-parsing/#comments</comments>
		<pubDate>Sun, 27 Feb 2005 16:00:47 +0000</pubDate>
		<dc:creator>Mathias</dc:creator>
				<category><![CDATA[OOP Book]]></category>
		<category><![CDATA[Publications]]></category>

		<guid isPermaLink="false">http://www.concurrentaffair.org/?p=704</guid>
		<description><![CDATA[Design Patterns for Parsing]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cs.rice.edu/~mgricken/research/dp4rdp/dp4rdp.ppt">Design Patterns for Parsing</a></p>

<p>Where: SIGCSE 2005<br />
When: February 27, 2005</p>

<p>We provide a systematic transformation of an LL(1) grammar to an object model that consists of</p>

<ul>
    <li>an object structure representing the non-terminal symbols and their corresponding grammar production rules,</li>
    <li>a union of classes representing the terminal symbols (tokens).</li>
</ul>

<p>We present a variant form of the visitor pattern and apply it to the above union of token classes to model a predictive recursive descent parser on the given grammar. Parsing a non-terminal is represented by a visitor to the tokens. For non-terminals that have more than one production rule, the corresponding visitors are chained together according to the chain of responsibility pattern in order to be processed correctly by a valid token. The abstract factory pattern, where each concrete factory corresponds to a non-terminal symbol, is used to manufacture appropriate parsing visitors.</p>

<p>Our object-oriented formulation for predictive recursive descent parsing eliminates the traditional construction of the predictive parsing table and yields a parser that is declarative and has minimal conditionals. It not only serves to teach standard techniques in parsing but also as a non-trivial exercise of object modeling for objects-first introductory courses.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.concurrentaffair.org/2005/02/27/presentation-design-patterns-for-parsing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
