<?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>Naufraghi nella rete &#187; unifi</title>
	<atom:link href="http://www.slug.it/naufraghi/tag/unifi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slug.it/naufraghi</link>
	<description>… dolce m’è il naufragar in questo mare?</description>
	<lastBuildDate>Fri, 06 Aug 2010 15:50:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Cython rocks</title>
		<link>http://www.slug.it/naufraghi/cython-rocks/</link>
		<comments>http://www.slug.it/naufraghi/cython-rocks/#comments</comments>
		<pubDate>Fri, 02 May 2008 00:30:13 +0000</pubDate>
		<dc:creator>Matteo</dc:creator>
				<category><![CDATA[informatica]]></category>
		<category><![CDATA[matematica]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[unifi]]></category>

		<guid isPermaLink="false">http://www.slug.it/naufraghi/cython-rocks/</guid>
		<description><![CDATA[Ho cominciato a lavorare sul serio all&#8217;università, in laboratorio si macinano proteine, tante, ed il povero Python non regge il passo. Durante la sosta forzata mi sono baloccato con OCaml, e devo dire che è un linguaggio interessante, anche se per ora non sono ancora riuscito a realizzare un qualcosa di funzionante :/ ! Uscito [...]]]></description>
			<content:encoded><![CDATA[<p>Ho cominciato a lavorare sul serio all&#8217;università, in laboratorio si macinano proteine, tante, ed il povero Python non regge il passo.</p>
<p>Durante la sosta forzata mi sono baloccato con <a href="http://caml.inria.fr/">OCaml</a>, e devo dire che è un linguaggio interessante, anche se per ora non sono ancora riuscito a realizzare un qualcosa di funzionante :/ !</p>
<p>Uscito da gesso e riabilitazione, ho cominciato a studiare le &#8220;nuove&#8221; reti neurali (<a href="http://www.google.com/search?q=deep+neural+networks">deep neural networks</a>), e ne ho implementata una in <a href="http://code.google.com/p/naufraghi/source/browse/dottorato/bplnn.py?r=114">poche paginate</a> in Python.</p>
<p>Però la velocità è quella che è&#8230; allora è partito il pellegrinaggio:</p>
<ol>
<li>Ho riscritto il tutto <a href="http://code.google.com/p/naufraghi/source/browse/dottorato/bplnn.ml">in OCaml</a>, ma c&#8217;è un bug che non fa convergere nulla&#8230; e non lo trovo!</li>
<li>Ho provato <a href="http://codespeak.net/pypy/">pypy</a>, per vedere se il mio codice era abbastanza <a href="http://www.google.com/search?q=pypy+rpython">RPython</a>&#8230; ma non lo era</li>
<li>Ho provato <a href="http://shed-skin.blogspot.com/">ShedSkin</a>, ma anche per lui il mio codice non era abbastanza statico.</li>
</ol>
<p>Allora mi sono arreso, l&#8217;inferenza ancora non è gratuita, e mi sono &#8220;abbassato&#8221; a buttare giù tipi e gestire la memoria, in Cython!</p>
<p>Adesso, avendo reimplementato solo la <a href="http://code.google.com/p/naufraghi/source/browse/dottorato/cbplnn.pyx">classe Layer</a>, l&#8217;apprendimento ha una velocità decente, il codice resta leggibile, non ho &#8220;esportato&#8221; il bug della versione in OCaml ed ho spazio per ulteriori ottimizzazioni senza perdere le comodità di Python!</p>
<p>Yuppie!</p>
<ul class="socialwrap size24 row">
<li class="iconOnly"><a rel="nofollow" target="_blank" class="delicious" href="http://delicious.com/post?url=http%3A%2F%2Fwww.slug.it%2Fnaufraghi%2Fcython-rocks%2F&amp;title=Cython+rocks" title="Bookmark this post : Cython rocks on Delicious"><span class="head">Bookmark on Delicious</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="digg" href="http://digg.com/submit?url=http%3A%2F%2Fwww.slug.it%2Fnaufraghi%2Fcython-rocks%2F&amp;title=Cython+rocks&amp;bodytext=Ho+cominciato+a+lavorare+sul+serio+all%27universit%C3%A0%2C+in+laboratorio+si+macinano+proteine%2C+tante%2C+ed+il+povero+Python+non+regge+il+passo.%0D%0A%0D%0ADurante+la+sosta+forzata+mi+sono+baloccato+con+OCaml%2C+e+devo+dire+che+%C3%A8+un+linguaggio+interessante%2C+anche+se+per+ora+non+sono+ancora+riuscito+a+realizzare+un+qualcosa+di+funzionant" title="Digg this post : Cython rocks"><span class="head">Digg this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="facebook" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.slug.it%2Fnaufraghi%2Fcython-rocks%2F&amp;t=Cython+rocks" title="Recommend this post : Cython rocks on Facebook"><span class="head">Recommend on Facebook</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="reddit" href="http://www.reddit.com/submit?url=http%3A%2F%2Fwww.slug.it%2Fnaufraghi%2Fcython-rocks%2F&amp;title=Cython+rocks" title="Share this post : Cython rocks on Reddit"><span class="head">share via Reddit</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="stumble" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.slug.it%2Fnaufraghi%2Fcython-rocks%2F&amp;title=Cython+rocks" title="Share this post : Cython rocks with Stumblers"><span class="head">Share with Stumblers</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="twitter" href="http://twitter.com/home/?status=http%3A%2F%2Fwww.slug.it%2Fnaufraghi%2Fcython-rocks%2F" title="Tweet this post : Cython rocks on Twitter"><span class="head">Tweet about it</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="rss" href="http://www.slug.it/naufraghi/cython-rocks/feed" title="Follow this post : Cython rocks comments"><span class="head">Subscribe to the comments on this post</span></a></li>
</ul>
<div class="clean"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.slug.it/naufraghi/cython-rocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
