<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.bs/group/comp.lang.haskell</id>
  <title type="text">comp.lang.haskell Google Group</title>
  <subtitle type="text">
  Polymorphically-typed lazy purely-functional programming.
  </subtitle>
  <link href="/group/comp.lang.haskell/feed/atom_v1_0_msgs.xml" rel="self" title="comp.lang.haskell feed"/>
  <updated>2010-03-08T09:30:33Z</updated>
  <generator uri="http://groups.google.bs" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>LAca</name>
  <email>rizso...@gmail.com</email>
  </author>
  <updated>2010-03-08T09:30:33Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/df12313389065ab4/d1931e008fd66ff1?show_docid=d1931e008fd66ff1</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/df12313389065ab4/d1931e008fd66ff1?show_docid=d1931e008fd66ff1"/>
  <title type="text">Re: performance question</title>
  <summary type="html" xml:space="preserve">
  thanks for the comments. just an update what i have tried and not &lt;br&gt; worked: &lt;br&gt; - put more `seq` wherever i can, &lt;br&gt; - create map for each file separately and merge them at the end. &lt;br&gt; but most surprisingly the small change, what made it: &lt;br&gt; - build the reverse graph (instead of which includes which, now i &lt;br&gt; collect which were included from where.)
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dirk Thierbach</name>
  <email>dthierb...@usenet.arcornews.de</email>
  </author>
  <updated>2010-03-06T05:46:36Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/5c6b7271d4322170/40c20b5deecac9fc?show_docid=40c20b5deecac9fc</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/5c6b7271d4322170/40c20b5deecac9fc?show_docid=40c20b5deecac9fc"/>
  <title type="text">Re: pimp my code</title>
  <summary type="html" xml:space="preserve">
  You&#39;re welcome. Getting used to Haskell takes some time, and if you &lt;br&gt; need more details, feel free to ask. &lt;br&gt; - Dirk
  </summary>
  </entry>
  <entry>
  <author>
  <name>Sean McIlroy</name>
  <email>namenobodywa...@gmail.com</email>
  </author>
  <updated>2010-03-05T20:25:13Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/5c6b7271d4322170/1f07af515ec5b5c9?show_docid=1f07af515ec5b5c9</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/5c6b7271d4322170/1f07af515ec5b5c9?show_docid=1f07af515ec5b5c9"/>
  <title type="text">Re: pimp my code</title>
  <summary type="html" xml:space="preserve">
  On Mar 4, 5:27 am, Dirk Thierbach &amp;lt;dthierb...@usenet.arcornews.d e&amp;gt; &lt;br&gt; wrote: &lt;br&gt; thanks for the tips. &lt;br&gt; peace &lt;br&gt; stm
  </summary>
  </entry>
  <entry>
  <author>
  <name>ld</name>
  <email>laurent.den...@gmail.com</email>
  </author>
  <updated>2010-03-04T14:48:27Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/0ea6dc5ff8ef40cc/3e9e4f9a395278f6?show_docid=3e9e4f9a395278f6</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/0ea6dc5ff8ef40cc/3e9e4f9a395278f6?show_docid=3e9e4f9a395278f6"/>
  <title type="text">Re: ghc warning</title>
  <summary type="html" xml:space="preserve">
  Now that I see it, it looks obvious ;-) &lt;br&gt; Thanks, &lt;br&gt; Laurent
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mark T. B. Carroll</name>
  <email>mark.carr...@aetion.com</email>
  </author>
  <updated>2010-03-04T14:30:12Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/0ea6dc5ff8ef40cc/37e8be7808be814c?show_docid=37e8be7808be814c</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/0ea6dc5ff8ef40cc/37e8be7808be814c?show_docid=37e8be7808be814c"/>
  <title type="text">Re: ghc warning</title>
  <summary type="html" xml:space="preserve">
  It&#39;s wondering which integral type to use after rounding but before &lt;br&gt; converting back to Double. For instance, &lt;br&gt; rint :: Int -&amp;gt; Double -&amp;gt; Double &lt;br&gt; rint d x = fromIntegral (round (x * 10^d) :: Integer) / 10^d &lt;br&gt; Mark
  </summary>
  </entry>
  <entry>
  <author>
  <name>ld</name>
  <email>laurent.den...@gmail.com</email>
  </author>
  <updated>2010-03-04T14:11:38Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/0ea6dc5ff8ef40cc/a9fd2d48131e5409?show_docid=a9fd2d48131e5409</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/0ea6dc5ff8ef40cc/a9fd2d48131e5409?show_docid=a9fd2d48131e5409"/>
  <title type="text">ghc warning</title>
  <summary type="html" xml:space="preserve">
  When I compile &lt;br&gt; rint :: Int -&amp;gt; Double -&amp;gt; Double &lt;br&gt; rint d x = fromIntegral (round (x * 10^d)) / 10^d &lt;br&gt; GHC reports &lt;br&gt; main.hs:442:25: &lt;br&gt; Warning: Defaulting the following constraint(s) to type `Integer&#39; &lt;br&gt; `Integral b&#39; arising from a use of `round&#39; at main.hs: &lt;br&gt; 442:25-40 &lt;br&gt; In the first argument of `fromIntegral&#39;, namely
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dirk Thierbach</name>
  <email>dthierb...@usenet.arcornews.de</email>
  </author>
  <updated>2010-03-04T13:27:45Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/5c6b7271d4322170/7d0c371c9ccb1e63?show_docid=7d0c371c9ccb1e63</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/5c6b7271d4322170/7d0c371c9ccb1e63?show_docid=7d0c371c9ccb1e63"/>
  <title type="text">Re: pimp my code</title>
  <summary type="html" xml:space="preserve">
  There&#39;s a number of inefficiencies in your code. I could go through the &lt;br&gt; code in detail, but that would probably end with a complete rewrite :-), &lt;br&gt; so I&#39;ll just do a summary (unless you still get stuck): &lt;br&gt; * Haskell has to read a sequence of bytes, convert them into a list of &lt;br&gt; Char, then another time into a list of Int, and then you process them.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Sean McIlroy</name>
  <email>namenobodywa...@gmail.com</email>
  </author>
  <updated>2010-03-04T06:27:10Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/5c6b7271d4322170/5e1748d69b4b106c?show_docid=5e1748d69b4b106c</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/5c6b7271d4322170/5e1748d69b4b106c?show_docid=5e1748d69b4b106c"/>
  <title type="text">pimp my code</title>
  <summary type="html" xml:space="preserve">
  hi all &lt;br&gt; here is a little module for parsing midi files. it seems to work, but &lt;br&gt; it&#39;s much slower than its python counterpart. maybe somebody could &lt;br&gt; look through it and see if i&#39;m making any obvious mistakes? &lt;br&gt; peace &lt;br&gt; stm &lt;br&gt; {----------------------------- ------------------------------ ------------------------------ ---
  </summary>
  </entry>
  <entry>
  <author>
  <name>Hans Aberg</name>
  <email>haberg_20080...@math.su.se</email>
  </author>
  <updated>2010-02-17T20:10:35Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/df12313389065ab4/dfc9a626800e1ed6?show_docid=dfc9a626800e1ed6</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/df12313389065ab4/dfc9a626800e1ed6?show_docid=dfc9a626800e1ed6"/>
  <title type="text">Re: performance question</title>
  <summary type="html" xml:space="preserve">
  LAca wrote: &lt;br&gt; If you do random access, using arrays might improve performance &lt;br&gt; dramatically. Singly linked lists are really slow. &lt;br&gt; Hans
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mark T. B. Carroll</name>
  <email>mark.carr...@aetion.com</email>
  </author>
  <updated>2010-02-17T17:58:24Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/df12313389065ab4/4afc43114dc6d5e6?show_docid=4afc43114dc6d5e6</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/df12313389065ab4/4afc43114dc6d5e6?show_docid=4afc43114dc6d5e6"/>
  <title type="text">Re: performance question</title>
  <summary type="html" xml:space="preserve">
  My first instinct would be to look hard at the map operations you have: &lt;br&gt; I&#39;ve had some laziness surprises from those in the past. I&#39;m guessing &lt;br&gt; that the Map.insertWith only deals with small values anyway? Are you &lt;br&gt; sure that the foldWithKey is as strict as you hope? If anyone else &lt;br&gt; suggests anything, they&#39;re probably more likely to be correct than I am,
  </summary>
  </entry>
  <entry>
  <author>
  <name>LAca</name>
  <email>rizso...@gmail.com</email>
  </author>
  <updated>2010-02-17T17:34:51Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/df12313389065ab4/fa69f965f9324dca?show_docid=fa69f965f9324dca</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/df12313389065ab4/fa69f965f9324dca?show_docid=fa69f965f9324dca"/>
  <title type="text">performance question</title>
  <summary type="html" xml:space="preserve">
  hi All, &lt;br&gt; I&#39;m trying to create a simple application, which parses CPP output &lt;br&gt; files and creates a graphviz dot file. You can find the source here: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://sites.google.com/site/rizsotto/daopp&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; I&#39;m using test files ~25GB as input, the allocation is ~1.5GB. I tried &lt;br&gt; to profile the application, but found not too much. The (:) allocates
  </summary>
  </entry>
  <entry>
  <author>
  <name>LAca</name>
  <email>rizso...@gmail.com</email>
  </author>
  <updated>2010-02-12T09:54:39Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/3a668ee4ea646989/628ea79917135de0?show_docid=628ea79917135de0</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/3a668ee4ea646989/628ea79917135de0?show_docid=628ea79917135de0"/>
  <title type="text">Re: enumerations</title>
  <summary type="html" xml:space="preserve">
  On Feb 11, 5:30 pm, Dirk Thierbach &amp;lt;dthierb...@usenet.arcornews.d e&amp;gt; &lt;br&gt; wrote: &lt;br&gt; Thanks Dirk, it has helped!
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dirk Thierbach</name>
  <email>dthierb...@usenet.arcornews.de</email>
  </author>
  <updated>2010-02-11T16:30:55Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/3a668ee4ea646989/51e70e0d83e954c6?show_docid=51e70e0d83e954c6</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/3a668ee4ea646989/51e70e0d83e954c6?show_docid=51e70e0d83e954c6"/>
  <title type="text">Re: enumerations</title>
  <summary type="html" xml:space="preserve">
  You have to add a pragma: &lt;br&gt; {-# LANGUAGE GeneralizedNewtypeDeriving #-} &lt;br&gt; &lt;p&gt; newtype Color = Color Int deriving (Eq,Ord,Enum) &lt;br&gt; &lt;p&gt; (red:blue:black:_) = [Color 1 ..] &lt;br&gt; *Main&amp;gt; :t red &lt;br&gt; red :: Color &lt;br&gt; But I doubt that this will increase the performance a lot. If you do &lt;br&gt; a bit of profiling, you&#39;ll probably find other places to optimize, with
  </summary>
  </entry>
  <entry>
  <author>
  <name>Ertugrul Söylemez</name>
  <email>e...@ertes.de</email>
  </author>
  <updated>2010-02-11T16:15:20Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/3a668ee4ea646989/9ff1ce70171e1761?show_docid=9ff1ce70171e1761</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/3a668ee4ea646989/9ff1ce70171e1761?show_docid=9ff1ce70171e1761"/>
  <title type="text">Re: enumerations</title>
  <summary type="html" xml:space="preserve">
  The examples there seem to work fine. But first you should consider &lt;br&gt; whether you need such a hacky optimization. Perhaps serialization is &lt;br&gt; what you need. &lt;br&gt; Greets &lt;br&gt; Ertugrul
  </summary>
  </entry>
  <entry>
  <author>
  <name>LAca</name>
  <email>rizso...@gmail.com</email>
  </author>
  <updated>2010-02-11T14:19:54Z</updated>
  <id>http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/3a668ee4ea646989/22999dd29b30dfab?show_docid=22999dd29b30dfab</id>
  <link href="http://groups.google.bs/group/comp.lang.haskell/browse_thread/thread/3a668ee4ea646989/22999dd29b30dfab?show_docid=22999dd29b30dfab"/>
  <title type="text">enumerations</title>
  <summary type="html" xml:space="preserve">
  hello All, &lt;br&gt; i tried to tune up my little application, and have found this page: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.haskell.org/haskellwiki/Performance/Data_types#Enumerations&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; but the example does not even compile for me. anyone could give me a &lt;br&gt; hint how to write enumeration shortly? &lt;br&gt; thanks, &lt;br&gt; Laszlo
  </summary>
  </entry>
</feed>
