<?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>4Geeks.de &#187; programming</title>
	<atom:link href="http://www.4geeks.de/blog/archives/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.4geeks.de/blog</link>
	<description>-.-</description>
	<lastBuildDate>Sun, 14 Mar 2010 21:00:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple ML to Python</title>
		<link>http://www.4geeks.de/blog/archives/2009/07/simple-ml-to-python/</link>
		<comments>http://www.4geeks.de/blog/archives/2009/07/simple-ml-to-python/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 21:52:16 +0000</pubDate>
		<dc:creator>ebo</dc:creator>
				<category><![CDATA[Use The Source]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.4geeks.de/blog/?p=217</guid>
		<description><![CDATA[While studying for my exams, I tried to implement some examples from a book about virtual machines.
The result was a nice little program which can compile simple functional programs into python bytecode!
The only thing you need is the ply parser generator. To compile a function just use:
import topcompiler

@topcompile.compile
def func(x, y):
    """let i [...]]]></description>
			<content:encoded><![CDATA[<p>While studying for my exams, I tried to implement some examples from a book about <a href="http://www.amazon.de/%C3%9Cbersetzerbau-Virtuelle-Maschinen-Reinhard-Wilhelm/dp/3540495967">virtual machines</a>.</p>
<p>The result was a <a href="http://bitbucket.org/ebo/pyvm">nice little program</a> which can compile simple functional programs into python bytecode!</p>
<p>The only thing you need is the <a href="http://www.dabeaz.com/ply/">ply parser generator</a>. To compile a function just use:</p>
<pre>import topcompiler

@topcompile.compile
def func(x, y):
    """let i = x*x in y*i"""
    pass # Compiles the docstring into a function

func(2, 3) == 12
</pre>
<p><em>Update:</em></p>
<p>TOPCompiler now also understands recursive definitions!</p>
<pre>@topcompiler.compile
def fac(x):
    """
    let rec fac = fun i -&gt;
    if i &gt; 1 then
        fac (i-1)*i
    else
        1
    in fac x
    """
    pass
</pre>
<p>There is a working quicksort in <a href="http://bitbucket.org/ebo/pyvm/src/6afb96eed147/tests.py#cl-430">tests.py</a>.</p>
<p>Check out the code at <a href="http://bitbucket.org/ebo/pyvm">http://bitbucket.org/ebo/pyvm</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.4geeks.de/blog/archives/2009/07/simple-ml-to-python/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mercurial: hggnome-keyring Extension</title>
		<link>http://www.4geeks.de/blog/archives/2009/04/mercurial-hggnome-keyring-extension/</link>
		<comments>http://www.4geeks.de/blog/archives/2009/04/mercurial-hggnome-keyring-extension/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 19:15:47 +0000</pubDate>
		<dc:creator>ebo</dc:creator>
				<category><![CDATA[Use The Source]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.4geeks.de/?p=193</guid>
		<description><![CDATA[While surfing around I discovered a nice little Mercurial Extension: hgkeychain. Unfortunately it&#8217;s only for Mac. As Gnome has password management of it&#8217;s own, I looked there is someway to access it via Python. And there is!
So I wrote a quick extension myself: hggnome-keyring
It uses the usual yadda yadda for installing (see mercurial docs). Only [...]]]></description>
			<content:encoded><![CDATA[<p>While surfing around I discovered a nice little <a href="http://www.selenic.com/mercurial/">Mercurial</a> Extension: <a href="http://toxicsoftware.com/hgkeychain/">hgkeychain</a>. Unfortunately it&#8217;s only for Mac. As Gnome has password management of it&#8217;s own, I looked there is someway to access it via Python. And there is!</p>
<p>So I wrote a quick extension myself: <a href="http://bitbucket.org/ebo/hggnome-keyring/overview/">hggnome-keyring</a></p>
<p>It uses the usual yadda yadda for installing (see mercurial docs). Only drawback: Access to the keyring is determined by executable name, so any python programm is allowed to access those keys <img src='http://www.4geeks.de/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>There are two first in this post:</p>
<ol>
<li>I used <a href="http://bitbucket.org">bitbucket.org</a> to host the repo. It&#8217;s quite nice and very free.</li>
<li>This post is relayed to my <a href="http://twitter.com/ebolad">twitter account</a>.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.4geeks.de/blog/archives/2009/04/mercurial-hggnome-keyring-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl</title>
		<link>http://www.4geeks.de/blog/archives/2009/03/perl/</link>
		<comments>http://www.4geeks.de/blog/archives/2009/03/perl/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 20:43:31 +0000</pubDate>
		<dc:creator>ebo</dc:creator>
				<category><![CDATA[Use The Source]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.4geeks.de/?p=187</guid>
		<description><![CDATA[If you do not know perl, don’t fret.. it’s extremely easy to learn.
Found in a programming forum from non-coders for non-coders&#8230;
I lol&#8217;d!
]]></description>
			<content:encoded><![CDATA[<blockquote><p>If you do not know perl, don’t fret..<span style="text-decoration: underline;"> it’s extremely easy to learn.</span></p></blockquote>
<p>Found in a programming forum from non-coders for non-coders&#8230;</p>
<p>I lol&#8217;d!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.4geeks.de/blog/archives/2009/03/perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
