Personal tools

Talk:Performance/Strictness

From HaskellWiki

< Talk:Performance(Difference between revisions)
Jump to: navigation, search
m (http://clpatric.strefa.pl/caseddomv-1142.html)
(removed)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[acetaminophen raw material description|http://clpatric.strefa.pl/caseddomv-1142.html] [[http://clpatric.strefa.pl/caseddomv-1142.html acetaminophen raw material description]] [http://clpatric.strefa.pl/caseddomv-1142.html|acetaminophen raw material description] ((http://clpatric.strefa.pl/caseddomv-1142.html acetaminophen raw material description)) [[http://clpatric.strefa.pl/caseddomv-1142.html | acetaminophen raw material description]] "acetaminophen raw material description":http://clpatric.strefa.pl/caseddomv-1142.html [sports disasters videos|http://fixpasxbu.ifrance.com/news-406.html] [[http://fixpasxbu.ifrance.com/news-406.html sports disasters videos]] [http://fixpasxbu.ifrance.com/news-406.html|sports disasters videos] ((http://fixpasxbu.ifrance.com/news-406.html sports disasters videos)) [[http://fixpasxbu.ifrance.com/news-406.html | sports disasters videos]] "sports disasters videos":http://fixpasxbu.ifrance.com/news-406.html [jack o lantern mushroom|http://wejolly.strefa.pl/jack-o-lantern-20081201.html] [[http://wejolly.strefa.pl/jack-o-lantern-20081201.html jack o lantern mushroom]] [http://wejolly.strefa.pl/jack-o-lantern-20081201.html|jack o lantern mushroom] ((http://wejolly.strefa.pl/jack-o-lantern-20081201.html jack o lantern mushroom)) [[http://wejolly.strefa.pl/jack-o-lantern-20081201.html | jack o lantern mushroom]] "jack o lantern mushroom":http://wejolly.strefa.pl/jack-o-lantern-20081201.html [latest hindi ringtones free|http://sasitkobr.ifrance.com/2008-12-04-latest-hindi-ringtones.html] [[http://sasitkobr.ifrance.com/2008-12-04-latest-hindi-ringtones.html latest hindi ringtones free]] [http://sasitkobr.ifrance.com/2008-12-04-latest-hindi-ringtones.html|latest hindi ringtones free] ((http://sasitkobr.ifrance.com/2008-12-04-latest-hindi-ringtones.html latest hindi ringtones free)) [[http://sasitkobr.ifrance.com/2008-12-04-latest-hindi-ringtones.html | latest hindi ringtones free]] "latest hindi ringtones free":http://sasitkobr.ifrance.com/2008-12-04-latest-hindi-ringtones.html [blonde teen porn|http://haschucka.interfree.it/news-blonde-teen-porn-20081125.html] [[http://haschucka.interfree.it/news-blonde-teen-porn-20081125.html blonde teen porn]] [http://haschucka.interfree.it/news-blonde-teen-porn-20081125.html|blonde teen porn] ((http://haschucka.interfree.it/news-blonde-teen-porn-20081125.html blonde teen porn)) [[http://haschucka.interfree.it/news-blonde-teen-porn-20081125.html | blonde teen porn]] "blonde teen porn":http://haschucka.interfree.it/news-blonde-teen-porn-20081125.html
+
I removed the following:
[domain|http://labooth.strefa.pl/sitemap.htm] [[http://labooth.strefa.pl/sitemap.htm domain]] [http://labooth.strefa.pl/sitemap.htm|domain] ((http://labooth.strefa.pl/sitemap.htm domain)) [[http://labooth.strefa.pl/sitemap.htm | domain]] "domain":http://labooth.strefa.pl/sitemap.htm [aikibudo montreal|http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html] [[http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html aikibudo montreal]] [http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html|aikibudo montreal] ((http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html aikibudo montreal)) [[http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html | aikibudo montreal]] "aikibudo montreal":http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html [new york city charter bus|http://virosaur.strefa.pl/topic545.htm] [[http://virosaur.strefa.pl/topic545.htm new york city charter bus]] [http://virosaur.strefa.pl/topic545.htm|new york city charter bus] ((http://virosaur.strefa.pl/topic545.htm new york city charter bus)) [[http://virosaur.strefa.pl/topic545.htm | new york city charter bus]] "new york city charter bus":http://virosaur.strefa.pl/topic545.htm [nerds lightning bolt video|http://lachiacn.ifrance.com/page994.html] [[http://lachiacn.ifrance.com/page994.html nerds lightning bolt video]] [http://lachiacn.ifrance.com/page994.html|nerds lightning bolt video] ((http://lachiacn.ifrance.com/page994.html nerds lightning bolt video)) [[http://lachiacn.ifrance.com/page994.html | nerds lightning bolt video]] "nerds lightning bolt video":http://lachiacn.ifrance.com/page994.html [http|http://fixpasxbu.ifrance.com/sitemap.html] [[http://fixpasxbu.ifrance.com/sitemap.html http]] [http://fixpasxbu.ifrance.com/sitemap.html|http] ((http://fixpasxbu.ifrance.com/sitemap.html http)) [[http://fixpasxbu.ifrance.com/sitemap.html | http]] "http":http://fixpasxbu.ifrance.com/sitemap.html
+
<blockquote>NB. do not do this if the expression on the right of $! is a variable - that just wastes effort, because it does not eliminate a suspension. The only reason to do this would be if you were eliminating a space leak.</blockquote>
  +
because
  +
<pre-haskell>
  +
test = let
  +
x = undefined
  +
in (const 0) $! x
  +
</pre-haskell>
  +
yields exception and substituting ($) for ($!) yields 0. So ($!) does eliminate a suspension.
  +
--[[User:Beroal|beroal]] 16:58, 16 June 2010 (UTC)

Latest revision as of 16:58, 16 June 2010

I removed the following:

NB. do not do this if the expression on the right of $! is a variable - that just wastes effort, because it does not eliminate a suspension. The only reason to do this would be if you were eliminating a space leak.

because

test = let
  x = undefined
  in (const 0) $! x

yields exception and substituting ($) for ($!) yields 0. So ($!) does eliminate a suspension. --beroal 16:58, 16 June 2010 (UTC)