Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Cksum for StartProcess.exe (Tim Perry)
2. ??: [Haskell-beginners] Cksum for StartProcess.exe (??)
3. Re: ??: [Haskell-beginners] Cksum for StartProcess.exe (Tim Perry)
4. Re: shortening code (rizwan hudda)
5. Re: shortening code (Christian Maeder)
6. Working with System.Timeout in Windows (Adolfo Builes)
----------------------------------------------------------------------
Message: 1
Date: Wed, 30 Jun 2010 00:25:36 -0700 (PDT)
From: Tim Perry <[email protected]>
Subject: [Haskell-beginners] Cksum for StartProcess.exe
To: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
My virus scanner thinks StartProcess.exe is infected. I was hoping someone
could post a valid cksum for it so I could compare. Thanks - Tim
Ps: "Haskell Platform\2010.1.0.0\winghci\StartProcess.exe"
Sent from my i(Wish-It-Worked-As-A)Phone
------------------------------
Message: 2
Date: Wed, 30 Jun 2010 16:08:15 +0800
From: ?? <[email protected]>
Subject: ??: [Haskell-beginners] Cksum for StartProcess.exe
To: <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="gb2312"
StartProcess.exe size 8192Byte
MD5
88d4a76b2917f29d734912719d99521c *StartProcess.exe
-----ÓʼþÔ¼þ-----
·¢¼þÈË: [email protected] [mailto:[email protected]]
´ú±í Tim Perry
·¢ËÍʱ¼ä: 2010Äê6ÔÂ30ÈÕ 15:26
ÊÕ¼þÈË: [email protected]
Ö÷Ìâ: [Haskell-beginners] Cksum for StartProcess.exe
My virus scanner thinks StartProcess.exe is infected. I was hoping someone
could post a valid cksum for it so I could compare. Thanks - Tim
Ps: "Haskell Platform\2010.1.0.0\winghci\StartProcess.exe"
Sent from my i(Wish-It-Worked-As-A)Phone
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
Message: 3
Date: Wed, 30 Jun 2010 01:45:55 -0700 (PDT)
From: Tim Perry <[email protected]>
Subject: Re: ??: [Haskell-beginners] Cksum for StartProcess.exe
To: ?? <[email protected]>
Cc: "<[email protected]>" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Thank you. I'm in the clear....
Sent from my i(Wish-It-Worked-As-A)Phone
On Jun 30, 2010, at 1:08, 赵欣 <[email protected]> wrote:
StartProcess.exe size 8192Byte
MD5
88d4a76b2917f29d734912719d99521c *StartProcess.exe
-----é®ä»¶åä»¶-----
å件人: [email protected] [mailto:[email protected]]
代表 Tim Perry
åéæ¶é´: 2010å¹´6æ30æ¥ 15:26
æ¶ä»¶äºº: [email protected]
主é¢: [Haskell-beginners] Cksum for StartProcess.exe
My virus scanner thinks StartProcess.exe is infected. I was hoping someone
could post a valid cksum for it so I could compare. Thanks - Tim
Ps: "Haskell Platform\2010.1.0.0\winghci\StartProcess.exe"
Sent from my i(Wish-It-Worked-As-A)Phone
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
Message: 4
Date: Wed, 30 Jun 2010 15:56:00 +0530
From: rizwan hudda <[email protected]>
Subject: Re: [Haskell-beginners] shortening code
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Thanks Felipe Lessa for shortening the code :) and everyone for advice.
I have recently started learning haskell from the book
Learnyouahaskell - www.learnyouahaskell.com - I am done with the book except
for Bytestreams and randomness. Was trying to put my haskell skills to use
on the problems of this kind. My aim is to understand and practice haskell
and not WIN these code golf competitions! . So, please suggest me what are
the other books i can read ( and work through :) ), in general any good open
source projects to involve in, etc.. basically any advices to improve as a
haskell programmer.
Thanks in advance.
On Wed, Jun 30, 2010 at 9:50 AM, Lyndon Maydwell <[email protected]> wrote:
> I agree. If you're aiming for really terse code, have a look at the
> J/K languages. These seem to win most golf-shootout type competitions.
> Haskell is more focused on expressiveness and abstraction.
>
> On Wed, Jun 30, 2010 at 11:25 AM, Michael Mossey <[email protected]>
> wrote:
> >
> >
> > rizwan hudda wrote:
> >>
> >> I have recently started learning haskell, and was trying to write a code
> >> for this problem http://www.spoj.pl/problems/KAMIL in haskell. The aim
> is to
> >> write a shortest possible code for the given task. I have previously
> solved
> >> this in c,c++,perl,python.My best was 57 characters using perl. So
> here's my
> >> code in HASKELL:
> >>
> >> main = interact $ unlines. map (show.foldl (\a x-> if null $ filter
> (==x)
> >> "TDLF" then a else a+a) 1) .lines
> >>
> >> It is 107 characters [ non white space and newline ]. I was interested
> in
> >> knowing how i could further optimize the size of this code.
> >
> > This kind of contest is fun, but I can't help thinking I hope you are
> > learning Haskell to appreciate the things that functional programming is
> > good at. Real-world Haskell is often more concise than other languages
> > because Haskell has mechanisms for eliminating unnecessary and redundant
> > code, but Haskell's strength is not winning "shortest program" contests.
> >
> > Mike
> > _______________________________________________
> > Beginners mailing list
> > [email protected]
> > http://www.haskell.org/mailman/listinfo/beginners
> >
>
--
Thanks and regards
Rizwan A Hudda
http://sites.google.com/site/rizwanhudda
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.haskell.org/pipermail/beginners/attachments/20100630/5f683cc5/attachment-0001.html
------------------------------
Message: 5
Date: Wed, 30 Jun 2010 18:05:44 +0200
From: Christian Maeder <[email protected]>
Subject: [Haskell-beginners] Re: shortening code
To: Felipe Lessa <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
Felipe Lessa schrieb:
> main = interact $ unlines . map (show . (2^) . length . filter
> (`elem` "TDLF")) . lines
>
> That's 70 non-whitespace characters. This one-liner is pretty
> readable, probably more than the Perl one ;D.
May I toss in:
main = getLine >>= print . (2 ^) . length . filter (`elem` "TDLF")
>> main
(60 non-whitespace characters)
C.
------------------------------
Message: 6
Date: Wed, 30 Jun 2010 11:51:39 -0500
From: Adolfo Builes <[email protected]>
Subject: [Haskell-beginners] Working with System.Timeout in Windows
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="utf-8"
Hi Guys,
I have been trying to do something with timeout of the System.Timeout but It
hasn't work in Windows. When I first built, it didn't work, so I went to
#haskell, and they told me that I should use -threaded, then after
recompiling with -threaded it didn't work either. Does someone one what
could probably be going on ?
I'm using it with simpleHTTP of Network.HTTP, basically what I want to do is
trying to get a source, but stop trying if I don't get an answer between a
certain amount of time, something like:
r <- timeout timeOutTime $ simpleHTTP req
With curl for example I could use CURLOPT_TIMEOUT ( in Linux ), but I
haven't found a way to say something like that using simpleHTTP.
Cheers,
Adolfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.haskell.org/pipermail/beginners/attachments/20100630/e7a54c1a/attachment-0001.html
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 24, Issue 42
*****************************************