<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<feed xmlns="http://www.w3.org/2005/Atom">

	<title>Planet Compsoc</title>
	<link rel="self" href="http://planet.warwickcompsoc.co.uk/atom.xml"/>
	<link href="http://planet.warwickcompsoc.co.uk/"/>
	<id>http://planet.warwickcompsoc.co.uk/atom.xml</id>
	<updated>2010-03-14T17:38:24+00:00</updated>
	<generator uri="http://www.planetplanet.org/">Planet/2.0 +http://www.planetplanet.org</generator>

	<entry xml:lang="en">
		<title type="html">But Java /can/ do that!</title>
		<link href="http://blog.prelode.com/2010/03/but-java-can-do-that/"/>
		<id>http://blog.prelode.com/?p=87</id>
		<updated>2010-03-14T09:05:25+00:00</updated>
		<content type="html">&lt;p&gt;I recently attended a talk at FOSDEM by &lt;a href=&quot;http://tirania.org/blog/&quot;&gt;Miguel de Icaza&lt;/a&gt;, a fellow enemy of &amp;#8220;Free&amp;#8221; software.&lt;/p&gt;
&lt;p&gt;He, like most .NET users, is desperately seeking features to differentiate his second-rate platform from the wonderfulnessness of Java.&lt;/p&gt;
&lt;p&gt;He showed .NET expressions, a wonderful feature whereby the actual nature of a predicate can be retrieved at runtime and optimal, say, SQL can be built to match it.  &lt;/p&gt;
&lt;p&gt;He, however, claimed that Java lacks this feature.  This is not the case.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://git.goeswhere.com/?p=catchlogger.git;a=blob;f=test-src/com/goeswhere/dmnp/expr/ExpressionTest.java;h=9862726e191742d46ded6a229cb03c8f5a50d49b;hb=bb92ceb6a3cb88af89a7d293b9528a75b19f5321&quot;&gt;ExpressionTest&lt;/a&gt; shows various uses of this in Java; basically:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Expression.toSQL(new Predicate() { @Override public boolean matches(FooDTO t) { t.a == 7; } });&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;will return:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;(a = 7)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Obviously this remains slightly more verbose while the Java lambda proposals are finalised, but the feature is hardly missing!&lt;/p&gt;
&lt;p&gt;Similarily,&lt;br /&gt;
&lt;code&gt;return (t.a == 7 || t.a == 8 || t.a == 9) &amp;#038;&amp;#038; &quot;pony&quot;.equals(t.b);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;becomes:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;(a = 7 AND b = 'pony') OR&lt;br /&gt;
(a = 8 AND b = 'pony') OR&lt;br /&gt;
(a = 9 AND b = 'pony')&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And, etc.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://git.goeswhere.com/?p=catchlogger.git;a=commit;h=bb92ceb6a3cb88af89a7d293b9528a75b19f5321&quot;&gt;The implementation&lt;/a&gt;, if the devil compels you to look.&lt;/p&gt;</content>
		<author>
			<name>Faux</name>
			<uri>http://blog.prelode.com</uri>
		</author>
		<source>
			<title type="html">Faux's Blog</title>
			<subtitle type="html">On Prelode's development.. once it begins, anyway..</subtitle>
			<link rel="self" href="http://blog.prelode.com/feed/"/>
			<id>http://blog.prelode.com/feed/</id>
			<updated>2010-03-14T17:38:13+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Films</title>
		<link href="http://mulletron.uwcs.co.uk/blog/?p=10"/>
		<id>http://mulletron.uwcs.co.uk/blog/?p=10</id>
		<updated>2010-03-07T05:33:06+00:00</updated>
		<content type="html">&lt;p&gt;I should really document films that I watch more often.  I always forget what I&amp;#8217;ve seen recently, and my thoughts on them.  I&amp;#8217;ve watched three films this last week.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Wild Blue Yonder&lt;/strong&gt; by Werner Herzog&lt;/p&gt;
