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.  Audio packages (Sourabh)
   2. Re:  Audio packages (Antoine Latter)
   3.  Testing the water (Cody Haberkorn)
   4. Re:  Testing the water (Brent Yorgey)
   5.  suggestions for optimizing sudoku solver (Peter Hall)


----------------------------------------------------------------------

Message: 1
Date: Sun, 1 Jan 2012 10:51:53 -0800
From: Sourabh <[email protected]>
Subject: [Haskell-beginners] Audio packages
To: [email protected]
Message-ID:
        <CAK0HM3=egbgsh91xvibmpbrtocgbzgke5cect_6owcgfibd...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thanks for the reply. I will give wxHaskell a shot for the audio.

Any ideas on how to resolve #2?

> Finally, I have started getting this error every time I do a cabal
install now:
> Setup.hs:1:8:
>    Could not find module `Distribution.Simple':
>      Use -v to see a list of the files searched for.
> 2. What should I do to get cabal to start installing stuff again?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20120101/7d4ece0c/attachment-0001.htm>

------------------------------

Message: 2
Date: Sun, 1 Jan 2012 14:05:38 -0600
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] Audio packages
To: Sourabh <[email protected]>
Cc: [email protected]
Message-ID:
        <CAKjSnQH2+kWg6Gwuo=KkU-pzzr1B931kN_Cc=eR5Trg=edj...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Can you run 'ghc-pkg check' and email the list the output?

On Sun, Jan 1, 2012 at 12:51 PM, Sourabh <[email protected]> wrote:
> Thanks for the reply. I will give wxHaskell a shot for the audio.
>
> Any ideas on how to resolve #2?
>
>> Finally, I have started getting this error every time I do a cabal install
>> now:
>> Setup.hs:1:8:
>>??? Could not find module `Distribution.Simple':
>>????? Use -v to see a list of the files searched for.
>> 2. What should I do to get cabal to start installing stuff again?
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>



------------------------------

Message: 3
Date: Sun, 1 Jan 2012 15:44:42 -0600
From: Cody Haberkorn <[email protected]>
Subject: [Haskell-beginners] Testing the water
To: [email protected]
Message-ID:
        <cabsdo8ckkejozaq6wpeom-tuwpvwxnv2tcsnkx0faaq9whd...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

A little unsure of how this works, but we'll see!

Thanks,
- c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20120101/13b5ac31/attachment-0001.htm>

------------------------------

Message: 4
Date: Sun, 1 Jan 2012 18:35:49 -0500
From: Brent Yorgey <[email protected]>
Subject: Re: [Haskell-beginners] Testing the water
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

On Sun, Jan 01, 2012 at 03:44:42PM -0600, Cody Haberkorn wrote:
> A little unsure of how this works, but we'll see!

(1) Learn about Haskell
(2) Send questions to this list
(3) Receive answers

???

(27) Profit

-Brent



------------------------------

Message: 5
Date: Mon, 2 Jan 2012 03:27:19 +0000
From: Peter Hall <[email protected]>
Subject: [Haskell-beginners] suggestions for optimizing sudoku solver
To: [email protected]
Message-ID:
        <CAA6hAk74tYQa+Qe8+v0YCa62GHJGpUO+k6F=wnbc336zhut...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

I set myself a learning task of writing a sudoku solver.
(https://github.com/peterjoel/sudoku/blob/master/src/Sudoku.hs)
It works pretty well, but struggles with some of the harder grids.
e.g. data/hard4.txt and data/hard5.txt take around 18 seconds to
solve. Obviously there's a limit, but I feel like I should be able to
make this faster.

I think the main issue is reading/writing to the cells in the grid,
since (!!) is O(n). Even though it never has to go beyond index 8, it
will add up over the millions of times it has to do it. I imagine it
could be a lot faster if I use a static, non-list data structure, but
I was hoping to keep it a bit more flexible.

Also, I'm struggling to get started with performance profiling. Can
someone point me to some good resources?

Peter



------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 43, Issue 2
****************************************

Reply via email to