Generally strict Haskell means using strict data types - vectors, arrays, bytestrings, intmaps where required.<br><br>However, you usually don&#39;t want all code and data strict, all the time, since laziness/on-demand eval is critical for deferring non-essential work.<br>
<br>Summary; -fstrict wouldn&#39;t magically make your code good. Using the right balance of strict and lazy code, via the right choice of strict and lazy types, however, often does.<br><br>Id be interested to know what choices were made in your log file case led you into problems -- using something excessively lazy (like lazy lists) or something excessively strict (like strict bytestrings) would both be suboptimal for log analysis. A hybrid type like a lazy bytestring, would be more appropriate.<br>
<br>On Sunday, January 29, 2012, Marc Weber &lt;<a href="mailto:marco-oweber@gmx.de">marco-oweber@gmx.de</a>&gt; wrote:<br>&gt; A lot of work has been gone into GHC and its libraries.<br>&gt; However for some use cases C is still preferred, for obvious speed<br>
&gt; reasons - because optimizing an Haskell application can take much time.<br>&gt;<br>&gt; Is there any document describing why there is no ghc --strict flag<br>&gt; making all code strict by default?<br>&gt; Wouldn&#39;t this make it easier to apply Haskell to some additional fields<br>
&gt; such as video processing etc?<br>&gt;<br>&gt; Wouldn&#39;t such a &#39;--strict&#39; flag turn Haskell/GHC into a better C/gcc<br>&gt; compiler?<br>&gt;<br>&gt; Projects like this: <a href="https://github.com/thoughtpolice/strict-ghc-plugin">https://github.com/thoughtpolice/strict-ghc-plugin</a><br>
&gt; show that the idea is not new.<br>&gt;<br>&gt; Eg some time ago I had to do some logfile analysis. I ended doing it in<br>&gt; PHP because optimizing the Haskell code took too much time.<br>&gt;<br>&gt; Marc Weber<br>
&gt;<br>&gt; _______________________________________________<br>&gt; Haskell-Cafe mailing list<br>&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;