&lt;p&gt;tldr: Inventive and Well Made&lt;/p&gt;
&lt;p&gt;An alternative Scifi film which recontextualizes documentary footage through music, editing and voice overs.  I&amp;#8217;ve seen several Herzog films before, and I&amp;#8217;ve been highly impressed every time.  The technique used is incredibly clever, manipulating your viewing potential.  Its a purely cinematic approach, and an interesting way of telling a story.  The long drawn out takes, and shots of seemingly little come together to form a cohesive whole.  The narrative itself describes the journey of a group of humans to an alien&amp;#8217;s human planet to find a cure for a disease that an alien has accidentally brought to earth.  Sounds pretty standard fare, but the weird twist to the narrative is that its told from the point of view of the Alien.  He feels left out and ignored by the decisions makers in Earth, and constantly observes how they&amp;#8217;ve made foolish choices and he could have easily explained why they were foolish.  Bleak ending, well shot, and the only actor (Brad Dourif) performs well.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Canadian Bacon&lt;/strong&gt; by Michael Moore&lt;/p&gt;
&lt;p&gt;tldr: Tongue in Cheek Comedy&lt;/p&gt;
&lt;p&gt;Critically panned upon release, Canadian Bacon is a fictional film written and Directed by Michael Moore about a war between America and Canada that&amp;#8217;s initiated by a President in order to improve approval ratings.  The film relies considerably upon stereotypes of Americans and Canadians for its comedy, therefore anyone who is a fan of Due South or Professional Wrestling will heartily approve.  Its typically tongue in cheek Michael Moore, and reasonably enjoyable.  After watching this film I noted that it had all the advantages of his documentaries, but I didn&amp;#8217;t feel I was missing out on the facts or critical analysis that his documentaries lack.  I actually laughed quite hard a few times, not a classic by any stretch of the imagination but the scene in which Dan Aykroyd cameos as a Policeman who forces a group of Americans to rewrite their anti-canadian graffiti in french to appease the Bloc Québécois.  I&amp;#8217;d also forgotten how good a happy fat man John Candy is.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Girlfriend Experience&lt;/strong&gt; by &lt;/p&gt;
&lt;p&gt;tldr: well shot and edited, poorly written, acted and conceived&lt;/p&gt;
&lt;p&gt;Watching this film was a motivation for writing this blog post.  Primarily to tell people not to watch it.  Its well shot, has some nice editing touches, clever changes of focus, good lighting but totally lacks any emotional connection.  The lead character is a high class prostitute, played by porn star Sasha Grey, who is considering going away for a weekend with a client, and the stress that this plays on her relationship with her boyfriend.  I&amp;#8217;m totally confused as to why this dilemma is introduced after 55 minutes of playing for time in a 1 hour 20 minute film.  I don&amp;#8217;t understand what the effect on a relationship of one of the partner&amp;#8217;s working in the sex industry is, why not use this time to help me, the viewer, to understand?&lt;/p&gt;
&lt;p&gt;Instead we get scene after scene of poorly conceived dialogue, that fails to lay insight on any of the issues that it touches, which include Obama&amp;#8217;s Presidential Election and the .  One of the key scenes of the film involves an argument between the main couple, an argument where Chris Santos overacts and. as if to emphasize this point, Sasha Grey provides no emotion at all.  It would be easy to write her off as being a pornstar and out of her depth in this acting role, but frankly she doesn&amp;#8217;t give a consistently terrible performance, at some stages shows genuine concern &amp;#8211; there&amp;#8217;s a nice scene involving her crying and clasping at her jacket in the cold in order to keep her warm &amp;#8211; the kind of warmth that neither her boyfriend or clients could provide?  I&amp;#8217;m inclined to think that the script (assuming it wasn&amp;#8217;t totally improvised) was the main problem here, since there&amp;#8217;s plenty of scenes without Sasha Grey that fall totally flat, and sloppy dialogue abounds.&lt;/p&gt;
&lt;p&gt;There&amp;#8217;s a ridiculously unbelievable website owner &amp;#8211; even I, as a PhD student, am aware that you don&amp;#8217;t tell prospective employees that your work sounds like a slavery ring.  Furthermore, its publicly known that the performers and producers within the sex industry regular involve in intercourse, so why is it that she feels so emotionally scarred during scenes in which she describes being propositioned by the website owner.  Please don&amp;#8217;t watch this film.&lt;/p&gt;</content>
		<author>
			<name>Mulletron</name>
			<uri>http://mulletron.uwcs.co.uk/blog</uri>
		</author>
		<source>
			<title type="html">Rising Antinomy</title>
			<subtitle type="html">More True Contradictions ...</subtitle>
			<link rel="self" href="http://mulletron.uwcs.co.uk/blog/?feed=rss2"/>
			<id>http://mulletron.uwcs.co.uk/blog/?feed=rss2</id>
			<updated>2010-03-14T17:38:10+00:00</updated>
		</source>
	</entry>

</feed>
