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. Re: Two questions for a production project... (Henk-Jan van Tuyl)
2. Re: Two questions for a production project... (Mike Meyer)
3. Re: Fwd: Implementing a spellchecker - problem with
Data.HashTable performance (Rados?aw Szymczyszyn)
4. Re: Fwd: Implementing a spellchecker - problem with
Data.HashTable performance (Lorenzo Bolla)
5. Re: Training tasks (umptious)
----------------------------------------------------------------------
Message: 1
Date: Fri, 20 Apr 2012 17:04:17 +0200
From: "Henk-Jan van Tuyl" <[email protected]>
Subject: Re: [Haskell-beginners] Two questions for a production
project...
To: "[email protected]" <[email protected]>, "Mike Meyer"
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
delsp=yes
On Fri, 20 Apr 2012 01:40:02 +0200, Mike Meyer <[email protected]> wrote:
> I've got a project coming up that I could use haskell for, providing I
> can convince myself that it's appropriate. The critical question is:
>
> Anyone using Haskell in a long-running production application? I'm
> talking about something where the program would run for weeks or
> months non-stop, with either multiple threads or multiple copies.
What's the other question?
Regards,
Henk-Jan van Tuyl
--
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
------------------------------
Message: 2
Date: Fri, 20 Apr 2012 11:09:35 -0400
From: Mike Meyer <[email protected]>
Subject: Re: [Haskell-beginners] Two questions for a production
project...
To: [email protected] <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII
On Fri, 20 Apr 2012 17:04:17 +0200
"Henk-Jan van Tuyl" <[email protected]> wrote:
> On Fri, 20 Apr 2012 01:40:02 +0200, Mike Meyer <[email protected]> wrote:
>
> > I've got a project coming up that I could use haskell for, providing I
> > can convince myself that it's appropriate. The critical question is:
> >
> > Anyone using Haskell in a long-running production application? I'm
> > talking about something where the program would run for weeks or
> > months non-stop, with either multiple threads or multiple copies.
>
> What's the other question?
I wondered if someone would comment on that.
I changed my mind about the second one, and failed to update the subject.
It was "Any success in using the webkit bindings in a multi-threaded
application"? In particular, one that's using multiple OS threads?
Thanks,
<mike
--
Mike Meyer <[email protected]> http://www.mired.org/
Independent Software developer/SCM consultant, email for more information.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
------------------------------
Message: 3
Date: Fri, 20 Apr 2012 18:03:19 +0200
From: Rados?aw Szymczyszyn <[email protected]>
Subject: Re: [Haskell-beginners] Fwd: Implementing a spellchecker -
problem with Data.HashTable performance
To: Karol Samborski <[email protected]>
Cc: [email protected]
Message-ID:
<CAG=dco24oq+tr9x1oqv8fhdmoqq+bszftyxokznrvbyaskk...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Thanks for your suggestions. Alas, they don't solve the problem.
As I was at work without the original data file, I repeated the test
suggested by Karol Samborski with a file of 1 400 000 repetitions of
"?y?niejszymi". It took about 3.5s, so I thought my problem had been
solved. However, repeating it with -O2 makes a difference of ~2-3s and
I don't believe my laptop I used at home is *that much slower* than my
Mac at work, that running without optimization would make such a great
difference.
Now, I've just rerun the test run with the original data file (still
at work, so comparison with 3.5s is appropriate) at 17:26 and it's
still running -- so the problem lies in the data set being hashed. I
don't know why, but it seems to:
- either make a difference whether one specific or many different
words are hashed,
- or whether it's just one slot or many of the HashTable being updated
(but as I'm using newHint the space should be preallocated).
Either way I would be grateful if you Karol or somebody else could
rerun the test with the original data. It's available at:
http://ernie.icslab.agh.edu.pl/~lavrin/formy.utf8.gz
Thanks for your time!
Regards,
Radek Szymczyszyn
------------------------------
Message: 4
Date: Fri, 20 Apr 2012 17:58:46 +0100
From: Lorenzo Bolla <[email protected]>
Subject: Re: [Haskell-beginners] Fwd: Implementing a spellchecker -
problem with Data.HashTable performance
Cc: [email protected]
Message-ID: <20120420165846.GA14545@dell>
Content-Type: text/plain; charset=utf-8
Maybe you could also time with datasets of increasing size (up to 1M),
and see if the execution time grows like O(n^2), in which case I'd say
it's a hashing problem...
On Fri, Apr 20, 2012 at 06:03:19PM +0200, Rados?aw Szymczyszyn wrote:
> Thanks for your suggestions. Alas, they don't solve the problem.
>
> As I was at work without the original data file, I repeated the test
> suggested by Karol Samborski with a file of 1 400 000 repetitions of
> "?y?niejszymi". It took about 3.5s, so I thought my problem had been
> solved. However, repeating it with -O2 makes a difference of ~2-3s and
> I don't believe my laptop I used at home is *that much slower* than my
> Mac at work, that running without optimization would make such a great
> difference.
>
> Now, I've just rerun the test run with the original data file (still
> at work, so comparison with 3.5s is appropriate) at 17:26 and it's
> still running -- so the problem lies in the data set being hashed. I
> don't know why, but it seems to:
> - either make a difference whether one specific or many different
> words are hashed,
> - or whether it's just one slot or many of the HashTable being updated
> (but as I'm using newHint the space should be preallocated).
>
> Either way I would be grateful if you Karol or somebody else could
> rerun the test with the original data. It's available at:
> http://ernie.icslab.agh.edu.pl/~lavrin/formy.utf8.gz
>
> Thanks for your time!
>
> Regards,
> Radek Szymczyszyn
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
--
Lorenzo Bolla
http://lbolla.info
------------------------------
Message: 5
Date: Sat, 21 Apr 2012 01:08:27 +0100
From: umptious <[email protected]>
Subject: Re: [Haskell-beginners] Training tasks
To: [email protected]
Message-ID:
<cae20bnuwzxdwb3wptcb6vgatcto5j_bvvqynaufg5uxujry...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
On 20 April 2012 19:47, Michael Litchard <[email protected]> wrote:
> A copy would be most helpful. Thanks :)
>
The most useful part of the Elite/Traveller trading engine problem is that
it's extremely easy to come up with changes to the requirements once you've
finished the thing. We all have some idea how international trade works, so
you can think about the domain and say - "Hey - I'm going to add tariffs!
And I'm going to add alliances - most worlds will belong to one, and if
you're registered with Alliance A then you don't pay tariffs at their
ports, but you do pay extra at B's, and you can't dock at C's at all. But
those relationships may change at an any moment."
Politics and trade are complex enough so that you can always come up with
some tweak to the model that you never thought of before. Which means you
get to see how easy it is to refactor for completely unanticipated
requirements - it's not a hard test that gives you numbers, but it does
give you a feel for how the language being tested copes with the sort of
unanticipated change you can get in real world requirements.
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20120421/7a222b8c/attachment-0001.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 46, Issue 38
*****************************************